wok-current rev 24964

updated net-tools (1.60 -> 2.10)
author Hans-G?nter Theisgen
date Sun Apr 24 16:42:03 2022 +0100 (2022-04-24)
parents e95024856175
children 166be00cb790
files net-tools-lang/receipt net-tools/description.txt net-tools/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/net-tools-lang/receipt	Sun Apr 24 16:42:03 2022 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="net-tools-lang"
     1.7 +VERSION="2.10"
     1.8 +CATEGORY="localization"
     1.9 +SHORT_DESC="Network toolbox - localised messages."
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="https://sourceforge.net/projects/net-tools/"
    1.13 +
    1.14 +WANTED="net-tools"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	cook_copy_folders	locale
    1.20 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/net-tools/description.txt	Sun Apr 24 16:42:03 2022 +0100
     2.3 @@ -0,0 +1,5 @@
     2.4 +A collection of programs that form the base set of the NET-3 networking
     2.5 +distribution for the Linux operating system.
     2.6 +
     2.7 +Includes: arp, hostname, ifconfig, netstat, rarp, route, plipconfig,
     2.8 +slattach, mii-tool, iptunnel and ipmaddr.
     3.1 --- a/net-tools/receipt	Sun Apr 24 07:32:05 2022 +0100
     3.2 +++ b/net-tools/receipt	Sun Apr 24 16:42:03 2022 +0100
     3.3 @@ -1,14 +1,17 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="net-tools"
     3.7 -VERSION="1.60"
     3.8 +VERSION="2.10"
     3.9  CATEGORY="network"
    3.10  SHORT_DESC="Network toolbox."
    3.11  MAINTAINER="pascal.bellard@slitaz.org"
    3.12  LICENSE="GPL2"
    3.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.14 -WEB_SITE="https://web.archive.org/web/20130512153334if_/http://www.tazenda.demon.co.uk/phil/net-tools"
    3.15 -WGET_URL="$WEB_SITE/$TARBALL"
    3.16 +WEB_SITE="https://sourceforge.net/projects/net-tools/"
    3.17 +
    3.18 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.19 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    3.20 +
    3.21 +SUGGESTED="net-tools-lang"
    3.22  
    3.23  # What is the latest version available today?
    3.24  current_version()
    3.25 @@ -21,25 +24,43 @@
    3.26  compile_rules()
    3.27  {
    3.28  	mkdir $DESTDIR
    3.29 -	enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \
    3.30 -		 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII"
    3.31 -	sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do
    3.32 +
    3.33 +	enabled="HAVE_AFINET HAVE_AFUNIX HAVE_ARP_TOOLS HAVE_FW_MASQUERADE \
    3.34 +HAVE_HOSTNAME_SYMLINKS HAVE_HOSTNAME_TOOLS HAVE_HWETHER HAVE_HWPPP \
    3.35 +HAVE_HWTUNNEL HAVE_I18N HAVE_IP_TOOLS HAVE_MII HAVE_PLIP_TOOLS HAVE_SERIAL_TOOLS"
    3.36 +
    3.37 +	sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name
    3.38 +	  do
    3.39  		val=0
    3.40  		case " $enabled " in
    3.41 -		*\ $name\ *) val=1 ;;
    3.42 +			(*\ $name\ *) val=1 ;;
    3.43  		esac
    3.44  		echo "#define $name $val"
    3.45  		echo "$name=$val" 1>&2
    3.46 -	done > config.h 2> config.make
    3.47 +	  done > config.h 2> config.make
    3.48 +
    3.49 +	# create localised message files and man pages
    3.50 +	echo "I18N=1" >> config.make
    3.51 +
    3.52  	sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
    3.53 -	sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
    3.54 -	make -j 1 &&
    3.55 -	make BASEDIR=$DESTDIR install
    3.56 +	# 2.10 not required
    3.57 +#	sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
    3.58 +
    3.59 +	make &&
    3.60 +	make install BASEDIR=$DESTDIR
    3.61  }
    3.62  
    3.63  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.64  genpkg_rules()
    3.65  {
    3.66 -	cp -a $install/bin $fs
    3.67 -	cp -a $install/sbin $fs
    3.68 +	cook_copy_folders	bin
    3.69 +	cook_copy_folders	sbin
    3.70  }
    3.71 +
    3.72 +# Remove busybox symbolic links after installing
    3.73 +# because these files are now in /bin
    3.74 +post_install()
    3.75 +{
    3.76 +	rm -f "$1/sbin/ifconfig"
    3.77 +	rm -f "$1/sbin/route"
    3.78 +}