wok view procps/receipt @ rev 24099
Up openssh (8.7p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 16 08:39:38 2021 +0000 (2021-09-16) |
parents | 9e01bc6321ea |
children | 370da83187ab |
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 WEB_SITE="http://procps.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://procps.sourceforge.net/$TARBALL"
14 DEPENDS="ncurses"
15 BUILD_DEPENDS="ncurses-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|lncurses|& -ltinfo|' Makefile &&
21 patch -Np1 -i $stuff/$PACKAGE-$VERSION+gmake-3.82.patch &&
22 make &&
23 make -j1 install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/bin $fs
33 cp -a $install/sbin $fs
34 cp -a $install/lib $fs
35 }
37 # Overlap busybox
38 pre_install()
39 {
40 rm -f "$1/bin/kill"
41 rm -f "$1/bin/ps"
42 rm -f "$1/bin/watch"
43 rm -f "$1/sbin/sysctl"
44 rm -f "$1/usr/bin/pkill"
45 rm -f "$1/usr/bin/pmap"
46 rm -f "$1/usr/bin/pgrep"
47 rm -f "$1/usr/bin/top"
48 rm -f "$1/usr/bin/free"
49 rm -f "$1/usr/bin/uptime"
50 }
52 post_remove()
53 {
54 ln -s /bin/busybox /bin/kill
55 ln -s /bin/busybox /bin/ps
56 ln -s /bin/busybox /bin/watch
57 ln -s /bin/busybox /sbin/sysctl
58 ln -s /bin/busybox /usr/bin/pkill
59 ln -s /bin/busybox /usr/bin/pmap
60 ln -s /bin/busybox /usr/bin/pgrep
61 ln -s /bin/busybox /usr/bin/top
62 ln -s /bin/busybox /usr/bin/free
63 ln -s /bin/busybox /usr/bin/uptime
64 }