1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages adns)
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages pkg-config))
33 (uri (list (string-append "mirror://gnu/adns/adns-"
36 "http://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-"
40 "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v"))))
41 (build-system gnu-build-system)
43 ;; Make sure the programs under bin/ fine libadns.so.
44 '(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath -Wl,"
45 (assoc-ref %outputs "out")
48 ;; XXX: Tests expect real name resolution to work.
50 (home-page "https://www.gnu.org/software/adns/")
51 (synopsis "Asynchronous DNS client library and utilities")
53 "GNU adns is a C library that provides easy-to-use DNS resolution
54 functionality. The library is asynchronous, allowing several concurrent
55 calls. The package also includes several command-line utilities for use in
66 "https://c-ares.haxx.se/download/" name "-" version
70 "19qxhv9aiw903fr808y77r6l9js0fq9m3gcaqckan9jan7qhixq3"))))
71 (build-system gnu-build-system)
73 `(("pkg-config" ,pkg-config)))
74 (home-page "https://c-ares.haxx.se/")
75 (synopsis "C library for asynchronous DNS requests")
77 "C-ares is a C library that performs DNS requests and name resolution
78 asynchronously. It is intended for applications which need to perform DNS
79 queries without blocking, or need to perform multiple DNS queries in parallel.
80 The primary examples of such applications are servers which communicate with
81 multiple clients and programs with graphical user interfaces.")
82 (license (x11-style "http://c-ares.haxx.se/license.html"))))