wok-6.x view procps/receipt @ rev 13410

Add: check+
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Oct 01 01:39:13 2012 +0200 (2012-10-01)
parents ded2ad0d846d
children 51a1ebbda768
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
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
30 }
32 # Overlap busybox
33 pre_install()
34 {
35 rm -f $1/bin/kill
36 rm -f $1/bin/ps
37 rm -f $1/bin/watch
38 rm -f $1/sbin/sysctl
39 rm -f $1/usr/bin/pkill
40 rm -f $1/usr/bin/pmap
41 rm -f $1/usr/bin/pgrep
42 rm -f $1/usr/bin/top
43 rm -f $1/usr/bin/free
44 rm -f $1/usr/bin/uptime
45 }
47 post_remove()
48 {
49 ln -s /bin/busybox /bin/kill
50 ln -s /bin/busybox /bin/ps
51 ln -s /bin/busybox /bin/watch
52 ln -s /bin/busybox /sbin/sysctl
53 ln -s /bin/busybox /usr/bin/pkill
54 ln -s /bin/busybox /usr/bin/pmap
55 ln -s /bin/busybox /usr/bin/pgrep
56 ln -s /bin/busybox /usr/bin/top
57 ln -s /bin/busybox /usr/bin/free
58 ln -s /bin/busybox /usr/bin/uptime
59 }