[arch-commits] Commit in openresolv/trunk (2 files)

Jan Steffens heftig at nymeria.archlinux.org
Mon May 13 06:37:16 EDT 2013


    Date: Monday, May 13, 2013 @ 12:37:16
  Author: heftig
Revision: 185326

usrbin move, cleanup

Added:
  openresolv/trunk/0001-Use-SBINDIR-instead-of-PREFIX-sbin.patch
Modified:
  openresolv/trunk/PKGBUILD

-----------------------------------------------+
 0001-Use-SBINDIR-instead-of-PREFIX-sbin.patch |  135 ++++++++++++++++++++++++
 PKGBUILD                                      |   23 ++--
 2 files changed, 151 insertions(+), 7 deletions(-)

Added: 0001-Use-SBINDIR-instead-of-PREFIX-sbin.patch
===================================================================
--- 0001-Use-SBINDIR-instead-of-PREFIX-sbin.patch	                        (rev 0)
+++ 0001-Use-SBINDIR-instead-of-PREFIX-sbin.patch	2013-05-13 10:37:16 UTC (rev 185326)
@@ -0,0 +1,135 @@
+diff --git a/Makefile b/Makefile
+index 7865a5f..0e4780f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -17,7 +17,7 @@ TARGET=		${RESOLVCONF} ${SUBSCRIBERS}
+ SRCS=		${TARGET:C,$,.in,} # pmake
+ SRCS:=		${TARGET:=.in} # gmake
+ 
+-SED_PREFIX=		-e 's:@PREFIX@:${PREFIX}:g'
++SED_SBINDIR=		-e 's:@SBINDIR@:${SBINDIR}:g'
+ SED_SYSCONFDIR=		-e 's:@SYSCONFDIR@:${SYSCONFDIR}:g'
+ SED_LIBEXECDIR=		-e 's:@LIBEXECDIR@:${LIBEXECDIR}:g'
+ SED_VARDIR=		-e 's:@VARDIR@:${VARDIR}:g'
+@@ -29,7 +29,7 @@ SED_RESTARTCMD=		-e 's:@RESTARTCMD \(.*\)@:${RESTARTCMD}:g'
+ all: ${TARGET}
+ 
+ .in:
+-	${SED}	${SED_PREFIX} ${SED_SYSCONFDIR} ${SED_LIBEXECDIR} \
++	${SED}	${SED_SBINDIR} ${SED_SYSCONFDIR} ${SED_LIBEXECDIR} \
+ 		${SED_VARDIR} ${SED_RCDIR} ${SED_RESTARTCMD} \
+ 		$< > $@
+ 
+diff --git a/dnsmasq.in b/dnsmasq.in
+index 96b5593..542acaa 100644
+--- a/dnsmasq.in
++++ b/dnsmasq.in
+@@ -29,7 +29,7 @@
+ [ -f "@SYSCONFDIR@"/resolvconf.conf ] || exit 0
+ . "@SYSCONFDIR@/resolvconf.conf" || exit 1
+ [ -z "$dnsmasq_conf" -a -z "$dnsmasq_resolv" ] && exit 0
+-[ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
++[ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
+ NL="
+ "
+ 
+@@ -154,7 +154,7 @@ fi
+ if type config_mkdirs >/dev/null 2>&1; then
+ 	config_mkdirs "$dnsmasq_conf" "$dnsmasq_resolv"
+ else
+-	@PREFIX@/sbin/resolvconf -D "$dnsmasq_conf" "$dnsmasq_resolv"
++	@SBINDIR@/resolvconf -D "$dnsmasq_conf" "$dnsmasq_resolv"
+ fi
+ 
+ changed=false
+diff --git a/libc.in b/libc.in
+index c4233d5..945efc8 100644
+--- a/libc.in
++++ b/libc.in
+@@ -97,7 +97,7 @@ fi
+ : ${resolv_conf:=/etc/resolv.conf}
+ : ${libc_service:=nscd}
+ : ${libc_restart:=@RESTARTCMD ${libc_service}@}
+-: ${list_resolv:=@PREFIX@/sbin/resolvconf -l}
++: ${list_resolv:=@SBINDIR@/resolvconf -l}
+ if [ "${resolv_conf_head-x}" = x -a -f "$SYSCONFDIR"/resolv.conf.head ]; then
+ 	resolv_conf_head="$(cat "${SYSCONFDIR}"/resolv.conf.head)"
+ fi
+@@ -130,7 +130,7 @@ case "${resolv_conf_passthrough:-NO}" in
+ 	newconf="$(cat "$newest")$NL"
+ 	;;
+ *)
+-	[ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
++	[ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
+ 	newsearch="$(uniqify $search_domains $SEARCH $search_domains_append)"
+ 	NS="$LOCALNAMESERVERS $NAMESERVERS"
+ 	newns=
+diff --git a/named.in b/named.in
+index 1ee3abc..43ceabb 100644
+--- a/named.in
++++ b/named.in
+@@ -29,7 +29,7 @@
+ [ -f "@SYSCONFDIR@"/resolvconf.conf ] || exit 0
+ . "@SYSCONFDIR@/resolvconf.conf" || exit 1
+ [ -z "$named_zones" -a -z "$named_options" ] && exit 0
+-[ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
++[ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
+ NL="
+ "
+ 
+@@ -78,7 +78,7 @@ done
+ if type config_mkdirs >/dev/null 2>&1; then
+ 	config_mkdirs "$named_options" "$named_zones"
+ else
+-	@PREFIX@/sbin/resolvconf -D "$named_options" "$named_zones"
++	@SBINDIR@/resolvconf -D "$named_options" "$named_zones"
+ fi
+ 
+ # No point in changing files or reloading bind if the end result has not
+diff --git a/pdnsd.in b/pdnsd.in
+index 0a0241a..4c14c3c 100644
+--- a/pdnsd.in
++++ b/pdnsd.in
+@@ -29,7 +29,7 @@
+ [ -f "@SYSCONFDIR@"/resolvconf.conf ] || exit 0
+ . "@SYSCONFDIR@/resolvconf.conf" || exit 1
+ [ -z "$pdnsd_conf" -a -z "$pdnsd_resolv" ] && exit 0
+-[ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
++[ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
+ NL="
+ "
+ 
+@@ -89,7 +89,7 @@ changed=false
+ if type config_mkdirs >/dev/null 2>&1; then
+ 	config_mkdirs "$pdnsd_resolv" "$pdnsd_conf"
+ else
+-	@PREFIX@/sbin/resolvconf -D "$pdnsd_resolv" "$pdnsd_conf"
++	@SBINDIR@/resolvconf -D "$pdnsd_resolv" "$pdnsd_conf"
+ fi
+ 
+ if [ -n "$pdnsd_resolv" ]; then
+diff --git a/unbound.in b/unbound.in
+index 4ee0da7..633c7f0 100644
+--- a/unbound.in
++++ b/unbound.in
+@@ -29,7 +29,7 @@
+ [ -f "@SYSCONFDIR@"/resolvconf.conf ] || exit 0
+ . "@SYSCONFDIR@/resolvconf.conf" || exit 1
+ [ -z "$unbound_conf" ] && exit 0
+-[ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
++[ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
+ NL="
+ "
+ 
+@@ -60,7 +60,7 @@ fi
+ if type config_mkdirs >/dev/null 2>&1; then
+ 	config_mkdirs "$unbound_conf"
+ else
+-	@PREFIX@/sbin/resolvconf -D "$unbound_conf"
++	@SBINDIR@/resolvconf -D "$unbound_conf"
+ fi
+ 
+ if [ ! -f "$unbound_conf" ] || \
+-- 
+1.8.2.3
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 10:09:21 UTC (rev 185325)
+++ PKGBUILD	2013-05-13 10:37:16 UTC (rev 185326)
@@ -4,28 +4,37 @@
 
 pkgname=openresolv
 pkgver=3.5.4
-pkgrel=2
+pkgrel=3
 pkgdesc="resolv.conf management framework (resolvconf)"
 arch=(any)
 url="http://roy.marples.name/projects/openresolv"
 license=('custom:BSD')
 backup=(etc/resolvconf.conf)
 provides=(resolvconf)
+depends=(bash)
+makedepends=(systemd)
 source=("http://roy.marples.name/downloads/openresolv/${pkgname}-${pkgver}.tar.bz2"
-        fs33801.patch)
+        fs33801.patch 0001-Use-SBINDIR-instead-of-PREFIX-sbin.patch)
 md5sums=('617a52fbe6f253f231d9f78f1ea74281'
-         '440790d3403b2ae2c4bb1d657c7e36a4')
+         '440790d3403b2ae2c4bb1d657c7e36a4'
+         '6686a4e74b00c72277a17bb4b4503465')
 
-build() {
+prepare() {
   cd $pkgname-$pkgver
   patch -Np1 -i ../fs33801.patch
-  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/resolvconf
+  patch -Np1 -i ../0001-Use-SBINDIR-instead-of-PREFIX-sbin.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
+}
+
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
 
-  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
-  sed -n '2,25{s:^# \?::;p}' resolvconf.in > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list