summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD18
-rw-r--r--fs33801.patch224
-rw-r--r--openrc-check.patch16
-rw-r--r--openrc-path.patch30
6 files changed, 30 insertions, 276 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d85671c23a3a..e731805a7223 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,18 @@
# Generated by mksrcinfo v8
-# Sun Mar 13 14:43:41 UTC 2016
+# Thu Jan 26 15:35:48 UTC 2017
pkgbase = openresolv-openrc
pkgdesc = resolv.conf management framework (resolvconf)
- pkgver = 3.7.0
- pkgrel = 2
+ pkgver = 3.8.1
+ pkgrel = 1
url = http://roy.marples.name/projects/openresolv
arch = any
license = custom:BSD
depends = bash
- depends = openrc
provides = openresolv
conflicts = openresolv
backup = etc/resolvconf.conf
- source = http://roy.marples.name/downloads/openresolv/openresolv-3.7.0.tar.bz2
- source = fs33801.patch
- source = openrc-path.patch
- sha1sums = 59ed4fee1cc38211abd5cb7b8f30764687ed2c3f
- sha1sums = 729daba4e6feb8e60acaefd4a72515d34cee0f91
- sha1sums = 69177771673976506c24b4dfb88fa15fadd36077
+ source = http://roy.marples.name/downloads/openresolv/openresolv-3.8.1.tar.xz
+ sha1sums = fe4bf41e3ef0323da899cf522e3e5451b3e5c214
pkgname = openresolv-openrc
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..4071c95a9100
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.tar.?z*
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
index bcf25272ac66..ef59d7510a10 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,33 +5,27 @@
pkgname=openresolv-openrc
_pkgname=openresolv
-pkgver=3.7.0
-pkgrel=2
+pkgver=3.8.1
+pkgrel=1
pkgdesc="resolv.conf management framework (resolvconf)"
arch=(any)
url="http://roy.marples.name/projects/openresolv"
license=('custom:BSD')
backup=(etc/resolvconf.conf)
-depends=(bash openrc)
+depends=(bash)
provides=(openresolv)
conflicts=(openresolv)
-source=("http://roy.marples.name/downloads/openresolv/${_pkgname}-${pkgver}.tar.bz2"
- fs33801.patch
- openrc-path.patch)
-sha1sums=('59ed4fee1cc38211abd5cb7b8f30764687ed2c3f'
- '729daba4e6feb8e60acaefd4a72515d34cee0f91'
- '69177771673976506c24b4dfb88fa15fadd36077')
+source=("http://roy.marples.name/downloads/openresolv/${_pkgname}-${pkgver}.tar.xz")
+sha1sums=('fe4bf41e3ef0323da899cf522e3e5451b3e5c214')
prepare() {
cd $_pkgname-$pkgver
- patch -Np1 -i ../fs33801.patch
- # For openrc path
- patch -Np1 -i ../openrc-path.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() {
diff --git a/fs33801.patch b/fs33801.patch
deleted file mode 100644
index 16aeab33a850..000000000000
--- a/fs33801.patch
+++ /dev/null
@@ -1,224 +0,0 @@
-diff -u -r openresolv-3.7.0/configure openresolv-3.7.0-arch/configure
---- openresolv-3.7.0/configure 2015-05-01 20:11:09.000000000 +0200
-+++ openresolv-3.7.0-arch/configure 2015-05-08 00:31:41.584051126 +0200
-@@ -7,6 +7,7 @@
- HOST=
- TARGET=
- RESTARTCMD=
-+RELOADCMD=
- RCDIR=
-
- for x do
-@@ -33,6 +34,7 @@
- --target) TARGET=$var;;
- --libdir) LIBDIR=$var;;
- --restartcmd) RESTARTCMD=$var;;
-+ --reloadcmd) RELOADCMD=$var;;
- --includedir) eval INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }$var";;
- --datadir|--infodir) ;; # ignore autotools
- --disable-maintainer-mode|--disable-dependency-tracking) ;;
-@@ -60,7 +62,7 @@
- echo "no"
- RUNDIR=/var/run
- fi
--fi
-+fi
-
- : ${SED:=sed}
-
-@@ -68,7 +70,6 @@
- : ${SBINDIR:=$PREFIX/sbin}
- : ${LIBEXECDIR:=$PREFIX/libexec/resolvconf}
- : ${STATEDIR:=/var}
--: ${RUNDIR:=$STATEDIR/run}
- : ${MANDIR:=${PREFIX:-/usr}/share/man}
-
- eval SYSCONFDIR="$SYSCONFDIR"
-@@ -117,7 +118,7 @@
- rm -rf $CONFIG_MK
- echo "# $OS" >$CONFIG_MK
-
--for x in SYSCONFDIR SBINDIR LIBEXECDIR VARDIR MANDIR; do
-+for x in SYSCONFDIR SBINDIR LIBEXECDIR VARDIR MANDIR RUNDIR; do
- eval v=\$$x
- # Make files look nice for import
- l=$((10 - ${#x}))
-@@ -126,26 +127,30 @@
- echo "$x=$t $v" >>$CONFIG_MK
- done
-
--if [ -z "$RESTARTCMD" ]; then
-+if [ -z "$RESTARTCMD" -o -z "$RELOADCMD" ]; then
- printf "Checking for systemd ... "
- if [ -x /bin/systemctl ]; then
-- RESTARTCMD="/bin/systemctl try-restart \1"
-+ : ${RESTARTCMD:="/bin/systemctl --fail --no-block try-restart \1"}
-+ : ${RELOADCMD:="/bin/systemctl --fail --no-block reload \1"}
- echo "yes"
- elif [ -x /usr/bin/systemctl ]; then
-- RESTARTCMD="/usr/bin/systemctl try-restart \1"
-+ : ${RESTARTCMD:="/usr/bin/systemctl --fail --no-block try-restart \1"}
-+ : ${RELOADCMD:="/usr/bin/systemctl --fail --no-block reload \1"}
- echo "yes"
- else
- echo "no"
- fi
- fi
-
-+: ${RELOADCMD:='[ -s "\2" ] \&\& kill -HUP \\`cat "\2"\\` 2>/dev/null'}
-+
- # Arch upgraded to systemd, so this check has to be just after systemd
- # but higher than the others
- if [ -z "$RESTARTCMD" ]; then
- printf "Checking for Arch ... "
- if [ -e /etc/arch-release -a -d /etc/rc.d ]; then
- RCDIR=/etc/rc.d
-- RESTARTCMD="[ -e /var/run/daemons/\1 ] \&\& /etc/rc.d/\1 restart"
-+ RESTARTCMD="[ -e $RUNDIR/daemons/\1 ] \&\& /etc/rc.d/\1 restart"
- echo "yes"
- else
- echo "no"
-@@ -215,11 +220,13 @@
- echo "RCDIR= $RCDIR" >>$CONFIG_MK
- # Work around bug in the dash shell as "echo 'foo \1'" does bad things
- printf "%s\n" "RESTARTCMD= $RESTARTCMD" >>$CONFIG_MK
-+printf "%s\n" "RELOADCMD= $RELOADCMD" >>$CONFIG_MK
-
- echo
- echo " SYSCONFDIR = $SYSCONFDIR"
- echo " SBINDIR = $SBINDIR"
- echo " LIBEXECDIR = $LIBEXECDIR"
--echo " VARDIR = $RUNDIR"
-+echo " RUNDIR = $RUNDIR"
-+echo " VARDIR = $VARDIR"
- echo " MANDIR = $MANDIR"
- echo
-diff -u -r openresolv-3.7.0/dnsmasq.in openresolv-3.7.0-arch/dnsmasq.in
---- openresolv-3.7.0/dnsmasq.in 2015-05-01 20:11:09.000000000 +0200
-+++ openresolv-3.7.0-arch/dnsmasq.in 2015-05-08 00:31:41.584051126 +0200
-@@ -33,11 +33,12 @@
- NL="
- "
-
--: ${dnsmasq_pid:=/var/run/dnsmasq.pid}
--[ -s "$dnsmasq_pid" ] || dnsmasq_pid=/var/run/dnsmasq/dnsmasq.pid
-+: ${dnsmasq_pid:=@RUNDIR@/dnsmasq.pid}
-+[ -s "$dnsmasq_pid" ] || : ${dnsmasq_pid:=@RUNDIR@/dnsmasq/dnsmasq.pid}
- [ -s "$dnsmasq_pid" ] || unset dnsmasq_pid
- : ${dnsmasq_service:=dnsmasq}
- : ${dnsmasq_restart:=@RESTARTCMD ${dnsmasq_service}@}
-+: ${dnsmasq_reload:=@RELOADCMD ${dnsmasq_service} ${dnsmasq_pid}@}
- newconf="# Generated by resolvconf$NL"
- newresolv="$newconf"
-
-@@ -184,7 +185,7 @@
- fi
- if $dbus; then
- if [ -s "$dnsmasq_pid" ]; then
-- $changed || kill -HUP $(cat "$dnsmasq_pid")
-+ $changed || eval $dnsmasq_reload
- fi
- # Send even if empty so old servers are cleared
- if $dbus_ex; then
-diff -u -r openresolv-3.7.0/Makefile openresolv-3.7.0-arch/Makefile
---- openresolv-3.7.0/Makefile 2015-05-01 20:11:09.000000000 +0200
-+++ openresolv-3.7.0-arch/Makefile 2015-05-08 00:33:56.200147440 +0200
-@@ -9,11 +9,13 @@
- SBINDIR?= /sbin
- SYSCONFDIR?= /etc
- LIBEXECDIR?= /libexec/resolvconf
--VARDIR?= /var/run/resolvconf
-+RUNDIR?= /var/run
-+VARDIR?= ${RUNDIR}/resolvconf
- RCDIR?= /etc/rc.d
- RESTARTCMD?= if ${RCDIR}/\1 status >/dev/null 2>\&1; then \
- ${RCDIR}/\1 restart; \
- fi
-+RELOADCMD?= [ -s "\2" ] \&\& kill -HUP \\`cat "\2"\\` 2>/dev/null
-
- INSTALL?= install
- SED?= sed
-@@ -31,9 +33,11 @@
- SED_SBINDIR= -e 's:@SBINDIR@:${SBINDIR}:g'
- SED_SYSCONFDIR= -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g'
- SED_LIBEXECDIR= -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g'
-+SED_RUNDIR= -e 's:@RUNDIR@:${RUNDIR}:g'
- SED_VARDIR= -e 's:@VARDIR@:${VARDIR}:g'
- SED_RCDIR= -e 's:@RCDIR@:${RCDIR}:g'
- SED_RESTARTCMD= -e 's:@RESTARTCMD \(.*\)@:${RESTARTCMD}:g'
-+SED_RELOADCMD= -e 's:@RELOADCMD \([^ ]*\) \(.*\)@:${RELOADCMD}:g'
-
- DISTPREFIX?= ${PKG}-${VERSION}
- DISTFILEGZ?= ${DISTPREFIX}.tar.gz
-@@ -45,8 +49,8 @@
- all: ${TARGET}
-
- .in:
-- ${SED} ${SED_SBINDIR} ${SED_SYSCONFDIR} ${SED_LIBEXECDIR} \
-- ${SED_VARDIR} ${SED_RCDIR} ${SED_RESTARTCMD} \
-+ ${SED} ${SED_SBINDIR} ${SED_SYSCONFDIR} ${SED_LIBEXECDIR} ${SED_RUNDIR} \
-+ ${SED_VARDIR} ${SED_RCDIR} ${SED_RESTARTCMD} ${SED_RELOADCMD} \
- $< > $@
-
- clean:
-diff -u -r openresolv-3.7.0/resolvconf.8.in openresolv-3.7.0-arch/resolvconf.8.in
---- openresolv-3.7.0/resolvconf.8.in 2015-05-01 20:11:09.000000000 +0200
-+++ openresolv-3.7.0-arch/resolvconf.8.in 2015-05-08 00:31:41.620717637 +0200
-@@ -135,7 +135,7 @@
- This only needs to be called if the initial system boot sequence does not
- automatically clean it out; for example the state directory is moved
- somewhere other than
--.Pa /var/run .
-+.Pa @RUNDIR@ .
- If used, it should only be called once as early in the system boot sequence
- as possible and before
- .Nm
-diff -u -r openresolv-3.7.0/resolvconf.conf.5.in openresolv-3.7.0-arch/resolvconf.conf.5.in
---- openresolv-3.7.0/resolvconf.conf.5.in 2015-05-01 20:11:09.000000000 +0200
-+++ openresolv-3.7.0-arch/resolvconf.conf.5.in 2015-05-08 00:31:41.620717637 +0200
-@@ -281,6 +281,8 @@
- Command to restart the dnsmasq service.
- .It Sy dnsmasq_pid
- Location of the dnsmasq pidfile.
-+.It Sy dnsmasq_reload
-+Command to reload the dnsmasq service.
- .It Sy libc_service
- Location of the libc service.
- .It Sy libc_restart
-@@ -297,6 +299,8 @@
- Command to restart the unbound service.
- .It Sy unbound_pid
- Location of the unbound pidfile.
-+.It Sy unbound_reload
-+Command to reload the unbound service.
- .El
- .Sh SEE ALSO
- .Xr resolv.conf 5 ,
-diff -u -r openresolv-3.7.0/unbound.in openresolv-3.7.0-arch/unbound.in
---- openresolv-3.7.0/unbound.in 2015-05-01 20:11:09.000000000 +0200
-+++ openresolv-3.7.0-arch/unbound.in 2015-05-08 00:31:41.620717637 +0200
-@@ -35,9 +35,10 @@
- NL="
- "
-
--: ${unbound_pid:=/var/run/unbound.pid}
-+: ${unbound_pid:=@RUNDIR@/unbound.pid}
- : ${unbound_service:=unbound}
- : ${unbound_restart:=@RESTARTCMD ${unbound_service}@}
-+: ${unbound_reload:=@RELOADCMD ${unbound_service} ${unbound_pid}@}
- newconf="# Generated by resolvconf$NL"
-
- for d in $DOMAINS; do
-@@ -75,11 +76,5 @@
- 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
-- eval $unbound_restart
-- fi
-- else
-- eval $unbound_restart
-- fi
-+ eval $unbound_reload || eval $unbound_restart
- fi
diff --git a/openrc-check.patch b/openrc-check.patch
new file mode 100644
index 000000000000..14ffe47db331
--- /dev/null
+++ b/openrc-check.patch
@@ -0,0 +1,16 @@
+--- openresolv-3.8.1/configure 2016-05-19 16:06:35.000000000 +0530
++++ openresolv-3.8.1/configure.new 2017-01-26 20:56:30.843262243 +0530
+@@ -64,6 +64,13 @@ if [ -z "$RUNDIR" ]; then
+ RUNDIR=/var/run
+ fi
+ fi
++if [ -z "$RESTARTCMD" ]; then
++ printf "Checking for OpenRC ... "
++ if [ -x /usr/bin/rc-service ]; then
++ RESTARTCMD="if /usr/bin/rc-service -e \1; then /usr/bin/rc-service \1 -- -Ds restart; fi"
++ echo "yes"
++ fi
++fi
+
+ : ${SED:=sed}
+
diff --git a/openrc-path.patch b/openrc-path.patch
deleted file mode 100644
index dd550623a63e..000000000000
--- a/openrc-path.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- openresolv-3.6.1/configure 2015-01-11 13:53:25.286463178 +0530
-+++ openresolv-3.6.1/configure-openrc 2015-01-11 13:52:42.716464000 +0530
-@@ -159,7 +159,11 @@
-
- if [ -z "$RESTARTCMD" ]; then
- printf "Checking for OpenRC ... "
-- if [ -x /sbin/rc-service ]; then
-+ # For Arch /sbin -> /usr/bin
-+ if [ -x /usr/bin/rc-service ]; then
-+ RESTARTCMD="if /usr/bin/rc-service -e \1; then /usr/bin/rc-service \1 -- -Ds restart; fi"
-+ echo "yes"
-+ elif [ -x /sbin/rc-service ]; then
- RESTARTCMD="if /sbin/rc-service -e \1; then /sbin/rc-service \1 -- -Ds restart; fi"
- echo "yes"
- else
-@@ -178,7 +182,12 @@
- fi
- if [ -z "$RESTARTCMD" ]; then
- printf "Checking for service ... "
-- if [ -x /sbin/service ]; then
-+ # For Arch /sbin -> /usr/bin
-+ if [ -x /usr/bin/service ]; then
-+ RCDIR=/etc/init.d
-+ RESTARTCMD="if /usr/bin/service \1; then /usr/bin/service \1 restart; fi"
-+ echo "yes"
-+ elif [ -x /sbin/service ]; then
- RCDIR=/etc/init.d
- RESTARTCMD="if /sbin/service \1; then /sbin/service \1 restart; fi"
- echo "yes"
-