From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: [PATCH] gnu: Add bind Date: Sun, 18 Sep 2016 15:57:58 +0200 Message-ID: <20160918135758.GA8167@jocasta.intra> References: <20160910192545.GA3904@jasmine> <1473545186-6899-1-git-send-email-jmd@gnu.org> <20160910220817.GA6974@jocasta.intra> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blcbh-0005if-9K for guix-devel@gnu.org; Sun, 18 Sep 2016 09:58:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blcbg-00009D-18 for guix-devel@gnu.org; Sun, 18 Sep 2016 09:58:09 -0400 Content-Disposition: inline In-Reply-To: <20160910220817.GA6974@jocasta.intra> 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: John Darrington Cc: guix-devel@gnu.org, John Darrington --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does anyone have any opinions/objections before I make this commit? J' On Sun, Sep 11, 2016 at 12:08:17AM +0200, John Darrington wrote: I suggest that we use this version and remove the existing bind-utils. =20 J' =20 On Sun, Sep 11, 2016 at 12:06:26AM +0200, John Darrington wrote: * gnu/packags/dns.scm (bind): New variable --- gnu/packages/dns.scm | 69 ++++++++++++++++++++++++++++++++++++++= ++++++++++++++ 1 file changed, 69 insertions(+) =20 diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 819343a..dad8079 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -3,6 +3,7 @@ ;;; Copyright ?? 2016 Mark H Weaver ;;; Copyright ?? 2016 Ricardo Wurmus ;;; Copyright ?? 2016 Efraim Flashner +;;; Copyright ?? 2016 John Darrington ;;; ;;; This file is part of GNU Guix. ;;; @@ -63,6 +64,74 @@ and BOOTP/TFTP for network booting of diskless= machines.") ;; Source files only say GPL2 and GPL3 are allowed. (license (list license:gpl2 license:gpl3)))) =20 +(define-public bind + (package + (name "bind") + (version "9.10.4-P2") + (source (origin + (method url-fetch) + (uri (string-append + "ftp://ftp.isc.org/isc/bind9/" version "/" n= ame "-" + version ".tar.gz")) + (sha256 + (base32 + "08s48h5p916ixjiwgar4w6skc20crmg7yj1y7g89c083zvw= 8lnxk")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list (string-append "--with-openssl=3D" + (assoc-ref %build-inputs "openssl")) + (string-append "--with-dlz-mysql=3D" + (assoc-ref %build-inputs "mysql")) + (string-append "--with-pkcs11=3D" + (assoc-ref %build-inputs "p11-kit"))) + #:phases + ;; When and if guix provides user namespaces for the buil= d process, + ;; then the following can be uncommented and the subseque= nt "force-test" + ;; will not be necessary. + ;; + ;; (modify-phases %standard-phases + ;; (add-before 'check 'set-up-loopback + ;; (lambda _ + ;; (system "bin/tests/system/ifconfig.sh up")))) + (modify-phases %standard-phases + (add-after 'strip 'move-to-utils + (lambda _ + (for-each + (lambda (file) + (let ((target (string-append (assoc-ref %output= s "utils") file)) + (src (string-append (assoc-ref %outputs "= out") file))) + (mkdir-p (dirname target)) + (link src target) + (delete-file src))) + '("/bin/dig" "/bin/delv" "/bin/nslookup" "/bin/hos= t" "/bin/nsupdate" + "/share/man/man1/dig.1" + "/share/man/man1/host.1" + "/share/man/man1/nslookup.1" + "/share/man/man1/nsupdate.1")))) + (replace 'check + (lambda _ + (zero? (system* "make" "force-test"))))))) + (outputs `("out" "utils")) + (inputs + ;; it would be nice to add GeoIP and gssapi once there is p= ackage + `(("libcap" ,libcap) + ("libxml2" ,libxml2) + ("mysql" ,mysql) + ("openssl" ,openssl) + ("p11-kit" ,p11-kit))) + (native-inputs `(("perl" ,perl) + ("net-tools" ,net-tools))) + (synopsis "An implementation of the Domain Name System") + (description "BIND is an implementation of the Domain Name S= ystem (DNS) +protocols for the Internet. It is a reference implementation of= those +protocols, but it is also production-grade software, suitable fo= r use in +high-volume and high-reliability applications. The name BIND sta= nds for +\"Berkeley Internet Name Domain\", because the software originat= ed in the early +1980s at the University of California at Berkeley.") + (home-page "https://www.isc.org/downloads/bind") + (license (list license:isc)))) + (define-public bind-utils (package (name "bind-utils") --=20 2.1.4 =20 =20 =20 --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. =20 --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlfenWYACgkQimdxnC3oJ7OOcgCff93/ekIbWNv1KcLMF/d468hB 5VgAnjoRPh2HSZHt83lDgDtjGbcIBrpE =dPP3 -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--