From 375314e8cb01409f83a75e07f2d931b8be16353ca9c34da4097ef8821e632750 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 12 Apr 2011 02:25:25 +0000 Subject: [PATCH] - update to 3.2.8 see /usr/share/doc/packages/nsd/ChangeLog OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=15 --- nsd-2.3.3_implicit_declaration.patch | 18 ------------------ nsd-2.3.3_ldflags.patch | 13 ------------- nsd-3.0.5.tar.gz | 3 --- nsd-3.0.5_strcmp.patch | 13 ------------- nsd-3.2.8.tar.bz2 | 3 +++ nsd.changes | 6 ++++++ nsd.spec | 22 +++++++++++----------- 7 files changed, 20 insertions(+), 58 deletions(-) delete mode 100644 nsd-2.3.3_implicit_declaration.patch delete mode 100644 nsd-2.3.3_ldflags.patch delete mode 100644 nsd-3.0.5.tar.gz delete mode 100644 nsd-3.0.5_strcmp.patch create mode 100644 nsd-3.2.8.tar.bz2 diff --git a/nsd-2.3.3_implicit_declaration.patch b/nsd-2.3.3_implicit_declaration.patch deleted file mode 100644 index e41d604..0000000 --- a/nsd-2.3.3_implicit_declaration.patch +++ /dev/null @@ -1,18 +0,0 @@ -Index: zonec.c -=================================================================== ---- zonec.c.orig -+++ zonec.c -@@ -20,7 +20,13 @@ - #include - #endif - #include -+#if !defined(__USE_XOPEN) -+#define __USE_XOPEN /* glibc2 needs this */ - #include -+#undef __USE_XOPEN -+#else -+#include -+#endif - - #include - diff --git a/nsd-2.3.3_ldflags.patch b/nsd-2.3.3_ldflags.patch deleted file mode 100644 index 439ca34..0000000 --- a/nsd-2.3.3_ldflags.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: configure.ac -=================================================================== ---- configure.ac.orig -+++ configure.ac -@@ -182,7 +182,7 @@ AC_DEFUN([CHECK_SSL], [ - else - AC_MSG_RESULT(found in $ssldir) - HAVE_SSL=yes -- LDFLAGS="$LDFLAGS -L$ssldir/lib"; -+ LDFLAGS="$LDFLAGS"; - AC_CHECK_LIB(crypto, HMAC_CTX_init,, [ - AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required]) - ]) diff --git a/nsd-3.0.5.tar.gz b/nsd-3.0.5.tar.gz deleted file mode 100644 index 7e8f317..0000000 --- a/nsd-3.0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7c7d4c3da3e5a81357b4e189ec8a5b7ace1a2ed70dd52aef4946c6c0a320937 -size 789687 diff --git a/nsd-3.0.5_strcmp.patch b/nsd-3.0.5_strcmp.patch deleted file mode 100644 index c63bf30..0000000 --- a/nsd-3.0.5_strcmp.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: nsd.c -=================================================================== ---- nsd.c.orig -+++ nsd.c -@@ -555,7 +555,7 @@ main (int argc, char *argv[]) - if(nsd.options->pidfile) nsd.pidfile = nsd.options->pidfile; - else nsd.pidfile = PIDFILE; - } -- if(nsd.identity == hostname || nsd.identity == IDENTITY) -+ if(!strcmp(nsd.identity, hostname) || !strcmp(nsd.identity, IDENTITY)) - { - if(nsd.options->identity) nsd.identity = nsd.options->identity; - } diff --git a/nsd-3.2.8.tar.bz2 b/nsd-3.2.8.tar.bz2 new file mode 100644 index 0000000..3215a44 --- /dev/null +++ b/nsd-3.2.8.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5701cf6c3abbc7ade00d28b7ad52f7ff79d8f7ae81bb4781e825296dcfc7aef1 +size 790021 diff --git a/nsd.changes b/nsd.changes index 51c9642..3f35e8a 100644 --- a/nsd.changes +++ b/nsd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 12 02:24:10 UTC 2011 - mrueckert@suse.de + +- update to 3.2.8 + see /usr/share/doc/packages/nsd/ChangeLog + ------------------------------------------------------------------- Wed Sep 1 16:29:48 UTC 2010 - suse-tux@gmx.de diff --git a/nsd.spec b/nsd.spec index 6b8d45f..072991a 100644 --- a/nsd.spec +++ b/nsd.spec @@ -1,7 +1,7 @@ # -# spec file for package nsd (Version 3.0.5) +# spec file for package nsd # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -11,7 +11,7 @@ # norootforbuild Name: nsd -Version: 3.0.5 +Version: 3.2.8 Release: 0 # License: GPL @@ -29,11 +29,10 @@ PreReq: %insserv_prereq %fillup_prereq pwdutils %define dbfile %{zonesdir}/nsd.db # Url: http://open.nlnetlabs.nl/nsd/ -Source: http://open.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz +Source: http://open.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.bz2 Source1: %{name}.init -Patch0: nsd-3.0.5_strcmp.patch # -Summary: NSD is an authoritative only, high performance, simple and open source name server. +Summary: An authoritative only, high performance, simple and open source name server %description NSD is a complete implementation of an authoritative DNS name server. For further information about what NSD is and what NSD is not please consult the @@ -46,7 +45,6 @@ Authors: %prep %setup -%patch0 %build %configure \ @@ -69,6 +67,7 @@ Authors: for i in %{buildroot}%{configdir}/*.sample ; do %{__cp} -v $i ${i%%.sample} ; done +chmod -Rv o= %{buildroot}%{configdir}/ # %{__install} -D -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{name} %{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} @@ -118,13 +117,14 @@ touch %{buildroot}%{home}/{nsd.db,ixfr.db,xfrd.state} %{buildroot}/var/log/nsd.l %{_mandir}/man8/nsd.8* %{_mandir}/man8/nsdc.8* %{_mandir}/man8/zonec.8* +# +%config %attr(-,root,%{name}) %{configdir} +# %dir %attr(750,%{name},%{name}) %{home} -%dir %attr(750,root,%{name}) %{configdir} -%config(noreplace) %attr(640,root,%{name}) %{configdir}/nsd.conf %ghost %config %attr(640,%{name},%{name}) %{home}/nsd.db %ghost %config %attr(640,%{name},%{name}) %{home}/ixfr.db %ghost %config %attr(640,%{name},%{name}) %{home}/xfrd.state -%attr(640,root,%{name}) %{configdir}/*.sample -%config %attr(640,%{name},%{name}) /var/log/nsd.log +# +%ghost %attr(640,%{name},%{name}) /var/log/nsd.log %changelog