wok-undigest view miniupnpd/receipt @ rev 1028

miniupnpd: needs LDFLAGS & CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 01 09:53:52 2013 +0000 (2013-08-01)
parents f97f14f0a349
children 5bfa3175c059
line source
1 # SliTaz package receipt.
3 PACKAGE="miniupnpd"
4 VERSION="1.8"
5 CATEGORY="network"
6 SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://miniupnp.tuxfamily.org/"
10 WGET_URL="$WEB_SITE/files/$TARBALL"
12 DEPENDS="iptables"
13 BUILD_DEPENDS="iptables-dev libnfnetlink-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 export LDFLAGS="-Wl,--copy-dt-needed-entries"
19 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh
20 make -f Makefile.linux config.h
21 KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
22 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
23 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
24 INSTALLPREFIX=$DESTDIR/usr make -f Makefile.linux install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 cp -a $install/usr/sbin $fs/usr
31 }