wok annotate 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
rev   line source
pascal@15721 1 # SliTaz package receipt.
pascal@15721 2
pascal@15721 3 PACKAGE="miniupnpd"
pascal@15721 4 VERSION="1.8"
pascal@15721 5 CATEGORY="network"
pascal@15721 6 SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications server."
pascal@15721 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15721 8 LICENSE="BSD"
pascal@15721 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15721 10 WEB_SITE="http://miniupnp.tuxfamily.org/"
pascal@15721 11 WGET_URL="$WEB_SITE/files/$TARBALL"
pascal@15721 12
pascal@15721 13 DEPENDS="iptables"
pascal@15721 14 BUILD_DEPENDS="iptables-dev libnfnetlink-dev"
pascal@15721 15
pascal@15721 16 # Rules to configure and make the package.
pascal@15721 17 compile_rules()
pascal@15721 18 {
pascal@15721 19 export LDFLAGS="-Wl,--copy-dt-needed-entries"
pascal@15721 20 mkdir -p $DESTDIR/usr/share/man/man8
pascal@15721 21 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh
pascal@15721 22 make -f Makefile.linux config.h
pascal@15721 23 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
pascal@15721 24 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
pascal@15721 25 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
pascal@15721 26 PREFIX=$DESTDIR make -f Makefile.linux install
pascal@15721 27 }
pascal@15721 28
pascal@15721 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 30 genpkg_rules()
pascal@15721 31 {
pascal@15721 32 mkdir -p $fs/usr
pascal@15721 33 cp -a $install/etc $fs
pascal@15721 34 cp -a $install/usr/sbin $fs/usr
pascal@15721 35 }