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

Jan Steffens heftig at archlinux.org
Fri Jul 19 06:43:59 UTC 2019


    Date: Friday, July 19, 2019 @ 06:43:59
  Author: heftig
Revision: 358139

archrelease: copy trunk to testing-any

Added:
  openresolv/repos/testing-any/
  openresolv/repos/testing-any/PKGBUILD
    (from rev 358137, openresolv/trunk/PKGBUILD)
  openresolv/repos/testing-any/fs33801.patch
    (from rev 358137, openresolv/trunk/fs33801.patch)

---------------+
 PKGBUILD      |   37 +++++++++++++++++++++++++++++++++++++
 fs33801.patch |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

Copied: openresolv/repos/testing-any/PKGBUILD (from rev 358137, openresolv/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2019-07-19 06:43:59 UTC (rev 358139)
@@ -0,0 +1,37 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Ignacio Galmarino <igalmarino at gmail.com>
+
+pkgname=openresolv
+pkgver=3.9.1
+pkgrel=1
+pkgdesc="resolv.conf management framework (resolvconf)"
+arch=(any)
+url="https://roy.marples.name/projects/openresolv"
+license=('custom:BSD')
+backup=(etc/resolvconf.conf)
+provides=(resolvconf)
+depends=(bash)
+makedepends=(systemd)
+source=("https://roy.marples.name/downloads/openresolv/${pkgname}-${pkgver}.tar.xz"
+        fs33801.patch)
+sha256sums=('38b8e7e131a39b1c0d4e5688618b8572adf92a5bf757ae9f272e9f81108a9ff2'
+            '466678996689463af748bcdce7ea6f9f24f59004fa4db61fdc04da9f5fff2a6a')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../fs33801.patch
+  sed -n '2,25{s:^# \?::;p}' resolvconf.in >LICENSE 
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/resolvconf --sbindir=/usr/bin
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: openresolv/repos/testing-any/fs33801.patch (from rev 358137, openresolv/trunk/fs33801.patch)
===================================================================
--- testing-any/fs33801.patch	                        (rev 0)
+++ testing-any/fs33801.patch	2019-07-19 06:43:59 UTC (rev 358139)
@@ -0,0 +1,32 @@
+diff -u -r openresolv-3.8.1/dnsmasq.in openresolv-3.8.1-arch/dnsmasq.in
+--- openresolv-3.8.1/dnsmasq.in	2016-05-19 12:36:35.000000000 +0200
++++ openresolv-3.8.1-arch/dnsmasq.in	2016-05-19 20:05:19.659940747 +0200
+@@ -190,8 +190,8 @@
+ 	fi
+ fi
+ if $dbus; then
+-	if [ -s "$dnsmasq_pid" ]; then
+-        	$changed || kill -HUP $(cat "$dnsmasq_pid")
++	if $changed && systemctl --quiet is-active dnsmasq; then
++		systemctl reload dnsmasq
+ 	fi
+ 	# Send even if empty so old servers are cleared
+ 	if $dbus_ex; then
+diff -u -r openresolv-3.8.1/unbound.in openresolv-3.8.1-arch/unbound.in
+--- openresolv-3.8.1/unbound.in	2016-05-19 12:36:35.000000000 +0200
++++ openresolv-3.8.1-arch/unbound.in	2016-05-19 20:04:20.207722679 +0200
+@@ -86,12 +86,7 @@
+ 	[ "$(cat "$unbound_conf")" != "$(printf %s "$newconf")" ]
+ then
+ 	printf %s "$newconf" >"$unbound_conf"
+-	# If we can't sent a HUP then force a restart
+-	if [ -s "$unbound_pid" ]; then
+-		if ! kill -HUP $(cat "$unbound_pid") 2>/dev/null; then
+-			restart_unbound
+-		fi
+-	else
+-		restart_unbound
++	if systemctl --quiet is-active unbound; then
++		systemctl reload unbound
+ 	fi
+ fi



More information about the arch-commits mailing list