wok-undigest view miniupnpd/receipt @ rev 1053

add: efl-dev (1.8.0-beta1)
author Dominique Corbex <domcox@slitaz.org>
date Wed Nov 27 21:33:02 2013 +0100 (2013-11-27)
parents 58d2d7320ed2
children 135ad0e1fc7d
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 mkdir -p $DESTDIR/usr/share/man/man8
20 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh
21 make -f Makefile.linux config.h
22 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
23 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
24 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
25 PREFIX=$DESTDIR make -f Makefile.linux install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $install/etc $fs
33 cp -a $install/usr/sbin $fs/usr
34 }