Accepting request 417983 from home:adamm:branches:server:dns
- reword description and summary - add signature file and basic keyring (currently only contains signature of the released version since upstream doesn't seem to distribute a real keyring) - remove redundant nsec3 configure option which are enabled by default - remove obsolete --enable-draft-rrtypes configure OBS-URL: https://build.opensuse.org/request/show/417983 OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=26
This commit is contained in:
31
nsd.spec
31
nsd.spec
@@ -48,27 +48,23 @@ PreReq: %insserv_prereq %fillup_prereq pwdutils
|
||||
#
|
||||
Url: http://open.nlnetlabs.nl/nsd/
|
||||
Source: http://open.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz
|
||||
Source5: https://www.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz.asc
|
||||
Source4: nsd.keyring
|
||||
Source1: nsd.service
|
||||
Source2: tmpfiles-nsd.conf
|
||||
Source3: %{name}.init
|
||||
Source3: nsd.init
|
||||
#
|
||||
Summary: An authoritative only, high performance, simple and open source name server
|
||||
Summary: An authoritative only, high performance domain 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
|
||||
REQUIREMENTS document which is a part of this distribution (thanks to Olaf).
|
||||
|
||||
Authors:
|
||||
--------
|
||||
NSD team <nsd-team@nlnetlabs.nl>
|
||||
|
||||
NSD is a complete implementation of an authoritative domain name server developed
|
||||
by NLnet Labs with the purpose of creating more diversity in the DNS landscape.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fPIE -Wformat-nonliteral -Wformat-security"
|
||||
export LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
||||
export CFLAGS="${RPM_OPT_FLAGS} ${CFLAGS} -fPIE -Wformat-nonliteral -Wformat-security"
|
||||
export LDFLAGS="${LDFLAGS} -pie -Wl,-z,relro,-z,now"
|
||||
%configure \
|
||||
--with-configdir=%{configdir} \
|
||||
--with-zonesdir=%{configdir} \
|
||||
@@ -79,12 +75,10 @@ export LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
||||
--enable-root-server \
|
||||
--enable-bind8-stats \
|
||||
--enable-zone-stats \
|
||||
--enable-nsec3 \
|
||||
--enable-mmap \
|
||||
--with-user=%{name} \
|
||||
--enable-ratelimit \
|
||||
--enable-draft-rrtypes
|
||||
%{__make} %{?_smp_mflags}
|
||||
--enable-ratelimit
|
||||
make %{?_smp_mflags}
|
||||
iconv -f iso8859-1 -t utf-8 doc/RELNOTES > doc/RELNOTES.utf8
|
||||
iconv -f iso8859-1 -t utf-8 doc/CREDITS > doc/CREDITS.utf8
|
||||
mv -f doc/RELNOTES.utf8 doc/RELNOTES
|
||||
@@ -93,7 +87,7 @@ mv -f doc/CREDITS.utf8 doc/CREDITS
|
||||
%install
|
||||
make install DESTDIR="%{buildroot}"
|
||||
for i in %{buildroot}%{configdir}/*.sample ; do
|
||||
%{__cp} -v $i ${i%%.sample} ;
|
||||
cp -v $i ${i%%.sample}
|
||||
done
|
||||
|
||||
chmod -Rv o= %{buildroot}%{configdir}/
|
||||
@@ -113,9 +107,6 @@ install -D -m 0755 %{S:3} %{buildroot}%{_sysconfdir}/init.d/%{name}
|
||||
ln -s -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot};
|
||||
|
||||
%pre
|
||||
#
|
||||
# e.g. adding user
|
||||
|
Reference in New Issue
Block a user