wok annotate procps/receipt @ rev 9851

Up: kbd-busybox to 1.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 15 21:55:42 2011 +0000 (2011-05-15)
parents 2ad34d8fdfe7
children ded2ad0d846d
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@4297 25 mkdir -p $fs/usr $fs/lib
paul@4297 26 cp -a $_pkg/usr/bin $fs/usr
paul@4297 27 cp -a $_pkg/lib/* $fs/lib
paul@4297 28
paul@4297 29 # Remove utils already supplied by Busybox
paul@4297 30 for i in free top uptime watch
paul@4297 31 do
paul@4297 32 rm -f $fs/usr/bin/$i
paul@4297 33 done
paul@4297 34 }
paul@4297 35
pascal@8878 36 # Overlap busybox
pascal@8878 37 pre_install()
pascal@8878 38 {
pascal@8878 39 rm -f $1/usr/bin/pkill
pascal@8878 40 rm -f $1/usr/bin/pmap
pascal@8878 41 rm -f $1/usr/bin/pgrep
pascal@8878 42 }
pascal@8878 43
pascal@8878 44 post_remove()
pascal@8878 45 {
pascal@8878 46 ln -s /bin/busybox /usr/bin/pkill
pascal@8878 47 ln -s /bin/busybox /usr/bin/pmap
pascal@8878 48 ln -s /bin/busybox /usr/bin/pgrep
pascal@8878 49 }