wok-6.x view iproute2/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents f2ff76b6e8e2
children f55945c68c5e
line source
1 # SliTaz package receipt.
3 PACKAGE="iproute2"
4 VERSION="3.6.0"
5 CATEGORY="network"
6 SHORT_DESC="utilites for networking and traffic control"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
11 WGET_URL="http://kernel.org/pub/linux/utils/net/$PACKAGE/$TARBALL"
12 TAGS="network route"
14 DEPENDS="iptables db"
15 BUILD_DEPENDS="bison flex iptables-dev db-dev libnl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/<net\/if.h>/<net\/if.h>\n#include <linux\/ip.h>/' ip/link_gre.c
22 ./configure --prefix=/usr && \
23 make && \
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs
31 cp -a $install/usr $fs/
32 cp -a $install/etc $fs/
33 cp -a $install/lib $fs/
34 cp -a $install/sbin $fs/
35 }