wok-undigest rev 1018

Add miniupnpd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 12 11:17:59 2013 +0200 (2013-05-12)
parents c97024d5437a
children dac2d6ce4b7d
files miniupnpd/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/miniupnpd/receipt	Sun May 12 11:17:59 2013 +0200
     1.3 @@ -0,0 +1,32 @@
     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 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://miniupnp.tuxfamily.org/"
    1.13 +WGET_URL="$WEB_SITE/files/$TARBALL"
    1.14 +
    1.15 +DEPENDS="iptables"
    1.16 +BUILD_DEPENDS="iptables-dev libnfnetlink-dev"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh
    1.22 +	make -f Makefile.linux config.h
    1.23 +	KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
    1.24 +	sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
    1.25 +	make -f Makefile.linux &&
    1.26 +	INSTALLPREFIX=$DESTDIR/usr make -f Makefile.linux install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr/lib
    1.33 +	cp -a $install/usr/bin $fs/usr
    1.34 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.35 +}