wok-next view procps/receipt @ rev 19955
Up mrxvt (0.5.4)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Oct 16 16:12:38 2017 +0200 (2017-10-16) |
parents | 9e01bc6321ea |
children | d6378d455338 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://procps.sourceforge.net/"
11 WGET_URL="http://procps.sourceforge.net/$TARBALL"
13 DEPENDS="ncurses"
14 BUILD_DEPENDS="ncurses-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 patch -Np1 -i $stuff/$PACKAGE-$VERSION+gmake-3.82.patch
20 make && make -j1 install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr
27 cp -a $install/usr/bin $fs/usr
28 cp -a $install/bin $fs
29 cp -a $install/sbin $fs
30 cp -a $install/lib $fs
31 }
33 # Overlap busybox
34 pre_install()
35 {
36 rm -f "$1/bin/kill"
37 rm -f "$1/bin/ps"
38 rm -f "$1/bin/watch"
39 rm -f "$1/sbin/sysctl"
40 rm -f "$1/usr/bin/pkill"
41 rm -f "$1/usr/bin/pmap"
42 rm -f "$1/usr/bin/pgrep"
43 rm -f "$1/usr/bin/top"
44 rm -f "$1/usr/bin/free"
45 rm -f "$1/usr/bin/uptime"
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox /bin/kill
51 ln -s /bin/busybox /bin/ps
52 ln -s /bin/busybox /bin/watch
53 ln -s /bin/busybox /sbin/sysctl
54 ln -s /bin/busybox /usr/bin/pkill
55 ln -s /bin/busybox /usr/bin/pmap
56 ln -s /bin/busybox /usr/bin/pgrep
57 ln -s /bin/busybox /usr/bin/top
58 ln -s /bin/busybox /usr/bin/free
59 ln -s /bin/busybox /usr/bin/uptime
60 }