forked from pool/pdns-recursor
- update to 5.2.5 (CVE-2025-30192 boo#246841) https://doc.powerdns.com/recursor/security-advisories/powerdns-advisory-2025-04.html https://doc.powerdns.com/recursor/changelog/5.1.html#change-5.1.4 https://doc.powerdns.com/recursor/changelog/5.1.html#change-5.1.6 https://doc.powerdns.com/recursor/changelog/5.1.html#change-5.1.7 https://doc.powerdns.com/recursor/changelog/5.2.html#change-5.2.0 https://doc.powerdns.com/recursor/changelog/5.2.html#change-5.2.1 https://doc.powerdns.com/recursor/changelog/5.2.html#change-5.2.2 https://doc.powerdns.com/recursor/changelog/5.2.html#change-5.2.3 https://doc.powerdns.com/recursor/changelog/5.2.html#change-5.2.4 https://doc.powerdns.com/recursor/changelog/5.2.html#change-5.2.5 - reenable snmp support ( we had the BR but not the configure flag) - add missing BR for fstrm and libcurl - enable NOD support (new BR libboost_filesystem-devel) - enable luajit where possible OBS-URL: https://build.opensuse.org/request/show/1299303 OBS-URL: https://build.opensuse.org/package/show/server:dns/pdns-recursor?expand=0&rev=219
197 lines
5.0 KiB
RPMSpec
197 lines
5.0 KiB
RPMSpec
#
|
|
# spec file for package pdns-recursor
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without systemd
|
|
|
|
%if 0%{?fedora_version} >= 24 || 0%{?fc24}%{?fc25}
|
|
%bcond_with systemd_separetedlibs
|
|
%else
|
|
%bcond_without systemd_separetedlibs
|
|
%endif
|
|
|
|
%ifarch ppc64le
|
|
%bcond_with pdns_luajit
|
|
%else
|
|
%if 0%{?sle_version} >= 150400 || 0%{?suse_version} >= 1599
|
|
%bcond_without pdns_luajit
|
|
%else
|
|
%bcond_with pdns_luajit
|
|
%endif
|
|
%endif
|
|
|
|
Name: pdns-recursor
|
|
Version: 5.2.5
|
|
Release: 0
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
|
|
%ifarch %ix86 %arm
|
|
ExclusiveArch: no-32bit-build
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1500
|
|
BuildRequires: gcc9-c++
|
|
%define compiler_ver -9
|
|
%else
|
|
BuildRequires: gcc-c++
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1325
|
|
BuildRequires: libboost_context-devel
|
|
BuildRequires: libboost_filesystem-devel
|
|
BuildRequires: libboost_system-devel
|
|
BuildRequires: libboost_thread-devel
|
|
%else
|
|
BuildRequires: boost-devel >= 1.66
|
|
%endif
|
|
|
|
BuildRequires: libsodium-devel
|
|
%if %{with pdns_luajit}
|
|
BuildRequires: pkgconfig(luajit)
|
|
%else
|
|
BuildRequires: pkgconfig(lua)
|
|
%endif
|
|
BuildRequires: net-snmp-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3
|
|
BuildRequires: pkgconfig(libfstrm)
|
|
%if 0%{?suse_version}
|
|
PreReq: shadow
|
|
%else
|
|
PreReq: shadow-utils
|
|
%endif
|
|
BuildRequires: pkgconfig(libcurl)
|
|
BuildRequires: pkgconfig(systemd)
|
|
%if %{with systemd_separetedlibs}
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
%endif
|
|
BuildRequires: cargo-packaging
|
|
%{?systemd_ordering}
|
|
PreReq: pdns-common
|
|
|
|
Provides: bundled(json11)
|
|
Provides: bundled(luawrapper)
|
|
Provides: bundled(probds)
|
|
Provides: bundled(protozero) = 1.70
|
|
Provides: bundled(yahttp)
|
|
|
|
#
|
|
URL: https://www.powerdns.com/
|
|
Source: https://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
|
|
Source10: https://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2.sig
|
|
# on https://docs.powerdns.com/recursor/security.html but 404 right now, emailed them
|
|
Source11: %{name}.keyring
|
|
Source1: pdns-recursor.init
|
|
Source2: recursor.conf
|
|
Source3: vendor.tar.zst
|
|
# for easier patching
|
|
Source99: series
|
|
Patch1: boost_context.patch
|
|
Patch2: cargo_build_fix.patch
|
|
#
|
|
Summary: Modern, advanced and high performance recursing/non authoritative nameserver
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/DNS/Servers
|
|
|
|
%description
|
|
PowerDNS Recursor is a non authoritative/recursing DNS server. Use this
|
|
package if you need a dns cache for your network.
|
|
|
|
|
|
Authors:
|
|
--------
|
|
http://www.powerdns.com
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
pushd settings/rust
|
|
tar --zstd -xf %{SOURCE3}
|
|
popd
|
|
|
|
%build
|
|
export CXX=g++%{?compiler_ver}
|
|
autoreconf -fi
|
|
ln effective_tld_names.dat effective_tld_list.dat
|
|
%configure \
|
|
--enable-reproducible \
|
|
--disable-silent-rules \
|
|
--bindir=%{_sbindir} \
|
|
--sysconfdir=%{_sysconfdir}/pdns/ \
|
|
--enable-dns-over-tls \
|
|
--with-lua \
|
|
--enable-nod \
|
|
--with-net-snmp \
|
|
--with-socketdir=%{_rundir} \
|
|
--with-service-user=pdns \
|
|
--with-service-group=pdns
|
|
cd settings; /usr/bin/python3 generate.py
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
|
|
# config
|
|
%{__install} -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/pdns/recursor.conf
|
|
# init systems
|
|
%{__ln_s} -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
# installed by make install
|
|
rm -rvf %{buildroot}%{_sysconfdir}/init.d/%{name}
|
|
|
|
%pre
|
|
%if 0%{?suse_version} && %{with systemd}
|
|
%service_add_pre %{name}.service
|
|
%endif
|
|
|
|
%if 0%{?suse_version} && %{with systemd}
|
|
%post
|
|
%service_add_post %{name}.service
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
%preun
|
|
%if %{with systemd}
|
|
%service_del_preun %{name}.service
|
|
%endif
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
%postun
|
|
%if %{with systemd}
|
|
%service_del_postun %{name}.service
|
|
%endif
|
|
%endif
|
|
|
|
%files
|
|
%config(noreplace) %attr(640,root,pdns) %{_sysconfdir}/pdns/*.conf
|
|
%{_sysconfdir}/pdns/recursor.yml-dist
|
|
%if %{with systemd}
|
|
%{_unitdir}/%{name}.service
|
|
%{_unitdir}/%{name}@.service
|
|
%endif
|
|
%{_sbindir}/rcpdns-recursor
|
|
%{_sbindir}/pdns_recursor
|
|
%{_sbindir}/rec_control
|
|
%{_mandir}/man1/pdns_recursor.1*
|
|
%{_mandir}/man1/rec_control.1*
|
|
%doc README
|
|
%license COPYING
|
|
|
|
%changelog
|