wok-next annotate miniupnpd/receipt @ rev 18578
Up postgis (2.2.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 11 12:30:10 2015 +0100 (2015-11-11) |
parents | ce9148142ee8 |
children | dbf4eeed945f |
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@17670 | 19 export LDFLAGS="$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 } |