]> git.pld-linux.org Git - packages/pdns.git/blobdiff - pdns.spec
- release 3 to rebuild with PostgreSQL 8.2
[packages/pdns.git] / pdns.spec
index 8708b1da5a7a94b64aa0ca6c21f9aeaa279d6e72..a6c4355620f6d50435e6382e5e976d93a6c47431 100644 (file)
--- a/pdns.spec
+++ b/pdns.spec
@@ -1,14 +1,14 @@
 Summary:       PowerDNS is a Versatile Database Driven Nameserver
 Summary(pl):   PowerDNS to wielofunkcyjny serwer nazw korzystaj±cy z relacyjnych baz danych
 Name:          pdns
-Version:       2.9.19
-Release:       4
+Version:       2.9.20
+Release:       3
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 30c96878b56845329cca5b8a351277b4
+# Source0-md5: 33b20ef1b767f93297101f2aa09e99ed
 Source1:       http://downloads.powerdns.com/documentation/%{name}.pdf
-# Source1-md5: f183b5bec39e40f8c55c19afc3a3f933
+# Source1-md5: 3ce3a16df5d91ceab75dea8307b35f2c
 Source2:       http://downloads.powerdns.com/documentation/%{name}.txt
 Source3:       %{name}.init
 Source4:       %{name}.conf
@@ -21,25 +21,26 @@ BuildRequires:      bison
 BuildRequires: boost-devel
 BuildRequires: boost-ref-devel
 BuildRequires: flex
-BuildRequires: libstdc++-devel
 BuildRequires: libpq++-devel
+BuildRequires: libstdc++-devel
 BuildRequires: mysql-devel
 BuildRequires: openldap-devel >= 2.3.0
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
-PreReq:                rc-scripts
+Requires(post):        sed >= 4.0
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
-Requires(post,preun):  /sbin/chkconfig
-Requires(postun):      /usr/sbin/groupdel
-Requires(postun):      /usr/sbin/userdel
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:      rc-scripts
 Provides:      group(djbdns)
 Provides:      nameserver
 Provides:      user(pdns)
 Obsoletes:     powerdns
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 PowerDNS is a versatile nameserver which supports a large number of
@@ -157,23 +158,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 # dirty hack so the config file is processed correctly, and server does not respawn
-TMP=`mktemp /tmp/pdns.install-tmp.XXXXXX`
-sed 's/^ *//' /etc/pdns/pdns.conf > $TMP
-cp /etc/pdns/pdns.conf /etc/pdns/pdns.conf.rpmsave
-mv $TMP /etc/pdns/pdns.conf
+sed -i -e 's/^ *//' /etc/pdns/pdns.conf
 
 /sbin/chkconfig --add pdns
-if [ -f /var/lock/subsys/pdns ]; then
-       /etc/rc.d/init.d/pdns restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2
-fi
+%service pdns restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/pdns ]; then
-               /etc/rc.d/init.d/pdns stop
-       fi
+       %service pdns stop
        /sbin/chkconfig --del pdns
 fi
 
This page took 0.03446 seconds and 4 git commands to generate.