void-packages/srcpkgs/miniupnpd/template

39 lines
1.2 KiB
Bash
Raw Normal View History

2015-10-11 00:12:29 +02:00
# Template file for 'miniupnpd'
pkgname=miniupnpd
version=1.9
2015-12-29 11:49:32 +01:00
revision=2
2015-10-11 00:12:29 +02:00
build_style=gnu-makefile
make_build_args="-f Makefile.linux"
make_install_args="-f Makefile.linux PREFIX="
conf_files="
2015-12-29 11:49:32 +01:00
/etc/miniupnpd/*.conf
/etc/miniupnpd/*.sh"
2015-10-11 00:12:29 +02:00
hostmakedepends="pkg-config"
makedepends="libnfnetlink-devel iptables-devel"
short_desc="Lightweight UPnP IGD daemon"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="3-clause-BSD"
homepage="http://miniupnp.free.fr"
distfiles="http://miniupnp.free.fr/files/miniupnpd-${version}.tar.gz"
checksum=6176eb21a6422a7ee68ef1c62ccbbd5003335fa773d8c9013228c2a217bba2ac
2015-12-29 11:49:32 +01:00
CFLAGS="-DIPTABLES_143"
2015-10-11 00:12:29 +02:00
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
CONFIG_OPTIONS="--ipv6 --igd2 --leasefile" make -f Makefile.linux config.h
sed -i ${wrksrc}/config.h \
-e 's|^#define OS_URL .*$|#define OS_URL "http://voidlinux.eu"|g' \
-e 's|^#define OS_NAME .*$|#define OS_NAME "Void"|g' \
-e 's|^#define OS_VERSION .*$|#define OS_VERSION "Void"|g'
}
post_install() {
rm -rf ${DESTDIR}/etc/init.d
vsv miniupnpd
vlicense LICENSE
}