mirror of
https://abf.rosa.ru/djam/dnscrypt-proxy.git
synced 2025-02-24 09:02:57 +00:00
87 lines
2.3 KiB
RPMSpec
87 lines
2.3 KiB
RPMSpec
Summary: Tool for securing communications between a client and a DNS resolver
|
|
Name: dnscrypt-proxy
|
|
Version: 1.9.5
|
|
Release: 2
|
|
License: BSD
|
|
Group: Networking/Other
|
|
Url: http://dnscrypt.org
|
|
Source0: http://download.dnscrypt.org/dnscrypt-proxy/%{name}-%{version}.tar.bz2
|
|
Source1: %{name}.service
|
|
Source2: %{name}.socket
|
|
Source3: %{name}-default
|
|
BuildRequires: gawk
|
|
BuildRequires: grep
|
|
BuildRequires: sed
|
|
BuildRequires: pkgconfig(libsodium)
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
Requires(post): rpm-helper
|
|
Requires(preun): rpm-helper
|
|
|
|
%description
|
|
A tool for securing communications between a client and a DNS resolver.
|
|
|
|
%files
|
|
%{_systemunitdir}/%{name}.service
|
|
%{_systemunitdir}/%{name}.socket
|
|
%{_sysconfdir}/default/%{name}
|
|
%{_sbindir}/%{name}
|
|
%{_bindir}/hostip
|
|
%{_mandir}/man8/%{name}.8*
|
|
%{_mandir}/man8/hostip.8*
|
|
%{_datadir}/%{name}/dnscrypt-resolvers.csv
|
|
%{_datadir}/%{name}/minisign.pub
|
|
%{_datadir}/doc/%{name}/*
|
|
%{_libdir}/dnscrypt-proxy/libdcplugin_example.so
|
|
%{_libdir}/dnscrypt-proxy/libdcplugin_example_logging.so
|
|
%{_libdir}/dnscrypt-proxy/libdcplugin_example_cache.so
|
|
%{_sysconfdir}/dnscrypt-proxy.conf
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
%package devel
|
|
Group: Development/C
|
|
Summary: Development libraries from %{name}
|
|
Requires: %{name} = %{EVRD}
|
|
|
|
%description devel
|
|
Development libraries from %{name}.
|
|
|
|
%files devel
|
|
%doc AUTHORS COPYING
|
|
%{_includedir}/dnscrypt/*.h
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure2_5x \
|
|
--enable-static=no \
|
|
--with-systemd
|
|
|
|
%make
|
|
|
|
%install
|
|
%makeinstall
|
|
|
|
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_systemunitdir}/%{name}.service
|
|
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_systemunitdir}/%{name}.socket
|
|
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/default/%{name}
|
|
|
|
sed 's|# LocalAddress 127.0.0.1:53|LocalAddress 127.0.2.1:53|' -i %{buildroot}%{_sysconfdir}/dnscrypt-proxy.conf
|
|
|
|
%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
|
|
# Enable (but don't start) the unit by default
|
|
/bin/systemctl enable dnscrypt-proxy.service
|
|
# Start bluetooth service
|
|
/bin/systemctl start dnscrypt-proxy.service
|
|
fi
|
|
|
|
%preun
|
|
%systemd_preun dnscrypt-proxy
|