OBS User unknown 2007-03-29 15:19:09 +00:00 committed by Git OBS Bridge
parent 84d093a9ac
commit c8370b2fc7

View File

@ -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 # 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 home %{_var}/lib/%{name}
%define configdir %{_sysconfdir}/%{name} %define configdir %{_sysconfdir}/%{name}
%define configfile %{configdir}/nsdc.conf %define configfile %{configdir}/nsdc.conf
@ -7,24 +28,11 @@
%define zonesdir %{configdir}/ %define zonesdir %{configdir}/
%define dbfile %{zonesdir}/nsd.db %define dbfile %{zonesdir}/nsd.db
# #
Name: nsd Url: http://open.nlnetlabs.nl/nsd/
Version: 3.0.5 Source: http://open.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz
Release: 0 Source1: %{name}.init
# #
License: GPL Summary: NSD is an authoritative only, high performance, simple and open source name server.
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.
%description %description
NSD is a complete implementation of an authoritative DNS name server. For 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 further information about what NSD is and what NSD is not please consult the
@ -38,11 +46,8 @@ Authors:
%debug_package %debug_package
%prep %prep
%setup %setup
#%patch
#%patch1
%build %build
#autoreconf -fi
%configure \ %configure \
--with-zonesdir=%{configdir} \ --with-zonesdir=%{configdir} \
--with-dbfile=%{home}/nsd.db \ --with-dbfile=%{home}/nsd.db \
@ -68,9 +73,8 @@ done
%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} %{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
%{__install} -Dd -m 0755 %{buildroot}%{home} %{__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 %clean
%{__rm} -rf %{buildroot}; %{__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}/ixfr.db
%ghost %config %attr(640,%{name},%{name}) %{home}/xfrd.state %ghost %config %attr(640,%{name},%{name}) %{home}/xfrd.state
%attr(640,root,%{name}) %{configdir}/*.sample %attr(640,root,%{name}) %{configdir}/*.sample
%config %attr(640,%{name},%{name}) /var/log/nsd.log
%changelog %changelog