2014-09-05 15:39:08 +02:00
|
|
|
#
|
|
|
|
# spec file for package unbound
|
|
|
|
#
|
2022-05-04 15:05:55 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-09-05 15:39:08 +02: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.
|
|
|
|
|
2019-04-14 09:33:27 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-09-05 15:39:08 +02:00
|
|
|
#
|
2008-05-21 04:53:41 +02:00
|
|
|
|
2014-11-10 18:41:24 +01:00
|
|
|
|
2017-11-23 16:05:30 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2019-04-14 09:33:27 +02:00
|
|
|
%bcond_without python3
|
2013-12-28 05:04:39 +01:00
|
|
|
%bcond_without munin
|
|
|
|
%bcond_without hardened_build
|
2019-04-14 09:33:27 +02:00
|
|
|
%bcond_without dnstap
|
2013-12-28 05:04:39 +01:00
|
|
|
%bcond_without systemd
|
2014-09-05 15:39:08 +02:00
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%define _sharedstatedir /var/lib/
|
|
|
|
%define ldns_version 1.6.16
|
2014-09-05 09:39:37 +02:00
|
|
|
|
|
|
|
%define piddir /run
|
2008-05-21 22:21:42 +02:00
|
|
|
|
2008-05-21 04:53:41 +02:00
|
|
|
Name: unbound
|
2022-06-18 18:18:29 +02:00
|
|
|
Version: 1.16.0
|
2014-09-05 15:39:08 +02:00
|
|
|
Release: 0
|
2013-12-28 05:04:39 +01:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: ldns-devel >= %{ldns_version}
|
2014-11-10 18:41:24 +01:00
|
|
|
BuildRequires: libevent-devel
|
2013-12-28 05:04:39 +01:00
|
|
|
BuildRequires: libexpat-devel
|
2017-08-09 02:28:43 +02:00
|
|
|
BuildRequires: libsodium-devel
|
2014-11-10 18:41:24 +01:00
|
|
|
BuildRequires: openssl-devel
|
2022-05-04 15:05:55 +02:00
|
|
|
BuildRequires: sysuser-tools
|
2016-02-06 13:52:28 +01:00
|
|
|
%if %{with dnstap}
|
2016-02-21 12:32:03 +01:00
|
|
|
BuildRequires: libfstrm-devel
|
2017-08-09 02:28:43 +02:00
|
|
|
BuildRequires: libprotobuf-c-devel >= 1.0.0
|
|
|
|
BuildRequires: protobuf-c >= 1.0.0
|
2016-02-21 12:32:03 +01:00
|
|
|
%endif
|
2019-04-14 09:33:27 +02:00
|
|
|
%if %{with python3}
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-devel
|
2016-02-21 12:32:03 +01:00
|
|
|
BuildRequires: swig
|
2016-02-06 13:52:28 +01:00
|
|
|
%endif
|
2021-06-02 11:51:39 +02:00
|
|
|
# needed for dns over https
|
|
|
|
BuildRequires: pkgconfig(libnghttp2)
|
2013-12-28 05:04:39 +01:00
|
|
|
Requires: ldns >= %{ldns_version}
|
|
|
|
# until we figured something else out for the unbound-anchor part in the systemd unit file
|
|
|
|
Requires: sudo
|
|
|
|
%if %{with systemd}
|
2019-12-19 21:13:29 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2013-12-28 05:04:39 +01:00
|
|
|
%{?systemd_requires}
|
|
|
|
%endif
|
2020-05-19 13:07:03 +02:00
|
|
|
URL: https://www.unbound.net/
|
2016-06-16 14:56:32 +02:00
|
|
|
Source: https://www.unbound.net/downloads/unbound-%{version}.tar.gz
|
2013-12-28 05:04:39 +01:00
|
|
|
Source1: unbound.service
|
|
|
|
Source2: unbound.conf
|
|
|
|
Source3: unbound.munin
|
|
|
|
Source4: unbound_munin_
|
|
|
|
Source5: root.key
|
|
|
|
Source6: dlv.isc.org.key
|
|
|
|
Source7: unbound-keygen.service
|
|
|
|
Source8: tmpfiles-unbound.conf
|
|
|
|
Source9: example.com.key
|
|
|
|
Source10: example.com.conf
|
|
|
|
Source11: block-example.com.conf
|
|
|
|
# From http://data.iana.org/root-anchors/icannbundle.pem
|
|
|
|
Source12: icannbundle.pem
|
|
|
|
Source13: root.anchor
|
|
|
|
Source14: unbound.sysconfig
|
2018-12-21 07:38:50 +01:00
|
|
|
Source15: unbound-anchor.timer
|
2013-12-28 05:04:39 +01:00
|
|
|
Source16: unbound-munin.README
|
2018-12-21 07:38:50 +01:00
|
|
|
Source18: unbound-anchor.service
|
2022-05-04 11:41:24 +02:00
|
|
|
Source19: unbound.sysusers
|
2013-12-28 05:04:39 +01:00
|
|
|
|
|
|
|
Summary: Validating, recursive, and caching DNS(SEC) resolver
|
2014-11-10 18:41:24 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Networking/DNS/Servers
|
|
|
|
|
2008-05-21 04:53:41 +02:00
|
|
|
%description
|
2013-12-28 05:04:39 +01:00
|
|
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
2008-05-21 22:21:42 +02:00
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
The C implementation of Unbound is developed and maintained by NLnet
|
|
|
|
Labs. It is based on ideas and algorithms taken from a java prototype
|
|
|
|
developed by Verisign labs, Nominet, Kirei and ep.net.
|
|
|
|
|
|
|
|
Unbound is designed as a set of modular components, so that also
|
|
|
|
DNSSEC (secure DNS) validation and stub-resolvers (that do not run
|
|
|
|
as a server, but are linked into an application) are easily possible.
|
|
|
|
|
2019-07-29 10:59:12 +02:00
|
|
|
%define libname libunbound8
|
2021-06-01 13:19:28 +02:00
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%package -n %{libname}
|
|
|
|
Requires: %{name}-anchor >= %{version}
|
2008-05-21 22:21:42 +02:00
|
|
|
#
|
|
|
|
Summary: Shared library from unbound
|
2014-11-10 18:41:24 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%description -n %{libname}
|
2013-12-28 14:31:04 +01:00
|
|
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
|
|
|
|
|
|
|
This package holds the shared library from unbound.
|
2008-05-21 22:21:42 +02:00
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%if %{with_munin}
|
|
|
|
%package munin
|
|
|
|
Summary: Plugin for the munin / munin-node monitoring package
|
2017-08-09 02:28:43 +02:00
|
|
|
Group: System/Daemons
|
2013-12-28 05:04:39 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: bc
|
2014-11-10 18:41:24 +01:00
|
|
|
Requires: munin-node
|
2013-12-28 05:04:39 +01:00
|
|
|
BuildArch: noarch
|
2014-11-10 18:41:24 +01:00
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%description munin
|
2013-12-28 14:31:04 +01:00
|
|
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
|
|
|
|
|
|
|
This package holds the plugin for the munin / munin-node monitoring package
|
2013-12-28 05:04:39 +01:00
|
|
|
%endif
|
|
|
|
|
2016-02-21 12:32:03 +01:00
|
|
|
%package devel
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Requires: ldns-devel >= %{ldns_version}
|
|
|
|
Requires: openssl-devel
|
|
|
|
Provides: libunbound-devel = %{version}-%{release}
|
|
|
|
#
|
|
|
|
Summary: Development files for libunbound
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
|
|
|
|
|
|
|
This package holds the development files to work with libunbound.
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%package anchor
|
|
|
|
#
|
|
|
|
Summary: Unbound Anchor cert management tools
|
2014-11-10 18:41:24 +01:00
|
|
|
Group: Productivity/Networking/DNS/Servers
|
2022-05-04 11:41:24 +02:00
|
|
|
%sysusers_requires
|
2014-11-10 18:41:24 +01:00
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%description anchor
|
2013-12-28 14:31:04 +01:00
|
|
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
|
|
|
|
|
|
|
This package contains the tools to manage the anchor certs.
|
2013-12-28 05:04:39 +01:00
|
|
|
|
2019-04-14 09:33:27 +02:00
|
|
|
%if %{with python3}
|
|
|
|
%package -n python3-unbound
|
2013-12-28 05:04:39 +01:00
|
|
|
Summary: Python modules and extensions for unbound
|
|
|
|
Group: Applications/System
|
|
|
|
Requires: %{libname} = %{version}
|
2019-04-14 09:33:27 +02:00
|
|
|
Obsoletes: unbound-python
|
|
|
|
Provides: unbound-python
|
2014-11-10 18:41:24 +01:00
|
|
|
|
2019-04-14 09:33:27 +02:00
|
|
|
%description -n python3-unbound
|
|
|
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
|
|
|
|
|
|
|
This package holds the Python modules and extensions for unbound.
|
|
|
|
%endif
|
|
|
|
|
2008-05-21 04:53:41 +02:00
|
|
|
%prep
|
2016-02-21 12:32:03 +01:00
|
|
|
%setup
|
2008-05-21 04:53:41 +02:00
|
|
|
|
|
|
|
%build
|
2022-05-04 11:41:24 +02:00
|
|
|
%sysusers_generate_pre %{SOURCE19} anchor unbound.conf
|
2015-10-06 16:29:03 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
2019-04-14 09:33:27 +02:00
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
pushd ../p2
|
2013-12-28 05:04:39 +01:00
|
|
|
%configure \
|
|
|
|
--disable-rpath \
|
|
|
|
--with-libevent \
|
|
|
|
--with-pthreads \
|
|
|
|
--disable-static \
|
|
|
|
--with-ldns=%{_prefix} \
|
2021-06-02 11:51:39 +02:00
|
|
|
--with-libnghttp2 \
|
2014-09-05 15:39:08 +02:00
|
|
|
--enable-sha2 \
|
|
|
|
--enable-gost \
|
|
|
|
--enable-ecdsa \
|
2015-09-04 15:37:57 +02:00
|
|
|
--enable-event-api \
|
2015-10-06 16:29:03 +02:00
|
|
|
--enable-pie \
|
|
|
|
--enable-relro-now \
|
2017-04-29 09:33:32 +02:00
|
|
|
--enable-dnscrypt \
|
2015-09-04 15:37:57 +02:00
|
|
|
%if %{with dnstap}
|
|
|
|
--enable-dnstap \
|
|
|
|
%endif
|
2016-02-21 12:32:03 +01:00
|
|
|
--with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \
|
2021-10-16 19:07:16 +02:00
|
|
|
--with-pidfile=%{piddir}/%{name}/%{name}.pid \
|
2019-04-14 09:33:27 +02:00
|
|
|
--with-pythonmodule --with-pyunbound PYTHON=%{__python2}\
|
2021-06-01 13:19:28 +02:00
|
|
|
--with-rootkey-file=%{_sharedstatedir}/unbound/root.key \
|
|
|
|
--disable-explicit-port-randomisation
|
2019-04-14 09:33:27 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags} all streamtcp
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
--disable-rpath \
|
|
|
|
--with-libevent \
|
|
|
|
--with-pthreads \
|
|
|
|
--disable-static \
|
|
|
|
--with-ldns=%{_prefix} \
|
2021-06-02 11:51:39 +02:00
|
|
|
--with-libnghttp2 \
|
2019-04-14 09:33:27 +02:00
|
|
|
--enable-sha2 \
|
|
|
|
--enable-gost \
|
|
|
|
--enable-ecdsa \
|
|
|
|
--enable-event-api \
|
|
|
|
--enable-pie \
|
|
|
|
--enable-relro-now \
|
|
|
|
--enable-dnscrypt \
|
|
|
|
%if %{with dnstap}
|
|
|
|
--enable-dnstap \
|
2017-12-04 05:12:23 +01:00
|
|
|
%endif
|
2019-04-14 09:33:27 +02:00
|
|
|
--with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \
|
2021-10-16 19:07:16 +02:00
|
|
|
--with-pidfile=%{piddir}/%{name}/%{name}.pid \
|
2019-04-14 09:33:27 +02:00
|
|
|
%if %{with python3}
|
|
|
|
--with-pythonmodule --with-pyunbound PYTHON=%{__python3}\
|
2013-12-28 05:04:39 +01:00
|
|
|
%endif
|
2021-06-01 13:19:28 +02:00
|
|
|
--with-rootkey-file=%{_sharedstatedir}/unbound/root.key \
|
|
|
|
--disable-explicit-port-randomisation
|
2013-12-28 05:04:39 +01:00
|
|
|
|
2018-12-29 14:03:29 +01:00
|
|
|
make %{?_smp_mflags} all streamtcp
|
2008-05-21 04:53:41 +02:00
|
|
|
|
|
|
|
%install
|
2019-04-14 09:33:27 +02:00
|
|
|
%make_install
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
install -d -m 0750 %{buildroot}/var/lib/unbound
|
|
|
|
install -d 0755 %{buildroot}%{_unitdir}
|
|
|
|
install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/unbound.service
|
|
|
|
install -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/unbound-keygen.service
|
|
|
|
install -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/unbound
|
|
|
|
install -p -m 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/unbound
|
2017-11-23 16:05:30 +01:00
|
|
|
install -D -p -m 0644 %{SOURCE14} %{buildroot}%{_fillupdir}/sysconfig.%{name}
|
2013-12-28 14:31:04 +01:00
|
|
|
ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcunbound
|
|
|
|
ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcunbound-keygen
|
2013-12-28 05:04:39 +01:00
|
|
|
|
2018-12-21 07:38:50 +01:00
|
|
|
install -p -m 0644 %{SOURCE15} %{buildroot}%{_unitdir}/unbound-anchor.timer
|
|
|
|
install -p -m 0644 %{SOURCE18} %{buildroot}%{_unitdir}/unbound-anchor.service
|
2013-12-28 05:04:39 +01:00
|
|
|
install -p -m 0644 %{SOURCE16} .
|
2014-09-05 09:39:37 +02:00
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%if %{with munin}
|
|
|
|
# Install munin plugin and its softlinks
|
|
|
|
install -d 0755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
|
|
|
|
install -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/unbound
|
|
|
|
install -d 0755 %{buildroot}%{_datadir}/munin/plugins/
|
|
|
|
install -p -m 0755 %{SOURCE4} %{buildroot}%{_datadir}/munin/plugins/unbound
|
|
|
|
for plugin in unbound_munin_hits unbound_munin_queue unbound_munin_memory unbound_munin_by_type unbound_munin_by_class unbound_munin_by_opcode unbound_munin_by_rcode unbound_munin_by_flags unbound_munin_histogram; do
|
|
|
|
ln -s unbound %{buildroot}%{_datadir}/munin/plugins/$plugin
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# install streamtcp used for monitoring / debugging unbound's port 80/443 modes
|
|
|
|
install -m 0755 streamtcp %{buildroot}%{_sbindir}/unbound-streamtcp
|
|
|
|
# install streamtcp man page
|
|
|
|
install -m 0644 testcode/streamtcp.1 %{buildroot}/%{_mandir}/man1/unbound-streamtcp.1
|
|
|
|
|
|
|
|
# Install tmpfiles.d config
|
|
|
|
install -d -m 0755 %{buildroot}%{_tmpfilesdir}/ \
|
|
|
|
%{buildroot}%{_sharedstatedir}/unbound
|
|
|
|
install -m 0644 %{SOURCE8} %{buildroot}%{_tmpfilesdir}/unbound.conf
|
|
|
|
|
|
|
|
# install root and DLV key - we keep a copy of the root key in old location,
|
|
|
|
# in case user has changed the configuration and we wouldn't update it there
|
|
|
|
install -m 0644 %{SOURCE5} %{SOURCE6} %{buildroot}%{_sysconfdir}/unbound/
|
|
|
|
install -m 0644 %{SOURCE13} %{buildroot}%{_sharedstatedir}/unbound/root.key
|
|
|
|
|
|
|
|
# create softlink for all functions of libunbound man pages
|
|
|
|
for mpage in ub_ctx ub_result ub_ctx_create ub_ctx_delete ub_ctx_set_option ub_ctx_get_option ub_ctx_config ub_ctx_set_fwd ub_ctx_resolvconf ub_ctx_hosts ub_ctx_add_ta ub_ctx_add_ta_file ub_ctx_trustedkeys ub_ctx_debugout ub_ctx_debuglevel ub_ctx_async ub_poll ub_wait ub_fd ub_process ub_resolve ub_resolve_async ub_cancel ub_resolve_free ub_strerror ub_ctx_print_local_zones ub_ctx_zone_add ub_ctx_zone_remove ub_ctx_data_add ub_ctx_data_remove;
|
|
|
|
do
|
|
|
|
echo ".so man3/libunbound.3" > %{buildroot}%{_mandir}/man3/${mpage}.3 ;
|
|
|
|
done
|
|
|
|
|
2014-09-05 09:39:37 +02:00
|
|
|
mkdir -p %{buildroot}%{piddir}/%{name}
|
2013-12-28 05:04:39 +01:00
|
|
|
|
|
|
|
# Install directories for easier config file drop in
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/unbound/{keys.d,conf.d,local.d}
|
|
|
|
install -m 0640 -p %{SOURCE9} %{buildroot}%{_sysconfdir}/unbound/keys.d/
|
|
|
|
install -m 0640 -p %{SOURCE10} %{buildroot}%{_sysconfdir}/unbound/conf.d/
|
|
|
|
install -m 0640 -p %{SOURCE11} %{buildroot}%{_sysconfdir}/unbound/local.d/
|
|
|
|
|
|
|
|
# Link unbound-control-setup.8 manpage to unbound-control.8
|
|
|
|
echo ".so man8/unbound-control.8" > %{buildroot}/%{_mandir}/man8/unbound-control-setup.8
|
|
|
|
|
2022-05-04 11:41:24 +02:00
|
|
|
# sysusers.d
|
|
|
|
install -Dm0644 %{SOURCE19} %{buildroot}%{_sysusersdir}/unbound.conf
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%check
|
2014-12-08 17:31:19 +01:00
|
|
|
# it currently fails in the ldns unit test. which is weird as both come from the same project
|
|
|
|
make check ||:
|
2008-05-21 04:53:41 +02:00
|
|
|
|
2022-05-04 11:41:24 +02:00
|
|
|
%pre anchor -f anchor.pre
|
2018-12-21 07:38:50 +01:00
|
|
|
%service_add_pre unbound-anchor.service unbound-anchor.timer
|
2013-12-28 05:04:39 +01:00
|
|
|
|
|
|
|
%if %{with systemd}
|
2018-12-29 14:03:29 +01:00
|
|
|
%pre
|
2013-12-28 05:04:39 +01:00
|
|
|
%service_add_pre unbound-keygen.service unbound.service
|
|
|
|
%endif
|
|
|
|
|
2018-12-21 07:38:50 +01:00
|
|
|
%if %{with systemd}
|
2018-12-29 14:03:29 +01:00
|
|
|
%post anchor
|
2018-12-21 07:38:50 +01:00
|
|
|
%service_add_post unbound-anchor.service unbound-anchor.timer
|
|
|
|
%endif
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%post
|
|
|
|
%fillup_only %{name}
|
|
|
|
%if %{with systemd}
|
2015-10-12 17:14:45 +02:00
|
|
|
systemd-tmpfiles --create %{_tmpfilesdir}/unbound.conf || :
|
2013-12-28 05:04:39 +01:00
|
|
|
%service_add_post unbound-keygen.service unbound.service
|
|
|
|
%endif
|
|
|
|
|
2018-12-21 07:38:50 +01:00
|
|
|
%if %{with systemd}
|
2018-12-29 14:03:29 +01:00
|
|
|
%preun anchor
|
2018-12-21 07:38:50 +01:00
|
|
|
%service_del_preun unbound-anchor.service unbound-anchor.timer
|
|
|
|
%endif
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%preun
|
|
|
|
%if %{with systemd}
|
|
|
|
%service_del_preun unbound-keygen.service unbound.service
|
|
|
|
%else
|
|
|
|
%stop_on_removal %{name}
|
|
|
|
%endif
|
2008-05-21 22:21:42 +02:00
|
|
|
|
2018-12-21 07:38:50 +01:00
|
|
|
%postun anchor
|
|
|
|
%if %{with systemd}
|
|
|
|
%service_del_postun unbound-anchor.service unbound-anchor.timer
|
|
|
|
%endif
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%postun
|
|
|
|
%if %{with systemd}
|
|
|
|
%service_del_postun unbound-keygen.service unbound.service
|
|
|
|
%else
|
|
|
|
%restart_on_update %{name}
|
|
|
|
%{insserv_cleanup}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2008-05-21 22:21:42 +02:00
|
|
|
|
2008-05-21 04:53:41 +02:00
|
|
|
%files
|
2022-05-04 15:05:55 +02:00
|
|
|
%license doc/LICENSE
|
|
|
|
%doc doc/README doc/CREDITS doc/FEATURES
|
2014-09-05 09:39:37 +02:00
|
|
|
%attr(0755,unbound,unbound) %ghost %dir %{piddir}/%{name}
|
2013-12-28 05:04:39 +01:00
|
|
|
%attr(0640,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/unbound.conf
|
|
|
|
%dir %attr(-,root,unbound) %{_sysconfdir}/%{name}/keys.d
|
|
|
|
%attr(0660,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/keys.d/*.key
|
|
|
|
%dir %attr(-,root,unbound) %{_sysconfdir}/%{name}/conf.d
|
|
|
|
%attr(0660,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/*.conf
|
|
|
|
%dir %attr(-,root,unbound) %{_sysconfdir}/%{name}/local.d
|
|
|
|
%attr(0660,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/local.d/*.conf
|
2008-05-21 22:21:42 +02:00
|
|
|
%{_sbindir}/unbound
|
|
|
|
%{_sbindir}/unbound-checkconf
|
|
|
|
%{_sbindir}/unbound-host
|
2013-12-28 05:04:39 +01:00
|
|
|
%{_sbindir}/unbound-control
|
|
|
|
%{_sbindir}/unbound-control-setup
|
|
|
|
%{_sbindir}/unbound-streamtcp
|
2008-05-21 22:21:42 +02:00
|
|
|
%{_mandir}/man1/unbound-host.1*
|
|
|
|
%{_mandir}/man5/unbound.conf.5*
|
|
|
|
%{_mandir}/man8/unbound.8*
|
2013-12-28 05:04:39 +01:00
|
|
|
%{_mandir}/man8/unbound-checkconf.8*
|
|
|
|
%{_mandir}/man8/unbound-control-setup.8*
|
|
|
|
%{_mandir}/man8/unbound-control.8*
|
|
|
|
%{_mandir}/man1/unbound-streamtcp.1*
|
2017-11-23 16:05:30 +01:00
|
|
|
%{_fillupdir}/sysconfig.%{name}
|
2013-12-28 05:04:39 +01:00
|
|
|
%if %{with systemd}
|
|
|
|
%{_tmpfilesdir}/unbound.conf
|
|
|
|
%{_unitdir}/unbound-keygen.service
|
|
|
|
%{_unitdir}/unbound.service
|
|
|
|
%endif
|
|
|
|
%{_sbindir}/rcunbound
|
|
|
|
%{_sbindir}/rcunbound-keygen
|
|
|
|
|
2016-02-21 12:32:03 +01:00
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libunbound.so.*
|
|
|
|
|
2019-04-14 09:33:27 +02:00
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-unbound
|
2017-12-04 05:12:23 +01:00
|
|
|
%{python3_sitearch}/*
|
2013-12-28 05:04:39 +01:00
|
|
|
%doc libunbound/python/examples/*
|
|
|
|
%doc pythonmod/examples/*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with munin}
|
|
|
|
%files munin
|
|
|
|
%dir %{_sysconfdir}/munin/
|
|
|
|
%dir %{_sysconfdir}/munin/plugin-conf.d/
|
|
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/unbound
|
|
|
|
%dir %{_datadir}/munin/
|
|
|
|
%dir %{_datadir}/munin/plugins/
|
|
|
|
%{_datadir}/munin/plugins/unbound*
|
|
|
|
%doc unbound-munin.README
|
|
|
|
%endif
|
2008-05-21 22:21:42 +02:00
|
|
|
|
2016-02-21 12:32:03 +01:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/unbound.h
|
|
|
|
%{_includedir}/unbound-event.h
|
|
|
|
%{_libdir}/libunbound.so
|
2019-04-14 09:33:27 +02:00
|
|
|
%exclude %{_libdir}/libunbound.la
|
2018-04-08 02:20:36 +02:00
|
|
|
%{_libdir}/pkgconfig/libunbound.pc
|
2016-02-21 12:32:03 +01:00
|
|
|
%{_mandir}/man3/libunbound.3*
|
|
|
|
%{_mandir}/man3/ub_*.3*
|
|
|
|
|
2013-12-28 05:04:39 +01:00
|
|
|
%files anchor
|
|
|
|
%dir %{_sysconfdir}/%{name}/
|
|
|
|
%{_sbindir}/unbound-anchor
|
|
|
|
%config %{_sysconfdir}/%{name}/icannbundle.pem
|
2018-12-21 07:38:50 +01:00
|
|
|
%{_unitdir}/unbound-anchor.timer
|
|
|
|
%{_unitdir}/unbound-anchor.service
|
2022-05-04 11:41:24 +02:00
|
|
|
%{_sysusersdir}/unbound.conf
|
2013-12-28 05:04:39 +01:00
|
|
|
%dir %attr(-,unbound,unbound) %{_sharedstatedir}/%{name}
|
2018-05-30 16:17:02 +02:00
|
|
|
%attr(0644,unbound,unbound) %config(noreplace) %{_sharedstatedir}/%{name}/root.key
|
|
|
|
%attr(0644,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/dlv.isc.org.key
|
2013-12-28 05:04:39 +01:00
|
|
|
# just left for backwards compat with user changed unbound.conf files - format is different!
|
2018-05-30 16:17:02 +02:00
|
|
|
%attr(0644,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/root.key
|
2013-12-28 05:04:39 +01:00
|
|
|
%{_mandir}/man8/unbound-anchor.8*
|
|
|
|
%doc doc/README doc/LICENSE
|
2008-05-21 04:53:41 +02:00
|
|
|
|
|
|
|
%changelog
|