wok-6.x view net-tools/receipt @ rev 25253
updated pyvim (2.0.24 -> 3.0.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 07:49:44 2022 +0100 (2022-07-14) |
parents | 535c806240cc |
children | ad0bc3efbf37 |
line source
1 # SliTaz package receipt.
3 PACKAGE="net-tools"
4 VERSION="2.10"
5 CATEGORY="network"
6 SHORT_DESC="Network toolbox."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/net-tools/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="net-tools-lang"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/net-tools/files/ 2>/dev/null | \
20 sed '/scope="row/!d;/net-tools-/!d;s|.*/net-tools-||;s|.tar.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir $DESTDIR
28 enabled="HAVE_AFINET HAVE_AFUNIX HAVE_ARP_TOOLS HAVE_FW_MASQUERADE \
29 HAVE_HOSTNAME_SYMLINKS HAVE_HOSTNAME_TOOLS HAVE_HWETHER HAVE_HWPPP \
30 HAVE_HWTUNNEL HAVE_I18N HAVE_IP_TOOLS HAVE_MII HAVE_PLIP_TOOLS HAVE_SERIAL_TOOLS"
32 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name
33 do
34 val=0
35 case " $enabled " in
36 (*\ $name\ *) val=1 ;;
37 esac
38 echo "#define $name $val"
39 echo "$name=$val" 1>&2
40 done > config.h 2> config.make
42 # create localised message files and man pages
43 echo "I18N=1" >> config.make
45 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
46 # 2.10 not required
47 # sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
49 make &&
50 make install BASEDIR=$DESTDIR
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cook_copy_folders bin
57 cook_copy_folders sbin
58 }
60 # Remove busybox symbolic links after installing
61 # because these files are now in /bin
62 post_install()
63 {
64 rm -f "$1/sbin/ifconfig"
65 rm -f "$1/sbin/route"
66 }