From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 1/2] gnu: Add dnscrypt-wrapper. Date: Sun, 27 Nov 2016 21:29:36 +0100 Message-ID: <87zikku0nj.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20161126153032.27807-1-mbakke@fastmail.com> <87k2bpejwr.fsf@openmailbox.org> <87shqdfc7h.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <871sxwhov8.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB64z-0008IO-DY for guix-devel@gnu.org; Sun, 27 Nov 2016 15:29:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB64w-0003eq-9J for guix-devel@gnu.org; Sun, 27 Nov 2016 15:29:41 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:32806) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cB64w-0003em-4k for guix-devel@gnu.org; Sun, 27 Nov 2016 15:29:38 -0500 In-Reply-To: <871sxwhov8.fsf@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Kei Kebreau Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Kei Kebreau writes: > Marius Bakke writes: > >> Kei Kebreau writes: >> >>> Marius Bakke writes: >>> >>>> * gnu/packages/dns.scm (dnscrypt-wrapper): New variable. >>>> --- >>>> gnu/packages/dns.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ >>>> 1 file changed, 42 insertions(+) >>>> >>>> diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm >>>> index b49a0b7..0c8c547 100644 >>>> --- a/gnu/packages/dns.scm >>>> +++ b/gnu/packages/dns.scm >>>> @@ -6,6 +6,7 @@ >>>> ;;; Copyright =C2=A9 2016 John Darrington >>>> ;;; Copyright =C2=A9 2016 ng0 >>>> ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice >>>> +;;; Copyright =C2=A9 2016 Marius Bakke >>>> ;;; >>>> ;;; This file is part of GNU Guix. >>>> ;;; >>>> @@ -26,7 +27,9 @@ >>>> #:use-module (gnu packages autotools) >>>> #:use-module (gnu packages base) >>>> #:use-module (gnu packages databases) >>>> + #:use-module (gnu packages crypto) >>>> #:use-module (gnu packages groff) >>>> + #:use-module (gnu packages libevent) >>>> #:use-module (gnu packages linux) >>>> #:use-module (gnu packages perl) >>>> #:use-module (gnu packages pkg-config) >>>> @@ -134,6 +137,45 @@ high-volume and high-reliability applications. Th= e name BIND stands for >>>> (home-page "https://www.isc.org/downloads/bind") >>>> (license (list license:isc)))) >>>>=20=20 >>>> +(define-public dnscrypt-wrapper >>>> + (package >>>> + (name "dnscrypt-wrapper") >>>> + (version "0.2.2") >>>> + (source (origin >>>> + (method url-fetch) >>>> + (uri (string-append >>>> + "https://github.com/cofyc/dnscrypt-wrapper/releas= es" >>>> + "/download/v" version "/" name "-v" version ".tar= .bz2")) >>>> + (sha256 >>>> + (base32 >>>> + "1vhg4g0r687f51wcdn7z9w1hxapazx6vyh5rsr8wa48sljzd583g= ")))) >>>> + (build-system gnu-build-system) >>>> + (arguments >>>> + `(#:make-flags '("CC=3Dgcc") >>>> + ;; TODO: Tests require ruby-cucumber and ruby-aruba. >>>> + #:tests? #f >>>> + #:phases >>>> + (modify-phases %standard-phases >>>> + (add-before 'configure 'create-configure >>>> + (lambda _ >>>> + (zero? (system* "make" "configure"))))))) >>>> + (native-inputs >>>> + `(("autoconf" ,autoconf))) >>>> + (inputs >>>> + `(("libevent" ,libevent) >>>> + ("libsodium" ,libsodium))) >>>> + (home-page "https://github.com/Cofyc/dnscrypt-wrapper") >>>> + (synopsis "Server-side dnscrypt proxy") >>>> + (description >>>> + "Dnscrypt-wrapper can turn any DNS resolver into a @code{dnscryp= t} >>>> +compliant name server.") >>>> + (license (list license:isc >>>> + ;; Bundled argparse is MIT. TODO: package and unbu= ndle. >>>> + license:expat >>>> + ;; dns-protocol.h and rfc1035.{c,h} is gpl2 or gpl= 3 (either). >>>> + license:gpl2 >>>> + license:gpl3)))) >>>> + >>>> (define-public libasr >>>> (package >>>> (name "libasr") >>> >>> I'm not sure how to test the functionality of the software, but the >>> patch itself LGTM. >> >> To test it, follow the steps in the README on a remote machine: >> >> https://github.com/Cofyc/dnscrypt-wrapper#usage >> >> ..and set up dnscrypt-proxy on your local computer to talk to it. Then >> add 'nameserver 127.0.0.1' to resolv.conf. >> >> I'm currently using this to bypass a DNS filter, so I know it works ;-) > > Thanks for the instructions. This works for me! :) Cool, thanks for testing. I'll commit these in a few days, unless some autotools guru steps in and figures out how to skip the unnecessary "libltdl" build in dnscrypt-proxy :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlg7QjAACgkQoqBt8qM6 VPpR4wgAxmpqPaSOJW44AaUGYyjdiB8rHMGCYbdWawHurnjxFrUklsxSu9w5oZ8y fqAv2uNPDaEs1jbjUpp76wYoMX0t7wynzSLee0beNd2CW2cs+Wvgzdnf13GCIyht W1tFn5sHKXrQ+NMB0Ce8aQLpzA35k3S4k96HZx+f5QyAtcyYPisQVOZtRCcEAQVI cXll8ixw5HSUPNDS6cqGqm1UyR8x/h3Mjrxrg94qQA/mC9Lm2eXFp4x6ZDNDjY4X wDKHkxTFkVSfTJvYouj9NE+wr8U/wT3dzhzyij/anWntQstwqp3ir/RwAoyrlROf BF7TpBSsS4/+YDcUdFs67HHxRBjHwA== =mphG -----END PGP SIGNATURE----- --=-=-=--