wok annotate procps/receipt @ rev 10940
procps: update receipt
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Aug 29 12:09:32 2011 +0100 (2011-08-29) |
parents | 547881468fc2 |
children | 5e901ec8c377 |
rev | line source |
---|---|
paul@4297 | 1 # SliTaz package receipt. |
paul@4297 | 2 |
paul@4297 | 3 PACKAGE="procps" |
paul@4297 | 4 VERSION="3.2.8" |
paul@4297 | 5 CATEGORY="utilities" |
paul@4297 | 6 SHORT_DESC="The proc filesystem utilities." |
paul@4297 | 7 MAINTAINER="paul@slitaz.org" |
paul@4297 | 8 DEPENDS="ncurses" |
paul@4297 | 9 BUILD_DEPENDS="ncurses-dev" |
paul@4297 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@4297 | 11 WEB_SITE="http://procps.sourceforge.net/" |
paul@4297 | 12 WGET_URL="http://procps.sourceforge.net/$TARBALL" |
paul@4297 | 13 |
paul@4297 | 14 # Rules to configure and make the package. |
paul@4297 | 15 compile_rules() |
paul@4297 | 16 { |
paul@4297 | 17 cd $src |
slaxemulator@9016 | 18 patch -Np1 -i $stuff/$PACKAGE-$VERSION+gmake-3.82.patch |
slaxemulator@9016 | 19 make && make -j1 install |
paul@4297 | 20 } |
paul@4297 | 21 |
paul@4297 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4297 | 23 genpkg_rules() |
paul@4297 | 24 { |
paul@10940 | 25 mkdir -p $fs/usr $fs/lib $fs/bin $fs/sbin |
paul@4297 | 26 cp -a $_pkg/usr/bin $fs/usr |
paul@10940 | 27 cp -a $_pkg/bin $fs |
paul@10940 | 28 cp -a $_pkg/sbin $fs |
paul@10940 | 29 cp -a $_pkg/lib $fs |
paul@4297 | 30 |
paul@4297 | 31 # Remove utils already supplied by Busybox |
paul@10940 | 32 #for i in free top uptime watch |
paul@10940 | 33 #do |
paul@10940 | 34 #rm -f $fs/usr/bin/$i |
paul@10940 | 35 #done |
paul@4297 | 36 } |
paul@4297 | 37 |
pascal@8878 | 38 # Overlap busybox |
pascal@8878 | 39 pre_install() |
pascal@8878 | 40 { |
paul@10940 | 41 rm -f $1/bin/kill |
paul@10940 | 42 rm -f $1/bin/ps |
paul@10940 | 43 rm -f $1/bin/watch |
paul@10940 | 44 rm -f $1/sbin/sysctl |
pascal@8878 | 45 rm -f $1/usr/bin/pkill |
pascal@8878 | 46 rm -f $1/usr/bin/pmap |
pascal@8878 | 47 rm -f $1/usr/bin/pgrep |
paul@10940 | 48 rm -f $1/usr/bin/top |
paul@10940 | 49 rm -f $1/usr/bin/free |
paul@10940 | 50 rm -f $1/usr/bin/uptime |
pascal@8878 | 51 } |
pascal@8878 | 52 |
pascal@8878 | 53 post_remove() |
pascal@8878 | 54 { |
paul@10940 | 55 ln -s /bin/busybox /bin/kill |
paul@10940 | 56 ln -s /bin/busybox /bin/ps |
paul@10940 | 57 ln -s /bin/busybox /bin/watch |
paul@10940 | 58 ln -s /bin/busybox /sbin/sysctl |
pascal@8878 | 59 ln -s /bin/busybox /usr/bin/pkill |
pascal@8878 | 60 ln -s /bin/busybox /usr/bin/pmap |
pascal@8878 | 61 ln -s /bin/busybox /usr/bin/pgrep |
paul@10940 | 62 ln -s /bin/busybox /usr/bin/top |
paul@10940 | 63 ln -s /bin/busybox /usr/bin/free |
paul@10940 | 64 ln -s /bin/busybox /usr/bin/uptime |
pascal@8878 | 65 } |