2015-05-08 16:29:52 +04:00
|
|
|
Summary: Tool for securing communications between a client and a DNS resolver
|
|
|
|
Name: dnscrypt-proxy
|
2017-01-09 19:06:34 +03:00
|
|
|
Version: 1.8.0
|
|
|
|
Release: 1
|
2015-05-08 16:29:52 +04:00
|
|
|
License: BSD
|
|
|
|
Group: Networking/Other
|
2016-09-05 01:52:36 +03:00
|
|
|
Url: http://dnscrypt.org
|
|
|
|
Source0: http://download.dnscrypt.org/dnscrypt-proxy/%{name}-%{version}.tar.bz2
|
2016-12-06 10:00:49 +03:00
|
|
|
Source1: %{name}-resolvconf.service
|
|
|
|
Source2: %{name}.service
|
|
|
|
Source3: %{name}.socket
|
|
|
|
Source4: %{name}-default
|
|
|
|
Source5: %{name}
|
2015-05-08 16:29:52 +04:00
|
|
|
BuildRequires: pkgconfig(libsodium)
|
2016-10-09 01:20:42 +03:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: gawk
|
|
|
|
BuildRequires: sed
|
|
|
|
BuildRequires: grep
|
|
|
|
|
|
|
|
Requires(post): rpm-helper
|
|
|
|
Requires(preun): rpm-helper
|
2015-05-08 16:29:52 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
A tool for securing communications between a client and a DNS resolver.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-10-09 01:20:42 +03:00
|
|
|
%configure2_5x --enable-static=no --with-systemd
|
2015-05-08 16:29:52 +04:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2016-12-06 10:00:49 +03:00
|
|
|
|
|
|
|
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_systemunitdir}/%{name}-resolvconf.service
|
|
|
|
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_systemunitdir}/%{name}.service
|
|
|
|
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_systemunitdir}/%{name}.socket
|
|
|
|
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/default/%{name}
|
|
|
|
install -D -p -m 0755 %{SOURCE5} %{buildroot}%{_sysconfdir}/init.d/%{name}
|
2016-12-05 14:29:01 +04:00
|
|
|
|
|
|
|
%files
|
2016-12-06 10:00:49 +03:00
|
|
|
%{_systemunitdir}/%{name}-resolvconf.service
|
2016-12-05 14:29:01 +04:00
|
|
|
%{_systemunitdir}/%{name}.service
|
|
|
|
%{_systemunitdir}/%{name}.socket
|
2016-12-06 10:00:49 +03:00
|
|
|
%{_sysconfdir}/default/%{name}
|
|
|
|
%{_sysconfdir}/init.d/%{name}
|
2016-12-05 14:29:01 +04:00
|
|
|
%{_sbindir}/%{name}
|
|
|
|
%{_bindir}/hostip
|
|
|
|
%{_mandir}/man8/%{name}.8*
|
|
|
|
%{_mandir}/man8/hostip.8*
|
|
|
|
%{_datadir}/%{name}/dnscrypt-resolvers.csv
|
|
|
|
%{_datadir}/%{name}/minisign.pub
|
|
|
|
%{_libdir}/dnscrypt-proxy/libdcplugin_example.so
|
|
|
|
%{_libdir}/dnscrypt-proxy/libdcplugin_example_logging.so
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post dnscrypt-proxy
|
|
|
|
# Simple: still needs this since in release 3 services were not set
|
|
|
|
# enabled and seams that still isnt properly handeled in %%_post_service
|
|
|
|
if [ "$1" -ge "1" ]; then
|
2016-12-06 10:00:49 +03:00
|
|
|
echo '#!/bin/sh
|
|
|
|
systemctl start dnscrypt-proxy.service' > /etc/rc.d/rc.local
|
|
|
|
chmod +x /etc/rc.d/rc.local
|
|
|
|
|
|
|
|
ln -s /etc/rc.d/rc.local /etc/rc.local
|
2016-12-05 14:29:01 +04:00
|
|
|
# Start dnscrypt-proxy service
|
|
|
|
/bin/systemctl start dnscrypt-proxy.service
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun dnscrypt-proxy
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/C
|
|
|
|
Summary: Development libraries from %{name}
|
|
|
|
Requires: %{name} = %{EVRD}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development libraries from %{name}.
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/dnscrypt/*.h
|
2016-12-06 10:00:49 +03:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Nov 20 2016 Victor Ryzhikh <victorr2007@yandex.ru> 1.7.0-6
|
|
|
|
- (cbd66b5) Fixed switching service dnscrypt-proxy
|
|
|
|
|
|
|
|
|