wok-next view net-tools/receipt @ rev 20796
Add descriptions to the GNOME games
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 10 16:17:43 2018 +0300 (2018-06-10) |
parents | a8c64a48b69e |
children | d5aab818505e |
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 $DESTDIR
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 > config.h 2> config.make
30 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
31 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
32 make -j 1 &&
33 make BASEDIR=$DESTDIR install
34 }
36 genpkg_rules() {
37 copy @std
38 }