Receipt for package "net-tools"
# SliTaz package receipt. PACKAGE="net-tools" VERSION="2.10" CATEGORY="network" SHORT_DESC="Network toolbox." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/net-tools/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" SUGGESTED="net-tools-lang" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/net-tools/files/ 2>/dev/null | \ sed '/scope="row/!d;/net-tools-/!d;s|.*/net-tools-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { mkdir $DESTDIR enabled="HAVE_AFINET HAVE_AFUNIX HAVE_ARP_TOOLS HAVE_FW_MASQUERADE \ HAVE_HOSTNAME_SYMLINKS HAVE_HOSTNAME_TOOLS HAVE_HWETHER HAVE_HWPPP \ HAVE_HWTUNNEL HAVE_I18N HAVE_IP_TOOLS HAVE_MII HAVE_PLIP_TOOLS HAVE_SERIAL_TOOLS" sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name do val=0 case " $enabled " in (*\ $name\ *) val=1 ;; esac echo "#define $name $val" echo "$name=$val" 1>&2 done > config.h 2> config.make # create localised message files and man pages echo "I18N=1" >> config.make sed -i 's/default:/&;/' hostname.c lib/inet_sr.c # 2.10 not required # sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c make && make install BASEDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_folders sbin } # Remove busybox symbolic links after installing # because these files are now in /bin post_install() { rm -f "$1/sbin/ifconfig" rm -f "$1/sbin/route" }
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)