wok view procps/receipt @ rev 19983

Up openvpn (2.3.17)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 22 17:37:32 2017 +0200 (2017-06-22)
parents c7c3567bd8d4
children ea8947d8ad9b
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 sed -i 's|lncurses|& -ltinfo|' Makefile
20 patch -Np1 -i $stuff/$PACKAGE-$VERSION+gmake-3.82.patch
21 make && make -j1 install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $install/usr/bin $fs/usr
29 cp -a $install/bin $fs
30 cp -a $install/sbin $fs
31 cp -a $install/lib $fs
32 }
34 # Overlap busybox
35 pre_install()
36 {
37 rm -f "$1/bin/kill"
38 rm -f "$1/bin/ps"
39 rm -f "$1/bin/watch"
40 rm -f "$1/sbin/sysctl"
41 rm -f "$1/usr/bin/pkill"
42 rm -f "$1/usr/bin/pmap"
43 rm -f "$1/usr/bin/pgrep"
44 rm -f "$1/usr/bin/top"
45 rm -f "$1/usr/bin/free"
46 rm -f "$1/usr/bin/uptime"
47 }
49 post_remove()
50 {
51 ln -s /bin/busybox /bin/kill
52 ln -s /bin/busybox /bin/ps
53 ln -s /bin/busybox /bin/watch
54 ln -s /bin/busybox /sbin/sysctl
55 ln -s /bin/busybox /usr/bin/pkill
56 ln -s /bin/busybox /usr/bin/pmap
57 ln -s /bin/busybox /usr/bin/pgrep
58 ln -s /bin/busybox /usr/bin/top
59 ln -s /bin/busybox /usr/bin/free
60 ln -s /bin/busybox /usr/bin/uptime
61 }