wok-current view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="procps"
4 VERSION="3.2.8"
5 CATEGORY="utilities"
6 SHORT_DESC="The proc filesystem utilities."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="ncurses"
9 BUILD_DEPENDS="ncurses-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://procps.sourceforge.net/"
12 WGET_URL="http://procps.sourceforge.net/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 make && make DESTDIR=$PWD/_pkg install
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr $fs/lib
25 cp -a $_pkg/usr/bin $fs/usr
26 cp -a $_pkg/lib/* $fs/lib
28 # Remove utils already supplied by Busybox
29 for i in free top uptime watch
30 do
31 rm -f $fs/usr/bin/$i
32 done
33 }
35 # Overlap busybox
36 pre_install()
37 {
38 rm -f $1/usr/bin/pkill
39 rm -f $1/usr/bin/pmap
40 rm -f $1/usr/bin/pgrep
41 }
43 post_remove()
44 {
45 ln -s /bin/busybox /usr/bin/pkill
46 ln -s /bin/busybox /usr/bin/pmap
47 ln -s /bin/busybox /usr/bin/pgrep
48 }