wok-6.x diff net-tools/receipt @ rev 25375
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 30 08:30:06 2022 +0000 (2022-07-30) |
parents | 535c806240cc |
children | ad0bc3efbf37 |
line diff
1.1 --- a/net-tools/receipt Thu Feb 17 12:02:46 2022 +0000 1.2 +++ b/net-tools/receipt Sat Jul 30 08:30:06 2022 +0000 1.3 @@ -1,14 +1,17 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="net-tools" 1.7 -VERSION="1.60" 1.8 +VERSION="2.10" 1.9 CATEGORY="network" 1.10 SHORT_DESC="Network toolbox." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="GPL2" 1.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 -WEB_SITE="https://web.archive.org/web/20130512153334if_/http://www.tazenda.demon.co.uk/phil/net-tools" 1.15 -WGET_URL="$WEB_SITE/$TARBALL" 1.16 +WEB_SITE="https://sourceforge.net/projects/net-tools/" 1.17 + 1.18 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.19 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.20 + 1.21 +SUGGESTED="net-tools-lang" 1.22 1.23 # What is the latest version available today? 1.24 current_version() 1.25 @@ -21,25 +24,43 @@ 1.26 compile_rules() 1.27 { 1.28 mkdir $DESTDIR 1.29 - enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \ 1.30 - HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII" 1.31 - sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do 1.32 + 1.33 + enabled="HAVE_AFINET HAVE_AFUNIX HAVE_ARP_TOOLS HAVE_FW_MASQUERADE \ 1.34 +HAVE_HOSTNAME_SYMLINKS HAVE_HOSTNAME_TOOLS HAVE_HWETHER HAVE_HWPPP \ 1.35 +HAVE_HWTUNNEL HAVE_I18N HAVE_IP_TOOLS HAVE_MII HAVE_PLIP_TOOLS HAVE_SERIAL_TOOLS" 1.36 + 1.37 + sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name 1.38 + do 1.39 val=0 1.40 case " $enabled " in 1.41 - *\ $name\ *) val=1 ;; 1.42 + (*\ $name\ *) val=1 ;; 1.43 esac 1.44 echo "#define $name $val" 1.45 echo "$name=$val" 1>&2 1.46 - done > config.h 2> config.make 1.47 + done > config.h 2> config.make 1.48 + 1.49 + # create localised message files and man pages 1.50 + echo "I18N=1" >> config.make 1.51 + 1.52 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c 1.53 - sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c 1.54 - make -j 1 && 1.55 - make BASEDIR=$DESTDIR install 1.56 + # 2.10 not required 1.57 +# sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c 1.58 + 1.59 + make && 1.60 + make install BASEDIR=$DESTDIR 1.61 } 1.62 1.63 # Rules to gen a SliTaz package suitable for Tazpkg. 1.64 genpkg_rules() 1.65 { 1.66 - cp -a $install/bin $fs 1.67 - cp -a $install/sbin $fs 1.68 + cook_copy_folders bin 1.69 + cook_copy_folders sbin 1.70 } 1.71 + 1.72 +# Remove busybox symbolic links after installing 1.73 +# because these files are now in /bin 1.74 +post_install() 1.75 +{ 1.76 + rm -f "$1/sbin/ifconfig" 1.77 + rm -f "$1/sbin/route" 1.78 +}