From c8370b2fc7125506f29361f9fcb1691dbf60d122527aa64e1fda106a69df9f67 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 29 Mar 2007 15:19:09 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=11 --- nsd.spec | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/nsd.spec b/nsd.spec index 78ea898..f50f5f6 100644 --- a/nsd.spec +++ b/nsd.spec @@ -1,5 +1,26 @@ +# +# spec file for package nsd (Version 3.0.5) +# +# Copyright (c) 2007 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. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + # norootforbuild +Name: nsd +Version: 3.0.5 +Release: 0 +# +License: GPL +Group: Productivity/Networking/DNS/Servers +# +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: openssl-devel pkgconfig pwdutils tcpd-devel +PreReq: %insserv_prereq %fillup_prereq pwdutils +# %define home %{_var}/lib/%{name} %define configdir %{_sysconfdir}/%{name} %define configfile %{configdir}/nsdc.conf @@ -7,24 +28,11 @@ %define zonesdir %{configdir}/ %define dbfile %{zonesdir}/nsd.db # -Name: nsd -Version: 3.0.5 -Release: 0 +Url: http://open.nlnetlabs.nl/nsd/ +Source: http://open.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz +Source1: %{name}.init # -License: GPL -Group: Productivity/Networking/DNS/Servers -# -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: openssl-devel pkgconfig tcpd-devel -PreReq: %insserv_prereq %fillup_prereq -# -URL: http://open.nlnetlabs.nl/nsd/ -Source: http://open.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz -Source1: %{name}.init -#Patch: nsd-2.3.3_ldflags.patch -#Patch1: nsd-2.3.3_implicit_declaration.patch -# -Summary: NSD is an authoritative only, high performance, simple and open source name server. +Summary: NSD is 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 @@ -38,11 +46,8 @@ Authors: %debug_package %prep %setup -#%patch -#%patch1 %build -#autoreconf -fi %configure \ --with-zonesdir=%{configdir} \ --with-dbfile=%{home}/nsd.db \ @@ -68,9 +73,8 @@ done %{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} %{__install} -Dd -m 0755 %{buildroot}%{home} # -touch %{buildroot}%{home}/{nsd.db,ixfr.db,xfrd.state} - - +%{__install} -d -m 0755 %{buildroot}/var/log/ +touch %{buildroot}%{home}/{nsd.db,ixfr.db,xfrd.state} %{buildroot}/var/log/nsd.log %clean %{__rm} -rf %{buildroot}; @@ -120,5 +124,6 @@ touch %{buildroot}%{home}/{nsd.db,ixfr.db,xfrd.state} %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 %changelog