dnscrypt-proxy/dnscrypt.spec
Marguerite Su e0f122a2bc Accepting request 253509 from home:dsterba:branches:server:dns
- update to 1.4.1

I've tried to write a more verbose changelog but nothing that would be good
enough for .changes hasn't materialized.

OBS-URL: https://build.opensuse.org/request/show/253509
OBS-URL: https://build.opensuse.org/package/show/server:dns/dnscrypt-proxy?expand=0&rev=2
2014-10-01 13:36:41 +00:00

88 lines
2.7 KiB
RPMSpec

#
# spec file for package dnscrypt
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dnscrypt
Version: 1.4.1
Release: 0
Summary: A tool for securing communications between a client and a DNS resolver
License: BSD-3-Clause
Group: Productivity/Networking/DNS/Utilities
#Git-Url: https://github.com/jedisct1/dnscrypt-proxy
Url: http://dnscrypt.org
Source: http://download.dnscrypt.org/dnscrypt-proxy/%{name}-proxy-%{version}.tar.bz2
Source1: %{name}.service
BuildRequires: libsodium-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1210
BuildRequires: systemd
%{?systemd_requires}
%endif
%description
dnscrypt-proxy provides local service which can be used directly as your local resolver or as a DNS forwarder,
encrypting and authenticating requests using the DNSCrypt protocol and passing them to an upstream server,
by default OpenDNS who run this on their resolvers.
The DNSCrypt protocol uses high-speed high-security elliptic-curve cryptography and is very similar to
DNSCurve, but focuses on securing communications between a client and its first-level resolver.
While not providing end-to-end security, it protects the local network, which is often the weakest point
of the chain, against man-in-the-middle attacks. It also provides some confidentiality to DNS queries.
%prep
%setup -q -n %{name}-proxy-%{version}
%build
%configure
make %{?_smp_mflags}
%install
%make_install
# install systemd service
mkdir -p %{buildroot}%{_unitdir}
cp -r %{SOURCE1} %{buildroot}%{_unitdir}
%if 0%{?suse_version}
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%endif
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README COPYING NEWS TECHNOTES THANKS
%{_bindir}/hostip
%{_sbindir}/%{name}-proxy
%{_unitdir}/%{name}.service
%{_mandir}/man8/hostip.8.gz
%{_mandir}/man8/%{name}-proxy.8.gz
%dir %{_datadir}/%{name}-proxy
%{_datadir}/%{name}-proxy/%{name}-resolvers.csv
%changelog