wok view procps/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents 370da83187ab
children 65ff25c4de90
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="https://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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://gitlab.com/procps-ng/procps/-/tags 2>/dev/null | \
21 sed '/procps-v/!d;/tar/!d;s|.*procps-v||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|lncurses|& -ltinfo|' Makefile &&
28 patch -Np1 -i $stuff/$PACKAGE-$VERSION+gmake-3.82.patch &&
29 make &&
30 make -j1 install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/bin $fs
40 cp -a $install/sbin $fs
41 cp -a $install/lib $fs
42 }
44 # Overlap busybox
45 pre_install()
46 {
47 rm -f "$1/bin/kill"
48 rm -f "$1/bin/ps"
49 rm -f "$1/bin/watch"
50 rm -f "$1/sbin/sysctl"
51 rm -f "$1/usr/bin/pkill"
52 rm -f "$1/usr/bin/pmap"
53 rm -f "$1/usr/bin/pgrep"
54 rm -f "$1/usr/bin/top"
55 rm -f "$1/usr/bin/free"
56 rm -f "$1/usr/bin/uptime"
57 }
59 post_remove()
60 {
61 ln -s /bin/busybox /bin/kill
62 ln -s /bin/busybox /bin/ps
63 ln -s /bin/busybox /bin/watch
64 ln -s /bin/busybox /sbin/sysctl
65 ln -s /bin/busybox /usr/bin/pkill
66 ln -s /bin/busybox /usr/bin/pmap
67 ln -s /bin/busybox /usr/bin/pgrep
68 ln -s /bin/busybox /usr/bin/top
69 ln -s /bin/busybox /usr/bin/free
70 ln -s /bin/busybox /usr/bin/uptime
71 }