2016-02-24 01:02:56 +00:00
|
|
|
%ifarch %{nodejs_arches}
|
2020-07-31 09:30:39 +00:00
|
|
|
# Fedora 33 does not have uglifyjs
|
|
|
|
%if 0%{?fedora} <= 32
|
2016-02-08 19:32:15 +00:00
|
|
|
%global uglify 1
|
|
|
|
%endif
|
2020-07-31 09:30:39 +00:00
|
|
|
%endif
|
2016-02-08 19:32:15 +00:00
|
|
|
|
2016-02-08 16:45:02 +00:00
|
|
|
Name: dnsdist
|
2020-07-31 09:30:39 +00:00
|
|
|
Version: 1.5.0
|
2021-03-02 15:13:59 +00:00
|
|
|
Release: 8%{?dist}
|
2016-02-08 16:45:02 +00:00
|
|
|
Summary: Highly DNS-, DoS- and abuse-aware loadbalancer
|
|
|
|
License: GPLv2
|
2018-05-31 13:08:32 +00:00
|
|
|
URL: https://dnsdist.org
|
2019-11-21 10:35:32 +00:00
|
|
|
Source0: https://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
|
2016-02-08 16:45:02 +00:00
|
|
|
|
|
|
|
BuildRequires: boost-devel
|
2019-11-04 13:33:05 +00:00
|
|
|
BuildRequires: fstrm-devel
|
2018-02-19 16:33:56 +00:00
|
|
|
BuildRequires: gcc-c++
|
2016-12-30 12:08:18 +00:00
|
|
|
#ppc64 buildroot doesn't have libatomic, so require it
|
|
|
|
#https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/FSMMBCD2C2SPO4D66O35EGUTF7YXEPBA/
|
|
|
|
BuildRequires: libatomic
|
2019-11-04 13:33:05 +00:00
|
|
|
BuildRequires: libcap-devel
|
2016-02-08 16:45:02 +00:00
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: libsodium-devel
|
2019-11-04 13:33:05 +00:00
|
|
|
BuildRequires: lmdb-devel
|
2020-08-05 09:54:35 +00:00
|
|
|
%ifarch %{ix86} x86_64 %{mips} aarch64
|
2016-02-08 16:45:02 +00:00
|
|
|
BuildRequires: luajit-devel
|
2016-04-15 14:32:08 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: lua-devel
|
2016-02-08 18:27:45 +00:00
|
|
|
%endif
|
2018-05-31 13:08:32 +00:00
|
|
|
BuildRequires: openssl-devel
|
2016-04-15 14:32:08 +00:00
|
|
|
BuildRequires: protobuf-devel
|
|
|
|
BuildRequires: re2-devel
|
2016-02-08 16:45:02 +00:00
|
|
|
BuildRequires: readline-devel
|
2016-04-15 14:32:08 +00:00
|
|
|
BuildRequires: systemd-devel
|
2016-02-08 16:45:02 +00:00
|
|
|
BuildRequires: systemd-units
|
2016-02-08 19:32:15 +00:00
|
|
|
%if 0%{?uglify}
|
2016-02-08 16:45:02 +00:00
|
|
|
BuildRequires: uglify-js
|
2016-02-08 19:32:15 +00:00
|
|
|
%endif
|
2020-12-19 06:11:30 +00:00
|
|
|
BuildRequires: make
|
2016-02-08 16:45:02 +00:00
|
|
|
Requires(post): systemd
|
2016-04-15 14:32:08 +00:00
|
|
|
Requires(preun): shadow-utils
|
2016-02-08 16:45:02 +00:00
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
%description
|
|
|
|
dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. Its goal in life
|
|
|
|
is to route traffic to the best server, delivering top performance to
|
|
|
|
legitimate users while shunting or blocking abusive traffic.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-03-03 12:51:40 +00:00
|
|
|
%autosetup -p1
|
2016-02-08 16:45:02 +00:00
|
|
|
|
2016-04-15 14:32:08 +00:00
|
|
|
# run as dnsdist user
|
|
|
|
sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.in
|
|
|
|
|
2016-02-08 16:45:02 +00:00
|
|
|
%build
|
|
|
|
%configure \
|
2018-02-19 16:33:56 +00:00
|
|
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
|
|
|
--disable-static \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--enable-dnscrypt \
|
2018-05-31 13:08:32 +00:00
|
|
|
--enable-dns-over-tls \
|
2019-11-04 13:33:05 +00:00
|
|
|
--enable-unit-tests \
|
|
|
|
--with-re2
|
|
|
|
|
2016-02-08 16:45:02 +00:00
|
|
|
rm html/js/*
|
2016-02-08 19:32:15 +00:00
|
|
|
%if 0%{?uglify}
|
2016-02-08 16:45:02 +00:00
|
|
|
make min_js
|
2016-02-08 19:32:15 +00:00
|
|
|
%else
|
2016-02-08 19:39:26 +00:00
|
|
|
cp src_js/*.js html/js
|
2016-02-08 19:32:15 +00:00
|
|
|
%endif
|
|
|
|
|
2016-02-08 16:45:02 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
mv dnsdistconf.lua dnsdist.conf.sample
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
# install systemd unit file
|
2016-04-15 16:41:51 +00:00
|
|
|
install -D -p -m 644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
2016-02-24 01:02:56 +00:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/%{name}/
|
2016-02-08 16:45:02 +00:00
|
|
|
|
2016-04-15 14:32:08 +00:00
|
|
|
%pre
|
|
|
|
getent group dnsdist >/dev/null || groupadd -r dnsdist
|
|
|
|
getent passwd dnsdist >/dev/null || \
|
|
|
|
useradd -r -g dnsdist -d / -s /sbin/nologin \
|
|
|
|
-c "dnsdist user" dnsdist
|
|
|
|
exit 0
|
2016-02-08 16:45:02 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post %{name}.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun %{name}.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart %{name}.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc dnsdist.conf.sample
|
|
|
|
%doc README.md
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%{_unitdir}/%{name}.service
|
2018-05-31 13:08:32 +00:00
|
|
|
%{_unitdir}/%{name}@.service
|
2016-02-08 16:45:02 +00:00
|
|
|
%dir %{_sysconfdir}/%{name}/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-03-02 15:13:59 +00:00
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.0-8
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
2021-01-26 03:34:43 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-14 07:47:32 +00:00
|
|
|
* Thu Jan 14 08:47:30 CET 2021 Adrian Reber <adrian@lisas.de> - 1.5.0-6
|
|
|
|
- Rebuilt for protobuf 3.14
|
|
|
|
|
2020-09-23 16:05:26 +00:00
|
|
|
* Wed Sep 23 2020 Adrian Reber <adrian@lisas.de> - 1.5.0-5
|
|
|
|
- Rebuilt for protobuf 3.13
|
|
|
|
|
2020-08-05 09:54:35 +00:00
|
|
|
* Wed Aug 05 2020 Sander Hoentjen <sander@hoentjen.eu> - 1.5.0-4
|
|
|
|
- Fix building
|
|
|
|
|
2020-08-05 09:28:17 +00:00
|
|
|
* Wed Aug 05 2020 Sander Hoentjen <sander@hoentjen.eu> - 1.5.0-3
|
|
|
|
- Don't build on armv7hl, dnsdist fails to compile there
|
|
|
|
|
2020-08-01 00:39:05 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-31 09:30:39 +00:00
|
|
|
* Fri Jul 31 2020 ander Hoentjen <sander@hoentjen.eu> - 1.5.0-1
|
|
|
|
- Update to 1.5.0
|
|
|
|
|
2020-07-27 15:33:30 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-20 16:52:39 +00:00
|
|
|
* Sun Jun 14 2020 Adrian Reber <adrian@lisas.de> - 1.4.0-5
|
|
|
|
- Rebuilt for protobuf 3.12
|
|
|
|
|
2020-03-03 12:51:40 +00:00
|
|
|
* Tue Mar 03 2020 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.4.0-4
|
|
|
|
- Fix build with GCC 10 (#1799286)
|
|
|
|
|
2020-01-28 16:02:52 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-19 03:25:42 +00:00
|
|
|
* Thu Dec 19 2019 Orion Poplawski <orion@nwra.com> - 1.4.0-2
|
|
|
|
- Rebuild for protobuf 3.11
|
|
|
|
|
2019-11-21 10:35:32 +00:00
|
|
|
* Thu Nov 21 2019 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.4.0-1
|
|
|
|
- Upstream released new stable version
|
|
|
|
|
2019-11-04 13:33:05 +00:00
|
|
|
* Mon Nov 04 2019 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.4.0-0.1
|
|
|
|
- Upstream released new version
|
|
|
|
- Enable re2
|
|
|
|
- Link with LMDB
|
|
|
|
- Enable dnstap
|
|
|
|
|
2019-07-24 22:11:13 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-01-31 17:23:40 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-21 16:16:16 +00:00
|
|
|
* Wed Nov 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.3-2
|
|
|
|
- Rebuild for protobuf 3.6
|
|
|
|
|
2018-11-18 15:40:41 +00:00
|
|
|
* Sun Nov 18 2018 Sander Hoentjen <sander@hoentjen.eu> - 1.3.3-1
|
|
|
|
- Update to 1.3.3
|
|
|
|
- Fixes CVE-2018-14663
|
|
|
|
|
2018-07-12 23:00:04 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-06 09:02:43 +00:00
|
|
|
* Wed Jun 06 2018 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.3.0-2
|
|
|
|
- Fix sigabrt on TCP query (https://github.com/PowerDNS/pdns/issues/6712)
|
|
|
|
|
2018-05-31 13:08:32 +00:00
|
|
|
* Thu May 31 2018 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.3.0-1
|
|
|
|
- Upstream released new version
|
|
|
|
- Enable DNS over TLS
|
|
|
|
|
2018-02-19 16:33:56 +00:00
|
|
|
* Mon Feb 19 2018 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.2.1-1
|
|
|
|
- Upstream released new version
|
|
|
|
- BuildRequires gcc-c++ (https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequire)
|
|
|
|
- Fix mixed indentation in spec file
|
|
|
|
|
2018-02-07 07:04:10 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-29 11:08:58 +00:00
|
|
|
* Wed Nov 29 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.2.0-4
|
|
|
|
- Rebuild for protobuf 3.5
|
|
|
|
|
2017-11-13 22:27:41 +00:00
|
|
|
* Mon Nov 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.0-3
|
|
|
|
- Rebuild for protobuf 3.4
|
|
|
|
|
2017-10-02 06:45:15 +00:00
|
|
|
* Mon Oct 02 2017 Remi Collet <remi@fedoraproject.org> - 1.2.0-2
|
|
|
|
- rebuild for libsodium
|
|
|
|
|
2017-08-22 08:43:10 +00:00
|
|
|
* Tue Aug 22 2017 Sander Hoentjen <sander@hoentjen.eu> - 1.2.0-1
|
|
|
|
- Update to 1.2.0
|
|
|
|
- Fixes CVE-2017-7557
|
|
|
|
- Fixes CVE-2016-7069
|
|
|
|
|
2017-08-02 19:40:43 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 06:22:00 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-13 15:08:05 +00:00
|
|
|
* Tue Jun 13 2017 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-6
|
|
|
|
- Rebuild for protobuf 3.3.1
|
|
|
|
|
2017-05-15 20:59:23 +00:00
|
|
|
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 08:29:24 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-26 17:44:45 +00:00
|
|
|
* Mon Jan 23 2017 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-3
|
|
|
|
- Rebuild for protobuf 3.2.0
|
|
|
|
|
2016-12-30 12:08:18 +00:00
|
|
|
* Fri Dec 30 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.1.0-2
|
|
|
|
- ppc64 buildroot doesn't have libatomic, so require it
|
|
|
|
|
2016-12-30 07:59:59 +00:00
|
|
|
* Fri Dec 30 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.1.0-1
|
|
|
|
- New upstream release
|
|
|
|
|
2016-11-19 15:43:52 +00:00
|
|
|
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 1.0.0-4
|
|
|
|
- Rebuild for protobuf 3.1.0
|
|
|
|
|
2016-08-30 07:31:07 +00:00
|
|
|
* Tue Aug 30 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-3
|
|
|
|
- luajit is now also available for aarch64 and MIPS
|
|
|
|
|
2016-08-29 14:47:11 +00:00
|
|
|
* Mon Aug 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.0.0-2
|
|
|
|
- Rebuild for LuaJIT 2.1.0
|
|
|
|
|
2016-04-21 08:34:06 +00:00
|
|
|
* Thu Apr 21 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-1
|
|
|
|
- Upstream released new version
|
|
|
|
|
2016-04-15 16:41:51 +00:00
|
|
|
* Fri Apr 15 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.0.0-0.10.beta1
|
|
|
|
- Use the correct systemd service file
|
|
|
|
|
2016-04-15 15:46:08 +00:00
|
|
|
* Fri Apr 15 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.0.0-0.10.beta1
|
2016-04-15 14:32:08 +00:00
|
|
|
- Upstream released new version
|
|
|
|
- Run as dnsdist user / group (#1326623)
|
|
|
|
- Enable support for libre2 and protobufs
|
|
|
|
- Fix systemd detection
|
|
|
|
- Only build with lua if luajit is not available
|
|
|
|
|
2016-03-08 12:30:25 +00:00
|
|
|
* Tue Mar 08 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.0.0-0.9.alpha2
|
|
|
|
- Rebuild for libsodium soname bump
|
|
|
|
|
2016-02-24 01:02:56 +00:00
|
|
|
* Tue Feb 23 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.0-0.8.alpha2
|
|
|
|
- Add aarch64/s390(x) to luajit excludes
|
|
|
|
- uglify-js available on nodejs arches so use that define
|
|
|
|
|
2016-02-08 19:39:26 +00:00
|
|
|
* Mon Feb 08 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-0.7.alpha2
|
|
|
|
- Only copy .js files when minify-js is not available
|
|
|
|
|
2016-02-08 19:32:15 +00:00
|
|
|
* Mon Feb 08 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-0.6.alpha2
|
|
|
|
- PPC on EPEL does not have uglify-js
|
|
|
|
|
2016-02-08 18:27:45 +00:00
|
|
|
* Mon Feb 08 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-0.5.alpha2
|
|
|
|
- Don't build against luijit on ppc, it is not available there
|
|
|
|
|
2016-02-08 16:45:02 +00:00
|
|
|
* Mon Feb 08 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-0.4.alpha2
|
|
|
|
- Add sample config file
|
|
|
|
|
|
|
|
* Sat Feb 06 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-0.3.alpha2
|
|
|
|
- Update to new upstream
|
|
|
|
|
|
|
|
* Sun Jan 10 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-0.2.alpha1
|
|
|
|
- SPEC fixes for review
|
|
|
|
|
|
|
|
* Sun Jan 10 2016 Sander Hoentjen <sander@hoentjen.eu> - 1.0.0-0.1.alpha1
|
|
|
|
- Initial package
|