wok annotate procps/receipt @ rev 16608

pidgin-musictracker: new glib api
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 08 08:46:43 2014 +0000 (2014-05-08)
parents 5e901ec8c377
children 3ba8d2c9720d
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"
pascal@15375 8 LICENSE="GPL2"
paul@4297 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@4297 10 WEB_SITE="http://procps.sourceforge.net/"
paul@4297 11 WGET_URL="http://procps.sourceforge.net/$TARBALL"
paul@4297 12
pascal@15375 13 DEPENDS="ncurses"
pascal@15375 14 BUILD_DEPENDS="ncurses-dev"
pascal@15375 15
paul@4297 16 # Rules to configure and make the package.
paul@4297 17 compile_rules()
paul@4297 18 {
paul@4297 19 cd $src
slaxemulator@9016 20 patch -Np1 -i $stuff/$PACKAGE-$VERSION+gmake-3.82.patch
slaxemulator@9016 21 make && make -j1 install
paul@4297 22 }
paul@4297 23
paul@4297 24 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4297 25 genpkg_rules()
paul@4297 26 {
paul@10948 27 mkdir -p $fs/usr
pascal@15375 28 cp -a $install/usr/bin $fs/usr
pascal@15375 29 cp -a $install/bin $fs
pascal@15375 30 cp -a $install/sbin $fs
pascal@15375 31 cp -a $install/lib $fs
paul@4297 32 }
paul@4297 33
pascal@8878 34 # Overlap busybox
pascal@8878 35 pre_install()
pascal@8878 36 {
paul@10940 37 rm -f $1/bin/kill
paul@10940 38 rm -f $1/bin/ps
paul@10940 39 rm -f $1/bin/watch
paul@10940 40 rm -f $1/sbin/sysctl
pascal@8878 41 rm -f $1/usr/bin/pkill
pascal@8878 42 rm -f $1/usr/bin/pmap
pascal@8878 43 rm -f $1/usr/bin/pgrep
paul@10940 44 rm -f $1/usr/bin/top
paul@10940 45 rm -f $1/usr/bin/free
paul@10940 46 rm -f $1/usr/bin/uptime
pascal@8878 47 }
pascal@8878 48
pascal@8878 49 post_remove()
pascal@8878 50 {
paul@10940 51 ln -s /bin/busybox /bin/kill
paul@10940 52 ln -s /bin/busybox /bin/ps
paul@10940 53 ln -s /bin/busybox /bin/watch
paul@10940 54 ln -s /bin/busybox /sbin/sysctl
pascal@8878 55 ln -s /bin/busybox /usr/bin/pkill
pascal@8878 56 ln -s /bin/busybox /usr/bin/pmap
pascal@8878 57 ln -s /bin/busybox /usr/bin/pgrep
paul@10940 58 ln -s /bin/busybox /usr/bin/top
paul@10940 59 ln -s /bin/busybox /usr/bin/free
paul@10940 60 ln -s /bin/busybox /usr/bin/uptime
pascal@8878 61 }