This commit is contained in:
parent
84d093a9ac
commit
c8370b2fc7
41
nsd.spec
41
nsd.spec
@ -1,12 +1,15 @@
|
|||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
||||||
%define home %{_var}/lib/%{name}
|
|
||||||
%define configdir %{_sysconfdir}/%{name}
|
|
||||||
%define configfile %{configdir}/nsdc.conf
|
|
||||||
%define zonesfile %{configdir}/nsd.zones
|
|
||||||
%define zonesdir %{configdir}/
|
|
||||||
%define dbfile %{zonesdir}/nsd.db
|
|
||||||
#
|
|
||||||
Name: nsd
|
Name: nsd
|
||||||
Version: 3.0.5
|
Version: 3.0.5
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -15,14 +18,19 @@ License: GPL
|
|||||||
Group: Productivity/Networking/DNS/Servers
|
Group: Productivity/Networking/DNS/Servers
|
||||||
#
|
#
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: openssl-devel pkgconfig tcpd-devel
|
BuildRequires: openssl-devel pkgconfig pwdutils tcpd-devel
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
PreReq: %insserv_prereq %fillup_prereq pwdutils
|
||||||
#
|
#
|
||||||
URL: http://open.nlnetlabs.nl/nsd/
|
%define home %{_var}/lib/%{name}
|
||||||
|
%define configdir %{_sysconfdir}/%{name}
|
||||||
|
%define configfile %{configdir}/nsdc.conf
|
||||||
|
%define zonesfile %{configdir}/nsd.zones
|
||||||
|
%define zonesdir %{configdir}/
|
||||||
|
%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.gz
|
||||||
Source1: %{name}.init
|
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
|
%description
|
||||||
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user