wok-next view miniupnpd/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | e6615350078d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="miniupnpd"
4 VERSION="2.0.20171212"
5 CATEGORY="network"
6 SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://miniupnp.tuxfamily.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/files/$TARBALL"
14 BUILD_DEPENDS="iptables-dev libnfnetlink-dev openssl-dev"
16 compile_rules() {
17 mkdir -p $install/usr/share/man/man8
18 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' \
19 netfilter/iptables_init.sh
21 make -f Makefile.linux config.h
22 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
23 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
24 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
25 make -f Makefile.linux DESTDIR=$install install
26 }
28 genpkg_rules() {
29 mkdir -p $fs/usr
30 cp -a $install/etc $fs
31 cp -a $install/usr/sbin $fs/usr
32 DEPENDS="iptables openssl"
33 TAGS="upnp"
34 }