wok-next annotate miniupnpd/receipt @ rev 19163
slitaz-tools (987), slitaz-configs (285)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 28 09:37:10 2016 +0200 (2016-05-28) |
parents | 17e313b5b9c1 |
children | deb814751077 |
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@19008 | 12 TAGS="upnp" |
pascal@15721 | 13 |
pascal@15721 | 14 DEPENDS="iptables" |
pascal@15721 | 15 BUILD_DEPENDS="iptables-dev libnfnetlink-dev" |
pascal@15721 | 16 |
pascal@15721 | 17 # Rules to configure and make the package. |
pascal@15721 | 18 compile_rules() |
pascal@15721 | 19 { |
pascal@17670 | 20 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
pascal@15721 | 21 mkdir -p $DESTDIR/usr/share/man/man8 |
pascal@15721 | 22 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh |
pascal@15721 | 23 make -f Makefile.linux config.h |
pascal@15721 | 24 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2) |
pascal@15721 | 25 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h |
pascal@15721 | 26 make CFLAGS="-DIPTABLES_143" -f Makefile.linux && |
pascal@15721 | 27 PREFIX=$DESTDIR make -f Makefile.linux install |
pascal@15721 | 28 } |
pascal@15721 | 29 |
pascal@15721 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 31 genpkg_rules() |
pascal@15721 | 32 { |
pascal@15721 | 33 mkdir -p $fs/usr |
pascal@15721 | 34 cp -a $install/etc $fs |
pascal@15721 | 35 cp -a $install/usr/sbin $fs/usr |
pascal@15721 | 36 } |