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

Levente Polyak anthraxx at archlinux.org
Thu Jun 13 21:11:33 UTC 2019


    Date: Thursday, June 13, 2019 @ 21:11:32
  Author: anthraxx
Revision: 481390

archrelease: copy trunk to community-staging-x86_64

Added:
  miniupnpd/repos/community-staging-x86_64/
  miniupnpd/repos/community-staging-x86_64/PKGBUILD
    (from rev 481389, miniupnpd/trunk/PKGBUILD)
  miniupnpd/repos/community-staging-x86_64/miniupnpd.service
    (from rev 481389, miniupnpd/trunk/miniupnpd.service)

-------------------+
 PKGBUILD          |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 miniupnpd.service |   15 ++++++++++++++
 2 files changed, 69 insertions(+)

Copied: miniupnpd/repos/community-staging-x86_64/PKGBUILD (from rev 481389, miniupnpd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-06-13 21:11:32 UTC (rev 481390)
@@ -0,0 +1,54 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: fauno <fauno at parabola.nu>
+
+pkgname=miniupnpd
+pkgver=2.1.20190502
+pkgrel=2
+pkgdesc='Lightweight UPnP IGD daemon'
+url='https://miniupnp.tuxfamily.org/'
+arch=('x86_64')
+license=('BSD')
+backup=('etc/miniupnpd/miniupnpd.conf')
+depends=('iptables' 'net-tools' 'util-linux')
+makedepends=('lsb-release' 'procps-ng')
+source=(https://miniupnp.tuxfamily.org/files/${pkgname}-${pkgver}.tar.gz{,.sig}
+        miniupnpd.service)
+sha256sums=('8bdc064d7422eecaa993bc47fe5f854f026bee553e70c6b0d55c2eb0d2030dd5'
+            'SKIP'
+            'a224a6e12d47809fe0a051ed5731084245e34a33f42ffe3127bcceff75d0e215')
+sha512sums=('6423cef89b5af62b6b6a120a3cd13a0e7755d609b33de8f1671f7f9160fb1b5e68b0ebd3f8b7b5758cf05a1c58b416cde253e37bc5ba0bb423c14b5fb44599f1'
+            'SKIP'
+            '6387f646d91257e50159f66c5168830c5c845e1de739e52cc86647baafaa96ed3a5d00b6c7e46080c3dd998a486d81183c3c11ce9bf32e2f6d9fdd40b0ea8bef')
+validpgpkeys=('BEB7EA42900FF505B7907AE50FF11B67A5C0863C') # miniupnp (miniupnp !) <miniupnp at free.fr>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed '/gzip/d' -i Makefile.linux
+  sed 's|/sbin/sysctl|sysctl|g' -i genconfig.sh
+}
+
+
+build() {
+  cd ${pkgname}-${pkgver}
+  CONFIG_OPTIONS="--ipv6 --leasefile" make -f Makefile.linux config.h
+  make -f Makefile.linux
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make DESTDIR="${pkgdir}" PREFIX=/ INSTALLPREFIX=/usr SBININSTALLDIR=/usr/bin -f Makefile.linux install
+
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 ../miniupnpd.service -t "${pkgdir}/usr/lib/systemd/system"
+
+  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"
+
+  rm -r "${pkgdir}/etc/init.d"
+}
+
+# vim: ts=2 sw=2 et:

Copied: miniupnpd/repos/community-staging-x86_64/miniupnpd.service (from rev 481389, miniupnpd/trunk/miniupnpd.service)
===================================================================
--- community-staging-x86_64/miniupnpd.service	                        (rev 0)
+++ community-staging-x86_64/miniupnpd.service	2019-06-13 21:11:32 UTC (rev 481390)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Lightweight UPnP IGD daemon
+Documentation=man:miniupnpd(8)
+After=network.target network-online.target
+Wants=network-online.target
+
+[Service]
+Type=forking
+ExecStartPre=/etc/miniupnpd/iptables_init.sh
+ExecStart=/usr/bin/miniupnpd -f /etc/miniupnpd/miniupnpd.conf
+ExecStopPost=/etc/miniupnpd/iptables_removeall.sh
+PIDFile=/run/miniupnpd.pid
+
+[Install]
+WantedBy=multi-user.target


More information about the arch-commits mailing list