wok-6.x annotate procps/receipt @ rev 14057

tazinst: fix deps
author Dominique Corbex <domcox@slitaz.org>
date Wed Feb 20 10:48:27 2013 +0100 (2013-02-20)
parents ded2ad0d846d
children 51a1ebbda768
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@10948 25 mkdir -p $fs/usr
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
pascal@8878 32 # Overlap busybox
pascal@8878 33 pre_install()
pascal@8878 34 {
paul@10940 35 rm -f $1/bin/kill
paul@10940 36 rm -f $1/bin/ps
paul@10940 37 rm -f $1/bin/watch
paul@10940 38 rm -f $1/sbin/sysctl
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
paul@10940 42 rm -f $1/usr/bin/top
paul@10940 43 rm -f $1/usr/bin/free
paul@10940 44 rm -f $1/usr/bin/uptime
pascal@8878 45 }
pascal@8878 46
pascal@8878 47 post_remove()
pascal@8878 48 {
paul@10940 49 ln -s /bin/busybox /bin/kill
paul@10940 50 ln -s /bin/busybox /bin/ps
paul@10940 51 ln -s /bin/busybox /bin/watch
paul@10940 52 ln -s /bin/busybox /sbin/sysctl
pascal@8878 53 ln -s /bin/busybox /usr/bin/pkill
pascal@8878 54 ln -s /bin/busybox /usr/bin/pmap
pascal@8878 55 ln -s /bin/busybox /usr/bin/pgrep
paul@10940 56 ln -s /bin/busybox /usr/bin/top
paul@10940 57 ln -s /bin/busybox /usr/bin/free
paul@10940 58 ln -s /bin/busybox /usr/bin/uptime
pascal@8878 59 }