wok view iproute2/receipt @ rev 19617

Up SliTaz projects: cookutils(863), slitaz-base-files(319), slitaz-boot-scripts(436), slitaz-configs(299), slitaz-tools(1008), ssfs(108), tazbug(94), tazinst(86), tazirc(18), tazlito(445), tazpanel(610), tazpkg(932), tazusb(194), tazweb(174).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 10 14:28:40 2017 +0200 (2017-01-10)
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 }