51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
# Template file for 'miniupnpd'
|
|
pkgname=miniupnpd
|
|
version=2.3.0
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="
|
|
--disable-fork
|
|
--ipv6
|
|
--igd2
|
|
--leasefile"
|
|
make_install_args="
|
|
INSTALLPREFIX=/usr
|
|
SBININSTALLDIR=/usr/bin"
|
|
conf_files="
|
|
/etc/miniupnpd/*.conf
|
|
/etc/miniupnpd/*.sh"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libnfnetlink-devel iptables-devel openssl-devel"
|
|
checkdepends="iproute2 which"
|
|
short_desc="Lightweight UPnP IGD daemon"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://miniupnp.free.fr"
|
|
changelog="http://miniupnp.free.fr/files/changelog.php?file=miniupnpd-${version}.tar.gz"
|
|
distfiles="http://miniupnp.free.fr/files/miniupnpd-${version}.tar.gz"
|
|
checksum=ff9e95e360c7baae757575b5badc21ab1c643d359956f968540b4f8026facf9c
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
post_extract() {
|
|
vsed -i ${wrksrc}/configure \
|
|
-e 's|LSB_RELEASE=.*|LSB_RELEASE=$(false)|' \
|
|
-e 's|V6SOCKETS_ARE_V6ONLY=.*|V6SOCKETS_ARE_V6ONLY="0"|'
|
|
}
|
|
|
|
|
|
post_configure() {
|
|
vsed -i ${wrksrc}/config.h \
|
|
-e 's|^#define OS_URL.*$|#define OS_URL "https://voidlinux.org/"|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
|
|
}
|