diff --git a/dnscrypt-proxy.spec b/dnscrypt-proxy.spec index ba2641b..431d057 100644 --- a/dnscrypt-proxy.spec +++ b/dnscrypt-proxy.spec @@ -44,7 +44,7 @@ Features: - Can force outgoing connections to use TCP; useful with tunnels such as Tor.} Name: dnscrypt-proxy -Release: 1%{?dist} +Release: 2%{?dist} Summary: Flexible DNS proxy, with support for encrypted DNS protocols License: ISC @@ -52,6 +52,7 @@ URL: https://github.com/jedisct1/dnscrypt-proxy Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: dnscrypt-proxy.service Source2: dnscrypt-proxy.socket +Source3: override.conf # Largely inspired by Arch packaging # https://git.archlinux.org/svntogit/community.git/tree/trunk/configuration.diff?h=packages/dnscrypt-proxy @@ -97,6 +98,7 @@ install -Dpm 0644 dnscrypt-proxy/example-forwarding-rules.txt %{buildroot}%{_sys install -Dpm 0644 dnscrypt-proxy/example-whitelist.txt %{buildroot}%{_sysconfdir}/%{name}/whitelist.txt install -Dpm 0644 %{S:1} %{buildroot}%{_unitdir}/%{name}.service install -Dpm 0644 %{S:2} %{buildroot}%{_unitdir}/%{name}.socket +install -Dpm 0644 %{S:3} %{buildroot}%{_unitdir}/dnscrypt-proxy.socket.d/override.conf # Temporary SELinux workaround # https://github.com/fedora-selinux/selinux-policy/issues/231 @@ -152,8 +154,12 @@ fi %{_datadir}/selinux/packages/%{name}/my-ptproxy.pp %config(noreplace) %{_unitdir}/%{name}.socket %{_unitdir}/%{name}.service +%config(noreplace) %{_unitdir}/dnscrypt-proxy.socket.d/override.conf %changelog +* Mon Dec 14 07:25:20 CET 2020 Robert-André Mauchin - 2.0.44-2 +- Keep config(noreplace) for %{_unitdir}/%{name}.socket + * Wed Jun 17 22:28:35 CEST 2020 Robert-André Mauchin - 2.0.44-1 - Release 2.0.44