wok annotate net-tools/receipt @ rev 15870
linux: fix stupid typo! Now linux64 and linux without modules will build
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 31 19:46:06 2014 +0100 (2014-01-31) |
parents | 6b4a47136bff |
children | f499057669ab |
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@11215 | 10 WEB_SITE="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@11215 | 16 cd $src |
pascal@15584 | 17 mkdir $DESTDIR |
pascal@11215 | 18 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \ |
pascal@11215 | 19 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII" |
pascal@11215 | 20 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do |
pascal@11215 | 21 val=0 |
pascal@11215 | 22 case " $enabled " in |
pascal@11215 | 23 *\ $name\ *) val=1 ;; |
pascal@11215 | 24 esac |
pascal@11215 | 25 echo "#define $name $val" |
pascal@11215 | 26 echo "$name=$val" 1>&2 |
pascal@11215 | 27 done > config.h 2> config.make |
pascal@11215 | 28 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c |
pascal@11215 | 29 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c |
pascal@11215 | 30 make && |
pascal@15584 | 31 make BASEDIR=$DESTDIR install |
pascal@11215 | 32 } |
pascal@11215 | 33 |
pascal@11215 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11215 | 35 genpkg_rules() |
pascal@11215 | 36 { |
pascal@15584 | 37 cp -a $install/bin $fs |
pascal@15584 | 38 cp -a $install/sbin $fs |
pascal@11215 | 39 } |