wok-6.x annotate miniupnpd/receipt @ rev 20212
Force host arch to i486
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 24 12:51:10 2018 +0100 (2018-02-24) |
parents | 943e0b9e503d |
children | 797b839bde3a |
rev | line source |
---|---|
pascal@15721 | 1 # SliTaz package receipt. |
pascal@15721 | 2 |
pascal@15721 | 3 PACKAGE="miniupnpd" |
pascal@20152 | 4 VERSION="2.0.20171212" |
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@20153 | 14 DEPENDS="iptables libssl" |
pascal@20153 | 15 BUILD_DEPENDS="iptables-dev libnfnetlink-dev openssl-dev" |
pascal@15721 | 16 |
pascal@15721 | 17 # Rules to configure and make the package. |
pascal@15721 | 18 compile_rules() |
pascal@15721 | 19 { |
pascal@20212 | 20 sed -i 's|uname -m|echo i486|' Makefile* netfilter*/Makefile |
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@20153 | 27 make -f Makefile.linux DESTDIR=$DESTDIR 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 } |