[arch-commits] Commit in bind/trunk (PKGBUILD bind.install)

Sébastien Luttringer seblu at nymeria.archlinux.org
Fri May 10 21:27:29 EDT 2013


    Date: Saturday, May 11, 2013 @ 03:27:28
  Author: seblu
Revision: 90291

upgpkg: bind 9.9.2.P2-2

Modified:
  bind/trunk/PKGBUILD
  bind/trunk/bind.install

--------------+
 PKGBUILD     |   12 +++++-------
 bind.install |   30 ++++++++++++++++--------------
 2 files changed, 21 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-11 00:42:45 UTC (rev 90290)
+++ PKGBUILD	2013-05-11 01:27:28 UTC (rev 90291)
@@ -8,12 +8,16 @@
 _pkgver=9.9.2-P2
 pkgver=${_pkgver//-/.}
 pkgrel=2
-pkgdesc='Berkeley Internet Name Daemon is the reference implementation of the DNS protocols'
+pkgdesc='The ISC BIND nameserver'
 url='http://www.isc.org/software/bind/'
 license=('custom:ISC')
 arch=('i686' 'x86_64')
 options=('!makeflags' '!libtool')
 depends=('openssl' 'krb5' 'libxml2')
+provides=('dns-server')
+backup=('etc/logrotate.d/named'
+        'etc/named.conf')
+install=$pkgname.install
 source=("http://ftp.isc.org/isc/bind9/${_pkgver}/bind-${_pkgver}.tar.gz"
         'root.hint::http://www.internic.net/zones/named.root'
         'tmpfiles.d'
@@ -32,13 +36,7 @@
           '76a0d4cd1b913db177a5a375bebc47e5956866ec'
           '53be0f1437ebe595240d8dbdd819939582b97fb9'
           '14264affa71bcfe7703d0fb7c3556c4c47efaa8b')
-provides=('dns-server')
 
-install=$pkgname.install
-backup=('etc/logrotate.d/named'
-        'etc/conf.d/named'
-        'etc/named.conf')
-
 prepare() {
   patch -p1 -d bind-$_pkgver < 01-remove-tools.patch
 }

Modified: bind.install
===================================================================
--- bind.install	2013-05-11 00:42:45 UTC (rev 90290)
+++ bind.install	2013-05-11 01:27:28 UTC (rev 90291)
@@ -1,21 +1,23 @@
 post_install() {
-	getent group named &>/dev/null || groupadd -g 40 named
-	getent passwd named &>/dev/null || useradd -u 40 -c "BIND DNS Server" -g named -d /var/named -s /bin/false named
-	passwd -l named &>/dev/null
+  getent group named &>/dev/null || groupadd -g 40 named
+  getent passwd named &>/dev/null || useradd -u 40 -c 'BIND DNS Server' -g named -d /var/named -s /bin/false named
+  passwd -l named &>/dev/null
 
-	touch var/log/named.log
-	chown named:named var/log/named.log
+  touch var/log/named.log
+  chown named:named var/log/named.log
 
-	# create an rndc.key if it doesn't already exist
-	if [[ ! -s etc/rndc.key ]]; then
-		usr/sbin/rndc-confgen -r /dev/urandom -b 256 | head -n 5 >>etc/rndc.key
-		chown root:named etc/rndc.key
-		chmod 640 etc/rndc.key
-	fi
+  # create an rndc.key if it doesn't already exist
+  if [[ ! -s etc/rndc.key ]]; then
+    usr/sbin/rndc-confgen -r /dev/urandom -b 256 | head -n 5 >>etc/rndc.key
+    chown root:named etc/rndc.key
+    chmod 640 etc/rndc.key
+  fi
 }
 
 pre_remove() {
-	getent passwd named &>/dev/null && userdel named >/dev/null
-	getent group named &>/dev/null && groupdel named >/dev/null
-	return 0
+  getent passwd named &>/dev/null && userdel named >/dev/null
+  getent group named &>/dev/null && groupdel named >/dev/null
+  return 0
 }
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list