dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / packages / opensuse / dnscrypt.spec
blob9d8187bcf1d542054a3546bf8cbaf7d7803b9153
2 # spec file for package dnscrypt
4 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
18 Name: dnscrypt
19 Version: 1.2.0
20 Release: 0
21 License: BSD-3-Clause
22 Summary: A tool for securing communications between a client and a DNS resolver
23 Url: http://dnscrypt.org
24 Group: Productivity/Networking/DNS/Utilities
25 Source: %{name}-proxy-%{version}.tar.bz2
26 Source1: %{name}.service
27 %if 0%{?suse_version} >= 1210
28 BuildRequires: systemd
29 %{?systemd_requires}
30 %endif
31 BuildRoot: %{_tmppath}/%{name}-%{version}-build
33 %description
34 dnscrypt-proxy provides local service which can be used directly as your local resolver or as a DNS forwarder,
35 encrypting and authenticating requests using the DNSCrypt protocol and passing them to an upstream server,
36 by default OpenDNS who run this on their resolvers.
38 The DNSCrypt protocol uses high-speed high-security elliptic-curve cryptography and is very similar to
39 DNSCurve, but focuses on securing communications between a client and its first-level resolver.
41 While not providing end-to-end security, it protects the local network, which is often the weakest point
42 of the chain, against man-in-the-middle attacks. It also provides some confidentiality to DNS queries.
44 %prep
45 %setup -q -n %{name}-proxy-%{version}
47 %build
48 %configure
49 make %{?_smp_mflags}
51 %install
52 %make_install
54 # install systemd service
55 mkdir -p %{buildroot}%{_unitdir}
56 cp -r %{SOURCE1} %{buildroot}%{_unitdir}
58 %if 0%{?suse_version}
59 %pre
60 %service_add_pre %{name}.service
62 %post
63 %service_add_post %{name}.service
65 %preun
66 %service_del_preun %{name}.service
68 %postun
69 %service_del_postun %{name}.service
70 %endif
72 %files
73 %defattr(-,root,root)
74 %doc AUTHORS ChangeLog README COPYING NEWS TECHNOTES THANKS
75 %{_bindir}/hostip
76 %{_sbindir}/%{name}-proxy
77 %{_unitdir}/%{name}.service
78 %{_mandir}/man8/hostip.8.gz
79 %{_mandir}/man8/%{name}-proxy.8.gz
81 %changelog