wok-next view net-tools/receipt @ rev 15584
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 17:02:58 2013 +0000 (2013-11-30) |
parents | 6b4a47136bff |
children | f499057669ab |
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 cd $src
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 &&
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 }