wok view procps/receipt @ rev 10940

procps: update receipt
author Paul Issott <paul@slitaz.org>
date Mon Aug 29 12:09:32 2011 +0100 (2011-08-29)
parents 547881468fc2
children 5e901ec8c377
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 patch -Np1 -i $stuff/$PACKAGE-$VERSION+gmake-3.82.patch
19 make && make -j1 install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr $fs/lib $fs/bin $fs/sbin
26 cp -a $_pkg/usr/bin $fs/usr
27 cp -a $_pkg/bin $fs
28 cp -a $_pkg/sbin $fs
29 cp -a $_pkg/lib $fs
31 # Remove utils already supplied by Busybox
32 #for i in free top uptime watch
33 #do
34 #rm -f $fs/usr/bin/$i
35 #done
36 }
38 # Overlap busybox
39 pre_install()
40 {
41 rm -f $1/bin/kill
42 rm -f $1/bin/ps
43 rm -f $1/bin/watch
44 rm -f $1/sbin/sysctl
45 rm -f $1/usr/bin/pkill
46 rm -f $1/usr/bin/pmap
47 rm -f $1/usr/bin/pgrep
48 rm -f $1/usr/bin/top
49 rm -f $1/usr/bin/free
50 rm -f $1/usr/bin/uptime
51 }
53 post_remove()
54 {
55 ln -s /bin/busybox /bin/kill
56 ln -s /bin/busybox /bin/ps
57 ln -s /bin/busybox /bin/watch
58 ln -s /bin/busybox /sbin/sysctl
59 ln -s /bin/busybox /usr/bin/pkill
60 ln -s /bin/busybox /usr/bin/pmap
61 ln -s /bin/busybox /usr/bin/pgrep
62 ln -s /bin/busybox /usr/bin/top
63 ln -s /bin/busybox /usr/bin/free
64 ln -s /bin/busybox /usr/bin/uptime
65 }