Name: maradns Version: 3.5.0030 Release: 1%{?dist} Summary: Authoritative and recursive DNS server made with security in mind Source0: http://www.maradns.org/download/3.5/%{version}/%{name}-%{version}.tar.xz # http://maradns.samiam.org/download/patches/3rd_party/Thomasz-Torcz-systemd-2013-10-14.patch Patch0: %{name}-0001-add-systemd-unit-files.patch # parts of MaraDNS – the files in coLunacyDNS/lunacy – are under MIT (Lua) license, # but we don't package them License: BSD-2-Clause URL: http://www.maradns.org/ BuildRequires: make BuildRequires: gcc %{?systemd_requires} BuildRequires: systemd Requires(pre): shadow-utils %description MaraDNS is a package that implements the Domain Name Service (DNS), an essential internet service. MaraDNS has the following advantages: * Secure. * Supported. * Easy to use. * Small. * Open Source. %prep %setup -q %autopatch -p1 %build # We don't use %%configure here because this is a homebrew configure not generated by autoconf ./configure --ipv6 --libdir=%{_libdir} # recursive resolver is shipped in versioned directory # first compile Deadwood, otherwise we have no control over make flags pushd deadwood-%{version}/src make %{?_smp_mflags} FLAGS="%{optflags} -lrt" popd make %{?_smp_mflags} FLAGS="%{optflags} -DSELECT_PROBLEM -DAUTHONLY" %install # create /etc/maradns, /etc/mararc and /etc/dwood3rc first install -p -d -m 0755 %{buildroot}%{_sysconfdir}/maradns/logger/ install -p -D -m 0644 doc/en/examples/example_mararc %{buildroot}%{_sysconfdir}/mararc install -p -D -m 0644 deadwood-%{version}/doc/dwood3rc %{buildroot}%{_sysconfdir}/dwood3rc # cache dir install -p -d -m 0755 %{buildroot}/var/cache/deadwood # sbin files install -p -D -m 0755 server/maradns %{buildroot}%{_sbindir}/maradns install -p -D -m 0755 tcp/zoneserver %{buildroot}%{_sbindir}/zoneserver install -p -D -m 0755 deadwood-%{version}/src/Deadwood %{buildroot}%{_sbindir}/Deadwood # bin files install -p -D -m 0755 tcp/getzone %{buildroot}%{_bindir}/getzone install -p -D -m 0755 tcp/fetchzone %{buildroot}%{_bindir}/fetchzone install -p -D -m 0755 tools/askmara %{buildroot}%{_bindir}/askmara # man pages install -p -d -m 0755 %{buildroot}%{_mandir}/man{1,5,8} install -p -D -m 0644 -t %{buildroot}%{_mandir}/man1/ \ doc/en/man/askmara.1 \ doc/en/man/getzone.1 \ doc/en/man/fetchzone.1 install -p -D -m 0644 -t %{buildroot}%{_mandir}/man1/ \ deadwood-%{version}/doc/Deadwood.1 install -p -D -m 0644 -t %{buildroot}%{_mandir}/man5/ \ doc/en/man/csv1.5 \ doc/en/man/csv2.5 \ doc/en/man/csv2_txt.5 \ doc/en/man/mararc.5 install -p -D -m 0644 -t %{buildroot}%{_mandir}/man8/ \ doc/en/man/maradns.8 \ doc/en/man/zoneserver.8 \ # systemd units mkdir -p %{buildroot}%{_unitdir} install -p -D -m 0644 -t %{buildroot}%{_unitdir}/ \ build/maradns.service \ build/maradns-zoneserver.service \ build/maradns-deadwood.service %files %doc doc/en/credits.txt doc/en/faq.txt doc/en/{examples,tutorial,html} %license COPYING %config(noreplace) %{_sysconfdir}/mararc %config(noreplace) %{_sysconfdir}/dwood3rc %attr(-,maradns,maradns) %{_sysconfdir}/maradns/ %attr(-,maradns,maradns) /var/cache/deadwood/ %{_unitdir}/%{name}.service %{_unitdir}/%{name}-zoneserver.service %{_unitdir}/%{name}-deadwood.service %{_bindir}/askmara %{_bindir}/fetchzone %{_bindir}/getzone %{_sbindir}/maradns %{_sbindir}/zoneserver %{_sbindir}/Deadwood %{_mandir}/man1/askmara.1* %{_mandir}/man1/getzone.1* %{_mandir}/man1/fetchzone.1* %{_mandir}/man1/Deadwood.1* %{_mandir}/man5/csv1.5* %{_mandir}/man5/csv2.5* %{_mandir}/man5/csv2_txt.5* %{_mandir}/man5/mararc.5* %{_mandir}/man8/maradns.8* %{_mandir}/man8/zoneserver.8* %pre if [ $1 -eq 1 ]; then getent group maradns >/dev/null || groupadd -r maradns getent passwd maradns >/dev/null || \ useradd -r -g maradns -d /etc/maradns -s /sbin/nologin \ -c "MaraDns chroot user" maradns exit 0 fi %post if [ $1 -eq 1 ]; then # correct UID/GID of maradns user sed --in-place -e "s/^maradns_uid.*/maradns_uid = $(id -u maradns)/" %{_sysconfdir}/mararc sed --in-place -e "s/^maradns_gid.*/maradns_gid = $(id -g maradns)/" %{_sysconfdir}/mararc sed --in-place -e "s/^maradns_uid.*/maradns_uid = $(id -u maradns)/" %{_sysconfdir}/dwood3rc sed --in-place -e "s/^maradns_gid.*/maradns_gid = $(id -g maradns)/" %{_sysconfdir}/dwood3rc # correct cache file directory sed --in-place -e 's@/etc/deadwood@/var/cache/deadwood@' %{_sysconfdir}/dwood3rc fi %systemd_post maradns.service maradns-zoneserver.service maradns-deadwood.service %preun %systemd_preun maradns.service maradns-zoneserver.service maradns-deadwood.service %postun %systemd_postun_with_restart maradns.service maradns-zoneserver.service maradns-deadwood.service %changelog * Sat Nov 26 2022 Tomasz Torcz - 3.5.0030-1 - new version (fixes rhbz#2138939) * Tue Oct 25 2022 Tomasz Torcz - 3.5.0024-1 - new version (fixes rhbz#2135365) * Thu Aug 25 2022 Tomasz Torcz - 3.5.0022-1 - new version (fixes rhbz#2082783) - convert License: to SPDX tag - mitigates medium-impact CVE-2022-30256 * Thu Jul 21 2022 Fedora Release Engineering - 3.5.0020-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 3.5.0020-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 3.5.0020-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 28 2021 Tomasz Torcz - 3.5.0020-1 - remove old trigerun * Sun May 16 2021 Tomasz Torcz - 3.5.0020-1 - new version * Wed Mar 17 2021 Tomasz Torcz - 3.5.0019-1 - new version 3.5.0019 - switch to shipping example config, upstream removed rpm-specific one because of CentOS situation * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 3.5.0012-3 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 3.5.0012-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Aug 13 2020 Tomasz Torcz - 3.5.0012-1 - new version; IPv6 is default for Deadwood now - do not package bundled Lua runtime and tools (would require unbundling Lua first) * Tue Jul 28 2020 Fedora Release Engineering - 3.5.0005-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 05 2020 Tomek Torcz - 3.5.0005-2 - Bump to latest stable version (rhbz#1797903) - remove merged patches * Thu Apr 16 2020 Tomasz Torcz - 3.5.0003-1 - update to latest version * Wed Jan 29 2020 Fedora Release Engineering - 3.4.02-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jan 25 2020 Tomek Torcz - 3.4.02-1 - new version (rhbz#1792037) * Fri Oct 25 2019 Tomek Torcz - 3.4.01-1 - new version (rhbz#1765310) * Thu Jul 25 2019 Fedora Release Engineering - 2.0.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 2.0.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 21 2019 Tomasz Torcz - 2.0.17-1 - update to 2.0.17 (rhbz#1667765) * Fri Jul 13 2018 Fedora Release Engineering - 2.0.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 2.0.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Feb 06 2018 Tomasz Torcz - 2.0.15-1 - update to latest 2.0.15 (rhbz#1542473) * Thu Aug 03 2017 Fedora Release Engineering - 2.0.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.0.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 11 2017 Tomasz Torcz - 2.0.14-1 - Update to 2.0.14 (#1460471) * Fri Feb 10 2017 Fedora Release Engineering - 2.0.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 15 2016 Tomasz Torcz - 2.0.13-3 - apply patch updating IP of h.root-servers.net * Thu Feb 04 2016 Fedora Release Engineering - 2.0.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Sep 26 2015 Tomasz Torcz - 2.0.13-1 - new upstream version * Fri Aug 21 2015 Tomasz Torcz - 2.0.12-1 - new upstream version (DoS fix) * Wed Jun 17 2015 Fedora Release Engineering - 2.0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jan 30 2015 Tomasz Torcz - 2.0.11-1 - new upstream version * Sun Jan 25 2015 Tomasz Torcz - 2.0.10-1 - new upstream version with important security fix - http://samiam.org/blog/2015-01-25.html * Sun Aug 17 2014 Fedora Release Engineering - 2.0.09-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.0.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Feb 13 2014 Tomasz Torcz - 2.0.09-1 - new release, fixing denial-of-service vulnerability ( http://samiam.org/blog/2014-02-12.html ) * Thu Jan 16 2014 Tomasz Torcz - 2.0.08-1 - new upstream release ( http://samiam.org/blog/2014-01-14.html ) * Mon Dec 02 2013 Tomasz Torcz - 2.0.07d-1 - fix against possible blind spoof attack * Sun Oct 13 2013 Tomasz Torcz - 2.0.07c-2 - refresh systemd patch, introduce additional deps on network-online (#1015282) * Sat Sep 21 2013 Tomasz Torcz - 2.0.07c-1 - new upstream version * Sat Aug 03 2013 Fedora Release Engineering - 2.0.07-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 2.0.07-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jan 22 2013 Tomasz Torcz - 2.0.07-1 - new upstream version - use explicit systemd requires, macro is considered bad * Mon Oct 22 2012 Tomasz Torcz - 2.0.06-3 - fix review issues - use name macro in Patch, rename Patch itself - add "-p" to install lines - add --libdir... to configure - use macros for systemd operations * Tue Aug 21 2012 Tomasz Torcz - 2.0.06-2 - provide link to patch sent upstream - review remarks: - removed grouptag - do not use macros for system executables - use more readable version of sed command in post - remove maradns.gpg.key - be more specific in doc line * Mon Jul 16 2012 Tomasz Torcz - 2.0.06-1 - initial package for 2.0 branch