Commit 114653eb authored by prspkt's avatar prspkt Committed by Natanael Copa

community/miniupnpd: clarify license, modernize

parent aee4cee9
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment