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

Levente Polyak anthraxx at archlinux.org
Tue Mar 13 01:28:33 UTC 2018


    Date: Tuesday, March 13, 2018 @ 01:28:32
  Author: anthraxx
Revision: 306746

upgpkg: miniupnpd 2.0.20180222-1

Added:
  miniupnpd/trunk/miniupnpd.service
Modified:
  miniupnpd/trunk/PKGBUILD
Deleted:
  miniupnpd/trunk/miniupnpd.systemd

-------------------+
 PKGBUILD          |   47 ++++++++++++++++++++++++++++-------------------
 miniupnpd.service |   14 ++++++++++++++
 miniupnpd.systemd |   14 --------------
 3 files changed, 42 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-13 01:04:25 UTC (rev 306745)
+++ PKGBUILD	2018-03-13 01:28:32 UTC (rev 306746)
@@ -1,41 +1,50 @@
-# $Id$
-# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# 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.0.20170421
-pkgrel=2
-pkgdesc="Lightweight UPnP IGD daemon"
+pkgver=2.0.20180222
+pkgrel=1
+pkgdesc='Lightweight UPnP IGD daemon'
+url='https://miniupnp.tuxfamily.org/'
 arch=('x86_64')
-url="http://miniupnp.free.fr"
 license=('BSD')
-backup=(etc/miniupnpd/miniupnpd.conf)
+backup=('etc/miniupnpd/miniupnpd.conf')
 depends=('iptables' 'net-tools' 'util-linux')
 makedepends=('lsb-release')
-source=("http://miniupnp.free.fr/files/$pkgname-$pkgver.tar.gz"
-        miniupnpd.systemd)
-sha256sums=('9677aeccadf73b4bf8bb9d832c32b5da8266b4d58eed888f3fd43d7656405643'
+source=(https://miniupnp.tuxfamily.org/files/${pkgname}-${pkgver}.tar.gz
+        miniupnpd.service)
+sha256sums=('194fb1c2d24d7b850f97a7a82c3999a03b62e8aa590fad8eba99991ffef6b7c1'
             '66cd1ed0ae55c683910d46c2e486a8b52e48088b70248323cf894bc962ede48f')
+sha512sums=('a7ee306ccac0673e55780129b3c61de025ec63a653383ae475f08695a95647ae83e5e5978ce6ee166e8d0270a5bd08250613593acaabd0b730178ca2e52dc482'
+            '5075892c664c4d935da66436e3f45ee077ddf77e80c7553930929fe2b9d587aaeb5df5a4febdbac8fa6d5b22dae35662012ae22eabb87fe3472e25b91afd3466')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed '/gzip/d' -i Makefile.linux
+}
+
+
 build() {
-  cd "$pkgname-$pkgver"
-
+  cd ${pkgname}-${pkgver}
   CONFIG_OPTIONS="--ipv6 --leasefile" make -f Makefile.linux config.h
   make -f Makefile.linux
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-  mkdir -p "$pkgdir/usr/share/man/man8"
+  cd ${pkgname}-${pkgver}
 
-  make PREFIX="$pkgdir/" SBININSTALLDIR="$pkgdir/usr/bin" -f Makefile.linux install
+  make DESTDIR="${pkgdir}" PREFIX=/ INSTALLPREFIX=/usr SBININSTALLDIR=/usr/bin -f Makefile.linux install
 
-  rm -r "${pkgdir}/etc/init.d"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 ../miniupnpd.service -t "${pkgdir}/usr/lib/systemd/system"
 
-  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"
+
+  rm -r "${pkgdir}/etc/init.d"
 }
+
+# vim: ts=2 sw=2 et:

Added: miniupnpd.service
===================================================================
--- miniupnpd.service	                        (rev 0)
+++ miniupnpd.service	2018-03-13 01:28:32 UTC (rev 306746)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Lightweight UPnP IGD daemon
+Documentation=man:miniupnpd(8)
+After=network.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=network.target

Deleted: miniupnpd.systemd
===================================================================
--- miniupnpd.systemd	2018-03-13 01:04:25 UTC (rev 306745)
+++ miniupnpd.systemd	2018-03-13 01:28:32 UTC (rev 306746)
@@ -1,14 +0,0 @@
-[Unit]
-Description=Lightweight UPnP IGD daemon
-Documentation=man:miniupnpd(8)
-After=network.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=network.target



More information about the arch-commits mailing list