diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-22 10:52:18 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-22 10:52:18 -0400 |
commit | 908d987dd1dcd4899f8f7f0878514c22ca8048b7 (patch) | |
tree | 29bf5986774207c3453044e1f370fb98d2431265 /pcr/miniupnpd/PKGBUILD | |
parent | 308bfb446305a96dffce945b6c4fb82b10d1b91b (diff) | |
parent | 8351d69e64a40d68fa32cfeea227b6fcf7afe974 (diff) | |
download | abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.gz abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.bz2 abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/miniupnpd/PKGBUILD')
-rw-r--r-- | pcr/miniupnpd/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/miniupnpd/PKGBUILD b/pcr/miniupnpd/PKGBUILD new file mode 100644 index 000000000..30108d4d5 --- /dev/null +++ b/pcr/miniupnpd/PKGBUILD @@ -0,0 +1,49 @@ +# $Id$ +# Maintainer: None +pkgname=miniupnpd +pkgver=1.7.20121005 +pkgrel=4 +pkgdesc="Lightweight UPnP IGD daemon" +arch=('i686' 'x86_64' 'mips64el') +url="http://miniupnp.free.fr" +license=('BSD') +backup=(etc/miniupnpd/miniupnpd.conf) +depends=('libnfnetlink') +source=("http://miniupnp.free.fr/files/$pkgname-$pkgver.tar.gz" miniupnpd.init miniupnpd.systemd) +sha1sums=('4579c4711a8455bf455f3757ac9ce0dc40088901' + 'c84031d7af122c5bede8609bcfa80bc31f2a5e61' + '9cf48feb98dadee8a566b2dc7811a95020ad3895') + +_ipt_arch_ver=$(pacman -Ss iptables | awk '/\/iptables/ { print $2 }') +depends+=("iptables=$_ipt_arch_ver") + +build() { + ipt_upstream_ver=iptables-${_ipt_arch_ver%%-*} + if [ ! -d $ipt_upstream_ver ]; then + curl -O "http://www.iptables.org/projects/iptables/files/${ipt_upstream_ver}.tar.bz2" + bsdtar -jxvf $ipt_upstream_ver.tar.bz2 + fi + + cd "$srcdir/$ipt_upstream_ver" + ./configure --enable-static + make + + cd "$srcdir/$pkgname-$pkgver" + make -f Makefile.linux config.h + IPTABLESPATH="$srcdir/$ipt_upstream_ver" make -f Makefile.linux +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + mkdir -p "$pkgdir/usr/share/man/man8" + make PREFIX="$pkgdir/" -f Makefile.linux install + rm -r "${pkgdir}/etc/init.d" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm755 "${srcdir}/miniupnpd.init" "${pkgdir}/etc/rc.d/miniupnpd" + install -Dm644 "${srcdir}/miniupnpd.systemd" "${pkgdir}/usr/lib/systemd/system/miniupnpd.service" + sed -i 's:/sbin/iptables:/usr/sbin/iptables: + s:eth0:"`cat /etc/miniupnpd/miniupnpd.conf | '"awk -F= '/^ext_ifname/ { print \$2 }'"'`":' "${pkgdir}"/etc/miniupnpd/*.sh + sed -i -e "s/^uuid=[-0-9a-f]*/uuid=00000000-0000-0000-0000-000000000000/ + s/make genuuid/uuidgen/" "${pkgdir}/etc/miniupnpd/miniupnpd.conf" +} + |