wok diff miniupnpd/receipt @ rev 15721

Move from undigest: bullet bullet-dev connman-ui cplay dconf dconf-dev dfc dnstop efl efl-dev evolution-data-server evolution-data-server-dev goaccess granite granite-dev granite-demo l3afpad ldm linmodem-hsfmodem marlin marlin-dev miniupnpd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 26 13:16:14 2013 +0000 (2013-12-26)
parents
children 17e313b5b9c1
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/miniupnpd/receipt	Thu Dec 26 13:16:14 2013 +0000
     1.3 @@ -0,0 +1,35 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="miniupnpd"
     1.7 +VERSION="1.8"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications server."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="BSD"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://miniupnp.tuxfamily.org/"
    1.14 +WGET_URL="$WEB_SITE/files/$TARBALL"
    1.15 +
    1.16 +DEPENDS="iptables"
    1.17 +BUILD_DEPENDS="iptables-dev libnfnetlink-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	export LDFLAGS="-Wl,--copy-dt-needed-entries" 
    1.23 +	mkdir -p $DESTDIR/usr/share/man/man8
    1.24 +	sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh
    1.25 +	make -f Makefile.linux config.h
    1.26 +	KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
    1.27 +	sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
    1.28 +	make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
    1.29 +	PREFIX=$DESTDIR make -f Makefile.linux install
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 +genpkg_rules()
    1.34 +{
    1.35 +	mkdir -p $fs/usr
    1.36 +	cp -a $install/etc $fs
    1.37 +	cp -a $install/usr/sbin $fs/usr
    1.38 +}