Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:paddg
powerdns-dnsdist-test
dnsdist.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dnsdist.spec of Package powerdns-dnsdist-test
Name: dnsdist-test Version: 1.9.4.test %define pkg_version 1.9.4 %define oname dnsdist Release: 1 License: GPL-2.0 Summary: A highly DNS-, DoS- and abuse-aware loadbalancer Url: https://dnsdist.org/ Group: Productivity/Networking/DNS/Servers Source: %{oname}-%{pkg_version}.tar.bz2 Source1: dnsdist.lua Source2: usr.sbin.dnsdist Source3: local.usr.sbin.dnsdist BuildRequires: gcc-c++ BuildRequires: libboost_headers-devel BuildRequires: libedit-devel BuildRequires: libfstrm-devel BuildRequires: libsodium-devel BuildRequires: lmdb-devel BuildRequires: net-snmp-devel BuildRequires: pkgconfig BuildRequires: sysuser-shadow BuildRequires: sysuser-tools BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(libnghttp2) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) BuildRequires: apparmor-profiles BuildRequires: re2-devel BuildRequires: pkgconfig(luajit) BuildRequires: pkgconfig(lua) %systemd_ordering %sysusers_requires %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. dnsdist is dynamic, in the sense that its configuration can be changed at runtime, and that its statistics can be queried from a console-like interface. %prep %autosetup -p1 -n %{oname}-%{pkg_version} %build export CFLAGS="%{optflags} -Wno-error=deprecated-declarations" export CXXFLAGS="$CFLAGS" %configure \ --enable-lto \ --with-ebpf \ --with-net-snmp \ --with-libcap \ --with-lua=luajit \ --with-lmdb \ --with-re2 \ --with-libsodium \ --enable-dnscrypt \ --enable-dnstap \ --enable-systemd \ --enable-dns-over-tls \ --enable-dns-over-https \ --disable-silent-rules \ --bindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir}/%{oname}/ %make_build make %{?_smp_mflags} -j2 %install %make_install ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{oname} install -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/apparmor.d/usr.sbin.dnsdist install -D -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/apparmor.d/local/usr.sbin.dnsdist install -Dd -m 0750 %{buildroot}%{_sysconfdir}/%{oname}/ %{buildroot}%{_var}/lib/%{oname}/ install -m 0640 %{S:1} %{buildroot}%{_sysconfdir}/%{oname}/dnsdist.conf sed -i 's/LimitNOFILE\s*=\s*[0-9]\+/LimitNOFILE=131272/' %{buildroot}/%{_unitdir}/%{oname}.service grep LimitNOFILE=131272 %{buildroot}/%{_unitdir}/%{oname}.service sed -i '/LimitNOFILE/ a LimitMEMLOCK=infinity' %{buildroot}/%{_unitdir}/%{oname}.service grep LimitMEMLOCK=infinity %{buildroot}/%{_unitdir}/%{oname}.service sed -i 's/LimitNOFILE\s*=\s*[0-9]\+/LimitNOFILE=131272/' %{buildroot}/%{_unitdir}/%{oname}@.service grep LimitNOFILE=131272 %{buildroot}/%{_unitdir}/%{oname}@.service sed -i '/LimitNOFILE/ a LimitMEMLOCK=infinity' %{buildroot}/%{_unitdir}/%{oname}@.service grep LimitMEMLOCK=infinity %{buildroot}/%{_unitdir}/%{oname}@.service %pre /usr/sbin/groupadd -r %{oname} >/dev/null 2>&1 || : /usr/sbin/useradd -g %{oname} -s /bin/false -r -c "%{oname}" -d %{_var}/lib/%{oname} %{oname} >/dev/null 2>&1 || : %service_add_pre %{oname}.service %{oname}@.service %preun %service_del_preun %{oname}.service %{oname}@.service %post %service_add_post %{oname}.service %{oname}@.service %postun %service_del_postun %{oname}.service %{oname}@.service %files %defattr(-,root,root) %doc README.md %{_sbindir}/dnsdist %{_mandir}/man1/dnsdist.1%{?ext_man} %{_unitdir}/%{oname}*.service %{_sbindir}/rc%{oname} %config(noreplace) %{_sysconfdir}/apparmor.d/usr.sbin.dnsdist %config(noreplace) %{_sysconfdir}/apparmor.d/local/usr.sbin.dnsdist %config(noreplace) %attr(-,root,%{oname}) %{_sysconfdir}/%{oname}/ %dir %attr(700,%{oname},%{oname}) %{_var}/lib/%{oname} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor