wok-next view net-tools/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents d43bf7aae921
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="net-tools"
4 VERSION="1.60"
5 CATEGORY="network"
6 SHORT_DESC="Network toolbox"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.tazenda.demon.co.uk/phil/net-tools"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 compile_rules() {
15 sed -i '/netinet\/ip/d' iptunnel.c
16 mkdir $install
17 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \
18 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII"
20 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' config.in \
21 | while read name; do
22 val=0
23 case " $enabled " in
24 *\ $name\ *) val=1;;
25 esac
26 echo "#define $name $val"
27 echo "$name=$val" >&2
28 done \
29 > config.h \
30 2> config.make
32 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
33 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
34 make -j1 &&
35 make BASEDIR=$install install
36 }
38 genpkg_rules() {
39 copy @std
40 }