[arch-commits] Commit in miniupnpd/repos (6 files)

Timothy Redaelli tredaelli at nymeria.archlinux.org
Tue Oct 22 08:53:58 UTC 2013


    Date: Tuesday, October 22, 2013 @ 10:53:57
  Author: tredaelli
Revision: 99006

archrelease: copy trunk to community-i686, community-x86_64

Added:
  miniupnpd/repos/community-i686/
  miniupnpd/repos/community-i686/PKGBUILD
    (from rev 99005, miniupnpd/trunk/PKGBUILD)
  miniupnpd/repos/community-i686/miniupnpd.systemd
    (from rev 99005, miniupnpd/trunk/miniupnpd.systemd)
  miniupnpd/repos/community-x86_64/
  miniupnpd/repos/community-x86_64/PKGBUILD
    (from rev 99005, miniupnpd/trunk/PKGBUILD)
  miniupnpd/repos/community-x86_64/miniupnpd.systemd
    (from rev 99005, miniupnpd/trunk/miniupnpd.systemd)

------------------------------------+
 community-i686/PKGBUILD            |   41 +++++++++++++++++++++++++++++++++++
 community-i686/miniupnpd.systemd   |   12 ++++++++++
 community-x86_64/PKGBUILD          |   41 +++++++++++++++++++++++++++++++++++
 community-x86_64/miniupnpd.systemd |   12 ++++++++++
 4 files changed, 106 insertions(+)

Copied: miniupnpd/repos/community-i686/PKGBUILD (from rev 99005, miniupnpd/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-10-22 08:53:57 UTC (rev 99006)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: fauno <fauno at parabola.nu>
+pkgname=miniupnpd
+pkgver=1.8.20130730
+pkgrel=1
+pkgdesc="Lightweight UPnP IGD daemon"
+arch=('i686' 'x86_64')
+url="http://miniupnp.free.fr"
+license=('BSD')
+backup=(etc/miniupnpd/miniupnpd.conf)
+depends=('libnfnetlink' 'iptables' 'net-tools' 'util-linux')
+makedepends=('lsb-release')
+source=("http://miniupnp.free.fr/files/$pkgname-$pkgver.tar.gz"
+        miniupnpd.systemd)
+sha256sums=('919ab6ec719959fff9bdae3f1d83f6a39c43fa4a6d3f2c48077f43729d3d7d43'
+            '2707d028f28fbb28c3a9d13605c9c738e9628f828e22288a8a1492ac93f9ad7c')
+
+build() {
+	cd "$pkgname-$pkgver"
+
+	CONFIG_OPTIONS="--strict --ipv6 --leasefile" make -f Makefile.linux config.h
+	make -f Makefile.linux
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+	mkdir -p "$pkgdir/usr/share/man/man8"
+
+	make PREFIX="$pkgdir/" SBININSTALLDIR="$pkgdir/usr/bin" -f Makefile.linux install
+
+	rm -r "${pkgdir}/etc/init.d"
+
+	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+	install -Dm644 "${srcdir}/miniupnpd.systemd" "${pkgdir}/usr/lib/systemd/system/miniupnpd.service"
+
+	sed -i 's:/s\?bin/iptables:/usr/bin/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"
+}

Copied: miniupnpd/repos/community-i686/miniupnpd.systemd (from rev 99005, miniupnpd/trunk/miniupnpd.systemd)
===================================================================
--- community-i686/miniupnpd.systemd	                        (rev 0)
+++ community-i686/miniupnpd.systemd	2013-10-22 08:53:57 UTC (rev 99006)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Lightweight UPnP IGD daemon
+
+[Service]
+ExecStartPre=/etc/miniupnpd/iptables_init.sh
+ExecStart=/usr/bin/miniupnpd -f /etc/miniupnpd/miniupnpd.conf -d
+ExecStopPost=/etc/miniupnpd/iptables_removeall.sh
+PIDFile=/run/miniupnpd.pid
+StandardOutput=null
+
+[Install]
+WantedBy=network.target

Copied: miniupnpd/repos/community-x86_64/PKGBUILD (from rev 99005, miniupnpd/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-10-22 08:53:57 UTC (rev 99006)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: fauno <fauno at parabola.nu>
+pkgname=miniupnpd
+pkgver=1.8.20130730
+pkgrel=1
+pkgdesc="Lightweight UPnP IGD daemon"
+arch=('i686' 'x86_64')
+url="http://miniupnp.free.fr"
+license=('BSD')
+backup=(etc/miniupnpd/miniupnpd.conf)
+depends=('libnfnetlink' 'iptables' 'net-tools' 'util-linux')
+makedepends=('lsb-release')
+source=("http://miniupnp.free.fr/files/$pkgname-$pkgver.tar.gz"
+        miniupnpd.systemd)
+sha256sums=('919ab6ec719959fff9bdae3f1d83f6a39c43fa4a6d3f2c48077f43729d3d7d43'
+            '2707d028f28fbb28c3a9d13605c9c738e9628f828e22288a8a1492ac93f9ad7c')
+
+build() {
+	cd "$pkgname-$pkgver"
+
+	CONFIG_OPTIONS="--strict --ipv6 --leasefile" make -f Makefile.linux config.h
+	make -f Makefile.linux
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+	mkdir -p "$pkgdir/usr/share/man/man8"
+
+	make PREFIX="$pkgdir/" SBININSTALLDIR="$pkgdir/usr/bin" -f Makefile.linux install
+
+	rm -r "${pkgdir}/etc/init.d"
+
+	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+	install -Dm644 "${srcdir}/miniupnpd.systemd" "${pkgdir}/usr/lib/systemd/system/miniupnpd.service"
+
+	sed -i 's:/s\?bin/iptables:/usr/bin/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"
+}

Copied: miniupnpd/repos/community-x86_64/miniupnpd.systemd (from rev 99005, miniupnpd/trunk/miniupnpd.systemd)
===================================================================
--- community-x86_64/miniupnpd.systemd	                        (rev 0)
+++ community-x86_64/miniupnpd.systemd	2013-10-22 08:53:57 UTC (rev 99006)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Lightweight UPnP IGD daemon
+
+[Service]
+ExecStartPre=/etc/miniupnpd/iptables_init.sh
+ExecStart=/usr/bin/miniupnpd -f /etc/miniupnpd/miniupnpd.conf -d
+ExecStopPost=/etc/miniupnpd/iptables_removeall.sh
+PIDFile=/run/miniupnpd.pid
+StandardOutput=null
+
+[Install]
+WantedBy=network.target




More information about the arch-commits mailing list