diff options
author | prspkt <prspkt@protonmail.com> | 2018-05-09 19:45:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-07-18 16:35:09 +0000 |
commit | 114653eba06225c34be5395d1ed2fb83266c6fcb (patch) | |
tree | c9742c41634ba7f7822afbbc174af35ade3aba4e /community/miniupnpd | |
parent | aee4cee987dbde7f81c899f74667727627282d3b (diff) | |
download | aports-114653eba06225c34be5395d1ed2fb83266c6fcb.tar.bz2 aports-114653eba06225c34be5395d1ed2fb83266c6fcb.tar.xz |
community/miniupnpd: clarify license, modernize
Diffstat (limited to 'community/miniupnpd')
-rw-r--r-- | community/miniupnpd/APKBUILD | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/community/miniupnpd/APKBUILD b/community/miniupnpd/APKBUILD index 53583cba59..4953a42db3 100644 --- a/community/miniupnpd/APKBUILD +++ b/community/miniupnpd/APKBUILD @@ -6,25 +6,19 @@ pkgrel=0 pkgdesc="Lightweight UPnP IGD daemon" url="http://miniupnp.free.fr" arch="all" -license="BSD" +license="BSD-3-Clause" depends="" -depends_dev="libnfnetlink-dev iptables-dev" -makedepends="$depends_dev bsd-compat-headers" +depends_dev="" +makedepends="$depends_dev bsd-compat-headers iptables-dev libnfnetlink-dev" install="" subpackages="$pkgname-doc" source="http://miniupnp.free.fr/files/miniupnpd-$pkgver.tar.gz $pkgname.initd $pkgname.confd" -_builddir="$srcdir"/miniupnpd-$pkgver +builddir="$srcdir"/miniupnpd-$pkgver prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare mv Makefile.linux Makefile sed -i \ -e "s#^CFLAGS = .*-D#CPPFLAGS += -I/usr/include -D#" \ @@ -33,30 +27,30 @@ prepare() { -e "s/LIBS = -liptc/LIBS = -lip4tc/g" \ -e 's/genuuid||//' \ -e "s/--mode=/-m /g" \ - Makefile || die + Makefile sed -i \ -e 's/\(strncpy(\([->a-z.]\+\), "[a-zA-Z]\+", \)IPT_FUNCTION_MAXNAMELEN);/\1sizeof(\2));/' \ - netfilter/iptcrdr.c || die + netfilter/iptcrdr.c make config.h sed -i \ -e 's/\/\*#define ENABLE_LEASEFILE\*\//#define ENABLE_LEASEFILE/g' \ - config.h || die + config.h } build() { - cd "$_builddir" - make || return 1 + cd "$builddir" + make } package() { - cd "$_builddir" - make PREFIX="$pkgdir/" install || return 1 + cd "$builddir" + make PREFIX="$pkgdir/" install install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 + "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd \ - "$pkgdir"/etc/conf.d/$pkgname || return 1 + "$pkgdir"/etc/conf.d/$pkgname } |