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