wok-next view net-tools/receipt @ rev 20458
Unlock x86_64 architecture
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 12:12:14 2018 +0200 (2018-03-02) |
parents | f499057669ab |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.tazenda.demon.co.uk/phil/net-tools"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 sed -i '/netinet\/ip/d' iptunnel.c
17 mkdir $DESTDIR
18 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \
19 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII"
20 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do
21 val=0
22 case " $enabled " in
23 *\ $name\ *) val=1 ;;
24 esac
25 echo "#define $name $val"
26 echo "$name=$val" 1>&2
27 done > config.h 2> config.make
28 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
29 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
30 make -j 1 &&
31 make BASEDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/bin $fs
38 cp -a $install/sbin $fs
39 }