wok-current view iproute2/receipt @ rev 18894

fusecloop/create_compressed_fs: deduplicate
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 13 18:33:57 2016 +0100 (2016-02-13)
parents f55945c68c5e
children eba8234042aa
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/bin
31 cp -a $install/usr $fs/
32 cp -a $install/etc $fs/
33 cp -a $install/var $fs/
34 cp -a $install/sbin $fs/
35 ln $fs/sbin/ip $fs/sbin/ss /$fs/bin/
36 }