2007-03-29 17:19:09 +02:00
|
|
|
#
|
2011-04-12 04:25:25 +02:00
|
|
|
# spec file for package nsd
|
2007-03-29 17:19:09 +02:00
|
|
|
#
|
Accepting request 1095779 from home:amanzini:branches:server:dns
- New upstream release 4.7.0
This release adds a script for bash autocompletion for nsd-control. Also
nsd-control can be configured to use unencrypted operation also when
compiled without openssl. There is also a systemd service unit example
file contributed. The dnstap log service can be contacted over TCP, with
the dnstap-ip: ip option. It is also possible to use TLS, with
dnstap-tls, it is enabled by default, and can be configured with the
dnstap-server-name, dnstap-cert-bundle, dnstap-client-key-file and
dnstap-client-cert-file options.
FEATURES:
* Fix #267: Allow unencrypted local operation of nsd-control.
* Fix #271: DNSTAP over TCP, with dnstap-ip: "127.0.0.1@3333".
* dnstap over TLS, default enabled. Configured with the
options dnstap-tls, dnstap-tls-server-name, dnstap-tls-cert-bundle,
dnstap-tls-client-key-file and dnstap-tls-client-cert-file.
BUGFIXES:
see https://github.com/NLnetLabs/nsd/releases/tag/NSD_4_7_0_REL
OBS-URL: https://build.opensuse.org/request/show/1095779
OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=101
2023-07-04 19:20:39 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-02-10 02:08:20 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-26 02:40:49 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-03-29 17:19:09 +02:00
|
|
|
#
|
|
|
|
|
2018-02-19 11:22:36 +01:00
|
|
|
|
2018-02-10 02:08:20 +01:00
|
|
|
%define home %{_localstatedir}/lib/%{name}
|
|
|
|
%define configdir %{_sysconfdir}/%{name}
|
|
|
|
%define configfile %{configdir}/nsdc.conf
|
|
|
|
%define zonesfile %{configdir}/nsd.zones
|
|
|
|
%define zonesdir %{configdir}/zones
|
|
|
|
%define pidfile %{_rundir}/nsd/nsd.pid
|
2007-03-29 17:19:09 +02:00
|
|
|
Name: nsd
|
Accepting request 1095779 from home:amanzini:branches:server:dns
- New upstream release 4.7.0
This release adds a script for bash autocompletion for nsd-control. Also
nsd-control can be configured to use unencrypted operation also when
compiled without openssl. There is also a systemd service unit example
file contributed. The dnstap log service can be contacted over TCP, with
the dnstap-ip: ip option. It is also possible to use TLS, with
dnstap-tls, it is enabled by default, and can be configured with the
dnstap-server-name, dnstap-cert-bundle, dnstap-client-key-file and
dnstap-client-cert-file options.
FEATURES:
* Fix #267: Allow unencrypted local operation of nsd-control.
* Fix #271: DNSTAP over TCP, with dnstap-ip: "127.0.0.1@3333".
* dnstap over TLS, default enabled. Configured with the
options dnstap-tls, dnstap-tls-server-name, dnstap-tls-cert-bundle,
dnstap-tls-client-key-file and dnstap-tls-client-cert-file.
BUGFIXES:
see https://github.com/NLnetLabs/nsd/releases/tag/NSD_4_7_0_REL
OBS-URL: https://build.opensuse.org/request/show/1095779
OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=101
2023-07-04 19:20:39 +02:00
|
|
|
Version: 4.7.0
|
2007-03-29 17:19:09 +02:00
|
|
|
Release: 0
|
|
|
|
#
|
2018-02-12 13:25:36 +01:00
|
|
|
Summary: An authoritative-only domain name server
|
2018-02-10 02:08:20 +01:00
|
|
|
#
|
2013-12-29 05:30:31 +01:00
|
|
|
License: BSD-3-Clause
|
2007-03-29 17:19:09 +02:00
|
|
|
Group: Productivity/Networking/DNS/Servers
|
2021-04-06 20:43:14 +02:00
|
|
|
URL: https://open.nlnetlabs.nl/nsd/
|
|
|
|
Source: https://open.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz
|
2018-02-10 02:08:20 +01:00
|
|
|
Source1: nsd.service
|
|
|
|
Source2: tmpfiles-nsd.conf
|
2019-12-12 16:51:01 +01:00
|
|
|
# Generated with from https://nlnetlabs.nl/people/
|
|
|
|
#
|
|
|
|
# curl -Ss https://nlnetlabs.nl/people/ | \
|
|
|
|
# grep 'PGP Key ID' | \
|
|
|
|
# sed 's,.*PGP Key ID: \([A-Z0-9 ]\+\).*,\1,' | \
|
|
|
|
# perl -e 'while($_=<>){chop; s, ,,g;print; print(" ");}' | \
|
|
|
|
# xargs gpg --export-options export-minimal --export > nsd.keyring
|
2021-04-06 20:43:14 +02:00
|
|
|
#
|
2018-02-10 02:08:20 +01:00
|
|
|
Source4: nsd.keyring
|
|
|
|
Source5: https://www.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz.asc
|
|
|
|
#
|
2013-12-29 05:30:31 +01:00
|
|
|
BuildRequires: libevent-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pwdutils
|
|
|
|
BuildRequires: tcpd-devel
|
Accepting request 1095779 from home:amanzini:branches:server:dns
- New upstream release 4.7.0
This release adds a script for bash autocompletion for nsd-control. Also
nsd-control can be configured to use unencrypted operation also when
compiled without openssl. There is also a systemd service unit example
file contributed. The dnstap log service can be contacted over TCP, with
the dnstap-ip: ip option. It is also possible to use TLS, with
dnstap-tls, it is enabled by default, and can be configured with the
dnstap-server-name, dnstap-cert-bundle, dnstap-client-key-file and
dnstap-client-cert-file options.
FEATURES:
* Fix #267: Allow unencrypted local operation of nsd-control.
* Fix #271: DNSTAP over TCP, with dnstap-ip: "127.0.0.1@3333".
* dnstap over TLS, default enabled. Configured with the
options dnstap-tls, dnstap-tls-server-name, dnstap-tls-cert-bundle,
dnstap-tls-client-key-file and dnstap-tls-client-cert-file.
BUGFIXES:
see https://github.com/NLnetLabs/nsd/releases/tag/NSD_4_7_0_REL
OBS-URL: https://build.opensuse.org/request/show/1095779
OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=101
2023-07-04 19:20:39 +02:00
|
|
|
Requires: shadow
|
2023-08-05 20:54:54 +02:00
|
|
|
Requires(post): (coreutils or busybox-coreutils)
|
|
|
|
Requires(post): (findutils or busybox-findutils)
|
2018-02-12 10:05:22 +01:00
|
|
|
Requires(post): shadow
|
2023-08-05 20:54:54 +02:00
|
|
|
Requires(pre): (coreutils or busybox-coreutils)
|
Accepting request 1095779 from home:amanzini:branches:server:dns
- New upstream release 4.7.0
This release adds a script for bash autocompletion for nsd-control. Also
nsd-control can be configured to use unencrypted operation also when
compiled without openssl. There is also a systemd service unit example
file contributed. The dnstap log service can be contacted over TCP, with
the dnstap-ip: ip option. It is also possible to use TLS, with
dnstap-tls, it is enabled by default, and can be configured with the
dnstap-server-name, dnstap-cert-bundle, dnstap-client-key-file and
dnstap-client-cert-file options.
FEATURES:
* Fix #267: Allow unencrypted local operation of nsd-control.
* Fix #271: DNSTAP over TCP, with dnstap-ip: "127.0.0.1@3333".
* dnstap over TLS, default enabled. Configured with the
options dnstap-tls, dnstap-tls-server-name, dnstap-tls-cert-bundle,
dnstap-tls-client-key-file and dnstap-tls-client-cert-file.
BUGFIXES:
see https://github.com/NLnetLabs/nsd/releases/tag/NSD_4_7_0_REL
OBS-URL: https://build.opensuse.org/request/show/1095779
OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=101
2023-07-04 19:20:39 +02:00
|
|
|
Requires(pre): shadow
|
2023-08-05 20:54:54 +02:00
|
|
|
%{?systemd_ordering}
|
2018-02-10 02:08:20 +01:00
|
|
|
|
2006-07-07 14:18:42 +02:00
|
|
|
%description
|
2018-02-12 13:25:36 +01:00
|
|
|
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.
|
2007-03-29 07:17:02 +02:00
|
|
|
|
2006-07-07 14:18:42 +02:00
|
|
|
%prep
|
2018-02-10 02:08:20 +01:00
|
|
|
%setup -q
|
2006-07-07 14:18:42 +02:00
|
|
|
|
|
|
|
%build
|
2007-03-29 07:17:02 +02:00
|
|
|
%configure \
|
2013-12-29 05:30:31 +01:00
|
|
|
--with-configdir=%{configdir} \
|
2018-02-10 02:08:20 +01:00
|
|
|
--with-zonesdir=%{zonesdir} \
|
2007-03-29 07:17:02 +02:00
|
|
|
--with-dbfile=%{home}/nsd.db \
|
|
|
|
--with-xfrdfile=%{home}/xfrd.state \
|
2018-02-10 02:08:20 +01:00
|
|
|
--with-pidfile=%{_rundir}/nsd/nsd.pid \
|
|
|
|
--with-logfile=/%{_localstatedir}/log/nsd/nsd.log \
|
2007-03-29 07:17:02 +02:00
|
|
|
--enable-root-server \
|
|
|
|
--enable-bind8-stats \
|
2015-11-26 01:03:16 +01:00
|
|
|
--enable-zone-stats \
|
2007-03-29 07:17:02 +02:00
|
|
|
--enable-mmap \
|
2018-02-10 02:08:20 +01:00
|
|
|
--with-user=_nsd \
|
2016-08-10 03:30:03 +02:00
|
|
|
--enable-ratelimit
|
Accepting request 1095779 from home:amanzini:branches:server:dns
- New upstream release 4.7.0
This release adds a script for bash autocompletion for nsd-control. Also
nsd-control can be configured to use unencrypted operation also when
compiled without openssl. There is also a systemd service unit example
file contributed. The dnstap log service can be contacted over TCP, with
the dnstap-ip: ip option. It is also possible to use TLS, with
dnstap-tls, it is enabled by default, and can be configured with the
dnstap-server-name, dnstap-cert-bundle, dnstap-client-key-file and
dnstap-client-cert-file options.
FEATURES:
* Fix #267: Allow unencrypted local operation of nsd-control.
* Fix #271: DNSTAP over TCP, with dnstap-ip: "127.0.0.1@3333".
* dnstap over TLS, default enabled. Configured with the
options dnstap-tls, dnstap-tls-server-name, dnstap-tls-cert-bundle,
dnstap-tls-client-key-file and dnstap-tls-client-cert-file.
BUGFIXES:
see https://github.com/NLnetLabs/nsd/releases/tag/NSD_4_7_0_REL
OBS-URL: https://build.opensuse.org/request/show/1095779
OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=101
2023-07-04 19:20:39 +02:00
|
|
|
%make_build
|
2013-12-29 05:30:31 +01:00
|
|
|
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
|
|
|
|
mv -f doc/CREDITS.utf8 doc/CREDITS
|
2006-07-07 14:18:42 +02:00
|
|
|
|
|
|
|
%install
|
2018-02-10 02:08:20 +01:00
|
|
|
%make_install
|
2011-04-12 04:25:25 +02:00
|
|
|
chmod -Rv o= %{buildroot}%{configdir}/
|
2007-03-29 07:17:02 +02:00
|
|
|
#
|
2013-12-29 05:30:31 +01:00
|
|
|
install -d -m 0700 %{buildroot}%{home} \
|
|
|
|
%{buildroot}%{_rundir}/%{name}
|
2007-03-29 07:17:02 +02:00
|
|
|
#
|
2018-02-10 02:08:20 +01:00
|
|
|
install -d -m 0755 %{buildroot}/%{_localstatedir}/log/nsd/
|
|
|
|
touch %{buildroot}%{home}/{nsd.db,ixfr.db,xfrd.state} %{buildroot}/%{_localstatedir}/log/nsd/nsd.log
|
2018-02-12 11:43:27 +01:00
|
|
|
mkdir -m 0750 %{buildroot}%{zonesdir}
|
2006-07-07 14:18:42 +02:00
|
|
|
|
2013-12-29 05:30:31 +01:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/nsd.service
|
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/nsd.conf
|
2018-02-10 02:08:20 +01:00
|
|
|
ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
2013-12-29 05:30:31 +01:00
|
|
|
|
2006-07-07 14:18:42 +02:00
|
|
|
%pre
|
2018-02-12 13:25:36 +01:00
|
|
|
getent group _nsd >/dev/null || groupadd -r _nsd
|
|
|
|
getent passwd _nsd >/dev/null || \
|
2018-02-16 09:15:09 +01:00
|
|
|
useradd -r -g _nsd -s /bin/false -c "user for %{name}" \
|
|
|
|
-d %{home} _nsd
|
2016-10-19 12:36:57 +02:00
|
|
|
%service_add_pre %{name}.service
|
2006-07-07 14:18:42 +02:00
|
|
|
|
|
|
|
%post
|
2015-10-13 11:45:07 +02:00
|
|
|
systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf || :
|
2016-10-19 12:36:57 +02:00
|
|
|
%service_add_post %{name}.service
|
2006-07-07 14:18:42 +02:00
|
|
|
|
|
|
|
%preun
|
2016-10-19 12:36:57 +02:00
|
|
|
%service_del_preun %{name}.service
|
2006-07-07 14:18:42 +02:00
|
|
|
|
|
|
|
%postun
|
2013-12-29 05:30:31 +01:00
|
|
|
%service_del_postun %{name}.service
|
2006-07-07 14:18:42 +02:00
|
|
|
|
|
|
|
%files
|
2007-03-29 07:17:02 +02:00
|
|
|
%doc doc/*
|
2016-10-19 12:36:57 +02:00
|
|
|
%{configdir}/nsd.conf.sample
|
2006-07-07 14:18:42 +02:00
|
|
|
%doc contrib/
|
2013-12-29 05:30:31 +01:00
|
|
|
%{_unitdir}/nsd.service
|
2018-02-19 11:22:36 +01:00
|
|
|
%dir %{_tmpfilesdir}
|
2013-12-29 05:30:31 +01:00
|
|
|
%{_tmpfilesdir}/nsd.conf
|
2006-07-07 14:18:42 +02:00
|
|
|
%{_sbindir}/rcnsd
|
|
|
|
%{_sbindir}/nsd
|
2013-12-29 05:30:31 +01:00
|
|
|
%{_sbindir}/nsd-control
|
|
|
|
%{_sbindir}/nsd-control-setup
|
2007-03-29 07:17:02 +02:00
|
|
|
%{_sbindir}/nsd-checkconf
|
2014-12-15 13:32:10 +01:00
|
|
|
%{_sbindir}/nsd-checkzone
|
Accepting request 1095779 from home:amanzini:branches:server:dns
- New upstream release 4.7.0
This release adds a script for bash autocompletion for nsd-control. Also
nsd-control can be configured to use unencrypted operation also when
compiled without openssl. There is also a systemd service unit example
file contributed. The dnstap log service can be contacted over TCP, with
the dnstap-ip: ip option. It is also possible to use TLS, with
dnstap-tls, it is enabled by default, and can be configured with the
dnstap-server-name, dnstap-cert-bundle, dnstap-client-key-file and
dnstap-client-cert-file options.
FEATURES:
* Fix #267: Allow unencrypted local operation of nsd-control.
* Fix #271: DNSTAP over TCP, with dnstap-ip: "127.0.0.1@3333".
* dnstap over TLS, default enabled. Configured with the
options dnstap-tls, dnstap-tls-server-name, dnstap-tls-cert-bundle,
dnstap-tls-client-key-file and dnstap-tls-client-cert-file.
BUGFIXES:
see https://github.com/NLnetLabs/nsd/releases/tag/NSD_4_7_0_REL
OBS-URL: https://build.opensuse.org/request/show/1095779
OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=101
2023-07-04 19:20:39 +02:00
|
|
|
%{_mandir}/man5/nsd.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/nsd-checkconf.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/nsd-checkzone.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/nsd.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/nsd-control.8%{?ext_man}
|
2011-04-12 04:25:25 +02:00
|
|
|
#
|
2018-02-10 02:08:20 +01:00
|
|
|
%config(noreplace) %attr(-,root,_nsd) %{configdir}
|
|
|
|
%ghost %config %attr(640,_nsd,_nsd) %{configdir}/nsd.conf
|
2018-02-12 11:43:27 +01:00
|
|
|
%dir %attr(750,root,_nsd) %{zonesdir}
|
2011-04-12 04:25:25 +02:00
|
|
|
#
|
2018-02-10 02:08:20 +01:00
|
|
|
%dir %attr(750,_nsd,_nsd) %{home}
|
|
|
|
%ghost %config %attr(640,_nsd,_nsd) %{home}/nsd.db
|
|
|
|
%ghost %config %attr(640,_nsd,_nsd) %{home}/ixfr.db
|
|
|
|
%ghost %config %attr(640,_nsd,_nsd) %{home}/xfrd.state
|
2011-04-12 04:25:25 +02:00
|
|
|
#
|
2018-02-10 02:08:20 +01:00
|
|
|
%dir %attr(750,_nsd,_nsd) /%{_localstatedir}/log/nsd
|
|
|
|
%ghost %attr(640,_nsd,_nsd) /%{_localstatedir}/log/nsd/nsd.log
|
|
|
|
%ghost %attr(750,_nsd,_nsd) %{_rundir}/%{name}
|
2007-03-29 07:17:02 +02:00
|
|
|
|
|
|
|
%changelog
|