wok-4.x annotate iproute2/receipt @ rev 4833
Fix: Add missing BUILD_DEPENDS to Beaver. Fix build build failed with DESTDIR
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 22 10:21:56 2010 +0100 (2010-01-22) |
parents | 3a5667bf27da |
children | faa4c6e9600b |
rev | line source |
---|---|
allan316@4528 | 1 # SliTaz package receipt. |
allan316@4528 | 2 |
allan316@4528 | 3 PACKAGE="iproute2" |
allan316@4528 | 4 VERSION="2.6.29" |
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" |
allan316@4528 | 9 BUILD_DEPENDS="db-dev" |
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" |
allan316@4528 | 13 |
allan316@4528 | 14 # Rules to configure and make the package. |
allan316@4528 | 15 compile_rules() |
allan316@4528 | 16 { |
allan316@4528 | 17 cd $src |
allan316@4528 | 18 sed -i 's/<net\/if.h>/<net\/if.h>\n#include <linux\/ip.h>/' ip/link_gre.c |
allan316@4528 | 19 ./configure \ |
allan316@4528 | 20 --prefix=/usr \ |
allan316@4528 | 21 --infodir=/usr/share/info \ |
allan316@4528 | 22 --mandir=/usr/share/man \ |
allan316@4528 | 23 $CONFIGURE_ARGS && |
allan316@4528 | 24 make && make DESTDIR=$PWD/_pkg install |
allan316@4528 | 25 } |
allan316@4528 | 26 |
allan316@4528 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@4528 | 28 genpkg_rules() |
allan316@4528 | 29 { |
allan316@4528 | 30 mkdir -p $fs |
allan316@4528 | 31 cp -a $_pkg/usr $fs/ |
allan316@4528 | 32 cp -a $_pkg/etc $fs/ |
allan316@4528 | 33 cp -a $_pkg/lib $fs/ |
allan316@4528 | 34 cp -a $_pkg/sbin $fs/ |
allan316@4528 | 35 } |
allan316@4528 | 36 |