[pdns-recursor/f17] Update to 3.5

Morten Stevens mstevens at fedoraproject.org
Mon Apr 15 11:41:43 UTC 2013


commit 46dee236423038a6fe1bc454fb2dcd7d6d291263
Author: Morten Stevens <mstevens at imt-systems.com>
Date:   Mon Apr 15 13:41:38 2013 +0200

    Update to 3.5

 .gitignore                        |    4 ++
 pdns-recursor-fixsysconfdir.patch |    7 +--
 pdns-recursor.service             |    5 +-
 pdns-recursor.spec                |   75 ++++++++++++++++++++++---------------
 sources                           |    2 +-
 5 files changed, 56 insertions(+), 37 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b279fc2..9cde4f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,6 @@
 pdns-recursor-3.2.tar.bz2
 /pdns-recursor-3.3.tar.bz2
+/pdns-recursor-3.5-rc2.tar.bz2
+/pdns-recursor-3.5-rc4.tar.bz2
+/pdns-recursor-3.5-rc5.tar.bz2
+/pdns-recursor-3.5.tar.bz2
diff --git a/pdns-recursor-fixsysconfdir.patch b/pdns-recursor-fixsysconfdir.patch
index 7ef909c..d6d82de 100644
--- a/pdns-recursor-fixsysconfdir.patch
+++ b/pdns-recursor-fixsysconfdir.patch
@@ -1,9 +1,8 @@
-diff -up pdns-recursor-3.3/config.h.orig pdns-recursor-3.3/config.h
---- pdns-recursor-3.3/config.h.orig	2010-09-25 16:57:46.364960862 +0200
-+++ pdns-recursor-3.3/config.h	2010-09-25 16:58:00.632960838 +0200
+--- pdns-recursor-3.5/config.h.orig	2013-04-15 09:40:40.000000000 +0200
++++ pdns-recursor-3.5/config.h	2013-04-15 12:59:36.946996385 +0200
 @@ -1,4 +1,4 @@
 -#define SYSCONFDIR "/etc/powerdns/" 
 +#define SYSCONFDIR "/etc/pdns-recursor/" 
  #define LOCALSTATEDIR "/var/run/" 
- #define VERSION "3.3"
+ #define VERSION "3.5"
  #define RECURSOR
diff --git a/pdns-recursor.service b/pdns-recursor.service
index 7f4f02b..058cd1e 100644
--- a/pdns-recursor.service
+++ b/pdns-recursor.service
@@ -1,10 +1,11 @@
 [Unit]
-Description=PDNS Recursor
-After=syslog.target network.target
+Description=PowerDNS recursing nameserver
+After=network.target
 
 [Service]
 Type=forking
 ExecStart=/usr/sbin/pdns_recursor --daemon
+PrivateTmp=true
 
 [Install]
 WantedBy=multi-user.target
diff --git a/pdns-recursor.spec b/pdns-recursor.spec
index 9a32a8d..8c69b6a 100644
--- a/pdns-recursor.spec
+++ b/pdns-recursor.spec
@@ -1,24 +1,27 @@
-Summary:		Modern, advanced and high performance recursing/non authoritative nameserver
-Name:			pdns-recursor
-Version:		3.3
-Release:		6%{?dist}
-Group:			System Environment/Daemons
-License:		GPLv2
-URL:			http://powerdns.com
-Source0:		http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
-Source1:		pdns-recursor.service	
-
-Patch0:			pdns-recursor-fixmakefile.patch
-Patch1:			pdns-recursor-fixsysconfdir.patch
-
-Provides:		powerdns-recursor = %{version}-%{release}
-BuildRequires:		boost-devel, lua-devel
-BuildRequires:		systemd-units
-Requires(pre):          shadow-utils
-Requires(post):		systemd-sysv
-Requires(post):		systemd-units
-Requires(preun):	systemd-units
-Requires(postun):	systemd-units
+%global _hardened_build 1
+
+Name: pdns-recursor
+Version: 3.5
+Release: 1%{?dist}
+Summary: Modern, advanced and high performance recursing/non authoritative name server
+Group: System Environment/Daemons
+License: GPLv2
+URL: http://powerdns.com
+Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
+Source1: pdns-recursor.service
+Patch0: pdns-recursor-fixsysconfdir.patch
+Patch1: pdns-recursor-fixmakefile.patch
+
+Provides: powerdns-recursor = %{version}-%{release}
+BuildRequires: boost-devel
+BuildRequires: lua-devel
+BuildRequires: systemd-units
+
+Requires(pre): shadow-utils
+Requires(post): systemd-sysv
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
 
 %description
 PowerDNS Recursor is a non authoritative/recursing DNS server. Use this
@@ -26,16 +29,17 @@ package if you need a dns cache for your network.
 
 %prep
 %setup -q
-%patch0 -p1 -b .fixmakefile
-%patch1 -p1 -b .fixsysconfdir
+%patch0 -p1 -b .fixsysconfdir
+%patch1 -p1 -b .fixmakefile
 
 %build
-LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua OPTFLAGS="%{optflags}" make %{?_smp_mflags}
-
+LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua OPTFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" make %{?_smpflags}
 
 %install
 make install DESTDIR=%{buildroot} CONFIGDIR="%{_sysconfdir}/%{name}"
-%{__install} -D -p %{SOURCE1} %{buildroot}%{_unitdir}/pdns-recursor.service
+chmod 0755 %{buildroot}/%{_bindir}/rec_control
+chmod 0755 %{buildroot}/%{_sbindir}/pdns_recursor
+%{__install} -D -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/pdns-recursor.service
 
 %{__mv} %{buildroot}%{_sysconfdir}/%{name}/recursor.conf{-dist,}
 
@@ -47,7 +51,7 @@ sed -i '2i\setgid=pdns-recursor' %{buildroot}%{_sysconfdir}/%{name}/recursor.con
 getent group pdns-recursor > /dev/null || groupadd -r pdns-recursor
 getent passwd pdns-recursor > /dev/null || \
     useradd -r -g pdns-recursor -d / -s /sbin/nologin \
-    -c "PwerDNS Recursor user" pdns-recursor
+    -c "PowerDNS Recursor user" pdns-recursor
 exit 0
 
 %post
@@ -90,8 +94,17 @@ fi
 %config(noreplace) %{_sysconfdir}/%{name}/recursor.conf
 %doc COPYING README
 
-
 %changelog
+* Mon Apr 15 2013 Morten Stevens <mstevens at imt-systems.com> - 3.5-1
+- Update to 3.5
+- Fixes CVE-2012-1193 and another variant of the attack (rhbz#794965)
+- D.ROOT-SERVERS.NET has a new IP (rhbz#917347)
+- Enable hardened build as per http://fedoraproject.org/wiki/Packaging:Guidelines#PIE
+- Enable PrivateTmp as per http://fedoraproject.org/wiki/Features/ServicesPrivateTmp
+- Fix bogus date in changelog
+- Fix typo in gecos field
+- Some rpmlint fixes
+
 * Tue Feb 28 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.3-6
 - Rebuilt for c++ ABI breakage
 
@@ -164,10 +177,12 @@ fi
 - Sync with upstream
 - Compile fixes for gcc43
 
-* Sun Jan 27 2007 <ruben at rubenkerkhof.com> 3.1.4-4
+* Sat Jan 27 2007 <ruben at rubenkerkhof.com> 3.1.4-4
 - Now really fix the description in init script
+
 * Sat Jan 27 2007 <ruben at rubenkerkhof.com> 3.1.4-3
 - Fixed Description in init script
+
 * Wed Jan 24 2007 <ruben at rubenkerkhof.com> 3.1.4-2
 - Fixes per bz review 221188:
 - Changed user to pdns-recursor
@@ -175,6 +190,6 @@ fi
 - Skipped the configure step, it didn't do much
 - Added a more Fedora-centric initscript
 - Use condrestart instead of restart in %%postun
+
 * Sun Dec 31 2006 <ruben at rubenkerkhof.com> 3.1.4-1
 - Initial import
-
diff --git a/sources b/sources
index 80ada59..45834ee 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-87daeeebb6f7af9e07814ff6c43300dd  pdns-recursor-3.3.tar.bz2
+4f1ded08fc6015b5e006b52f523f0b9b  pdns-recursor-3.5.tar.bz2


More information about the scm-commits mailing list