wok-current annotate procps/receipt @ rev 8878
kbd, lzma, ncursesw, netatalk-pam, pciutils, postfix, procps: restore busybox links in port_remove()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 27 01:38:28 2011 +0100 (2011-02-27) |
parents | 2615f6b2633f |
children | 547881468fc2 |
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 |
paul@4297 | 18 make && make DESTDIR=$PWD/_pkg install |
paul@4297 | 19 } |
paul@4297 | 20 |
paul@4297 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4297 | 22 genpkg_rules() |
paul@4297 | 23 { |
paul@4297 | 24 mkdir -p $fs/usr $fs/lib |
paul@4297 | 25 cp -a $_pkg/usr/bin $fs/usr |
paul@4297 | 26 cp -a $_pkg/lib/* $fs/lib |
paul@4297 | 27 |
paul@4297 | 28 # Remove utils already supplied by Busybox |
paul@4297 | 29 for i in free top uptime watch |
paul@4297 | 30 do |
paul@4297 | 31 rm -f $fs/usr/bin/$i |
paul@4297 | 32 done |
paul@4297 | 33 } |
paul@4297 | 34 |
pascal@8878 | 35 # Overlap busybox |
pascal@8878 | 36 pre_install() |
pascal@8878 | 37 { |
pascal@8878 | 38 rm -f $1/usr/bin/pkill |
pascal@8878 | 39 rm -f $1/usr/bin/pmap |
pascal@8878 | 40 rm -f $1/usr/bin/pgrep |
pascal@8878 | 41 } |
pascal@8878 | 42 |
pascal@8878 | 43 post_remove() |
pascal@8878 | 44 { |
pascal@8878 | 45 ln -s /bin/busybox /usr/bin/pkill |
pascal@8878 | 46 ln -s /bin/busybox /usr/bin/pmap |
pascal@8878 | 47 ln -s /bin/busybox /usr/bin/pgrep |
pascal@8878 | 48 } |