wok-current view iproute2/receipt @ rev 8916
iproute2: add bison in BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 28 17:53:32 2011 +0100 (2011-02-28) |
parents | faa4c6e9600b |
children | 1c8ac3b015bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="iproute2"
4 VERSION="2.6.29"
5 CATEGORY="network"
6 SHORT_DESC="utilites for networking and traffic control"
7 MAINTAINER="allan316@gmail.com"
8 DEPENDS="iptables db"
9 BUILD_DEPENDS="bison"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
12 WGET_URL="http://devresources.linux-foundation.org/dev/$PACKAGE/download/$TARBALL"
13 TAGS="network route"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's/<net\/if.h>/<net\/if.h>\n#include <linux\/ip.h>/' ip/link_gre.c
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs
32 cp -a $_pkg/usr $fs/
33 cp -a $_pkg/etc $fs/
34 cp -a $_pkg/lib $fs/
35 cp -a $_pkg/sbin $fs/
36 }