wok-next annotate net-tools/receipt @ rev 20663
Fix web site for the Shimmer Project themes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 10 22:58:32 2018 +0300 (2018-05-10) |
parents | a8c64a48b69e |
children | d5aab818505e |
rev | line source |
---|---|
al@20513 | 1 # SliTaz package receipt v2. |
pascal@11215 | 2 |
pascal@11215 | 3 PACKAGE="net-tools" |
pascal@11215 | 4 VERSION="1.60" |
pascal@11215 | 5 CATEGORY="network" |
al@20513 | 6 SHORT_DESC="Network toolbox" |
pascal@11215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15584 | 8 LICENSE="GPL2" |
al@20513 | 9 WEB_SITE="http://www.tazenda.demon.co.uk/phil/net-tools" |
al@20513 | 10 |
pascal@11215 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@11215 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@11215 | 13 |
al@20513 | 14 compile_rules() { |
pascal@20316 | 15 sed -i '/netinet\/ip/d' iptunnel.c |
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" |
al@20513 | 19 |
al@20513 | 20 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' config.in \ |
al@20513 | 21 | while read name; do |
pascal@11215 | 22 val=0 |
pascal@11215 | 23 case " $enabled " in |
al@20513 | 24 *\ $name\ *) val=1 ;; |
pascal@11215 | 25 esac |
pascal@11215 | 26 echo "#define $name $val" |
al@20513 | 27 echo "$name=$val" >&2 |
pascal@11215 | 28 done > config.h 2> config.make |
al@20513 | 29 |
pascal@11215 | 30 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c |
pascal@11215 | 31 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c |
pascal@16601 | 32 make -j 1 && |
pascal@15584 | 33 make BASEDIR=$DESTDIR install |
pascal@11215 | 34 } |
pascal@11215 | 35 |
al@20513 | 36 genpkg_rules() { |
al@20513 | 37 copy @std |
pascal@11215 | 38 } |