wok-6.x diff miniupnpd/receipt @ rev 17320
Add opencsg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 04 13:21:47 2014 +0100 (2014-11-04) |
parents | |
children | 17e313b5b9c1 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/miniupnpd/receipt Tue Nov 04 13:21:47 2014 +0100 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 +}