miniupnpd: fix hardened compilation

This commit is contained in:
Duncaen 2015-12-29 11:49:32 +01:00
parent 45d2f383b7
commit 30e498b747

View file

@ -1,16 +1,13 @@
# Template file for 'miniupnpd'
pkgname=miniupnpd
version=1.9
revision=1
revision=2
build_style=gnu-makefile
make_build_args="-f Makefile.linux"
make_install_args="-f Makefile.linux PREFIX="
conf_files="
/etc/miniupnpd/miniupnpd.conf
/etc/miniupnpd/iptables_init.sh
/etc/miniupnpd/ip6tables_init.sh
/etc/miniupnpd/iptables_removeall.sh
/etc/miniupnpd/ip6tables_removeall.sh"
/etc/miniupnpd/*.conf
/etc/miniupnpd/*.sh"
hostmakedepends="pkg-config"
makedepends="libnfnetlink-devel iptables-devel"
short_desc="Lightweight UPnP IGD daemon"
@ -20,6 +17,8 @@ homepage="http://miniupnp.free.fr"
distfiles="http://miniupnp.free.fr/files/miniupnpd-${version}.tar.gz"
checksum=6176eb21a6422a7ee68ef1c62ccbbd5003335fa773d8c9013228c2a217bba2ac
CFLAGS="-DIPTABLES_143"
do_configure() {
sed -e 's|$(INSTALLPREFIX)/sbin|$(INSTALLPREFIX)/bin|g' -i ${wrksrc}/Makefile.linux
sed -e 's|LSB_RELEASE=.*|LSB_RELEASE=$(false)|g' -i ${wrksrc}/genconfig.sh