wok-6.x annotate net-tools/receipt @ rev 24451
updated cyrus-imapd and cyrus-imapd-dev (3.0.13 -> 3.4.3)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 15 14:10:08 2022 +0100 (2022-02-15) |
parents | f499057669ab |
children | 535c806240cc |
rev | line source |
---|---|
pascal@11215 | 1 # SliTaz package receipt. |
pascal@11215 | 2 |
pascal@11215 | 3 PACKAGE="net-tools" |
pascal@11215 | 4 VERSION="1.60" |
pascal@11215 | 5 CATEGORY="network" |
pascal@11215 | 6 SHORT_DESC="Network toolbox." |
pascal@11215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15584 | 8 LICENSE="GPL2" |
pascal@11215 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20560 | 10 WEB_SITE="https://web.archive.org/web/20130512153334if_/http://www.tazenda.demon.co.uk/phil/net-tools" |
pascal@11215 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@11215 | 12 |
pascal@11215 | 13 # Rules to configure and make the package. |
pascal@11215 | 14 compile_rules() |
pascal@11215 | 15 { |
pascal@15584 | 16 mkdir $DESTDIR |
pascal@11215 | 17 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \ |
pascal@11215 | 18 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII" |
pascal@11215 | 19 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do |
pascal@11215 | 20 val=0 |
pascal@11215 | 21 case " $enabled " in |
pascal@11215 | 22 *\ $name\ *) val=1 ;; |
pascal@11215 | 23 esac |
pascal@11215 | 24 echo "#define $name $val" |
pascal@11215 | 25 echo "$name=$val" 1>&2 |
pascal@11215 | 26 done > config.h 2> config.make |
pascal@11215 | 27 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c |
pascal@11215 | 28 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c |
pascal@16601 | 29 make -j 1 && |
pascal@15584 | 30 make BASEDIR=$DESTDIR install |
pascal@11215 | 31 } |
pascal@11215 | 32 |
pascal@11215 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11215 | 34 genpkg_rules() |
pascal@11215 | 35 { |
pascal@15584 | 36 cp -a $install/bin $fs |
pascal@15584 | 37 cp -a $install/sbin $fs |
pascal@11215 | 38 } |