Commit | Line | Data |
---|---|---|
342005e7 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> | |
066651d4 | 3 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
342005e7 LC |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
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. | |
11 | ;;; | |
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. | |
16 | ;;; | |
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/>. | |
19 | ||
20 | (define-module (gnu packages adns) | |
21 | #:use-module (guix licenses) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix download) | |
cd44f1c1 EF |
24 | #:use-module (guix build-system gnu) |
25 | #:use-module (gnu packages pkg-config)) | |
342005e7 LC |
26 | |
27 | (define-public adns | |
28 | (package | |
29 | (name "adns") | |
91fd8dd2 | 30 | (version "1.5.1") |
342005e7 LC |
31 | (source (origin |
32 | (method url-fetch) | |
33 | (uri (list (string-append "mirror://gnu/adns/adns-" | |
34 | version ".tar.gz") | |
35 | (string-append | |
36 | "http://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-" | |
37 | version ".tar.gz"))) | |
38 | (sha256 | |
39 | (base32 | |
91fd8dd2 | 40 | "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v")))) |
342005e7 LC |
41 | (build-system gnu-build-system) |
42 | (arguments | |
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") | |
46 | "/lib")) | |
47 | ||
48 | ;; XXX: Tests expect real name resolution to work. | |
49 | #:tests? #f)) | |
6fd52309 | 50 | (home-page "https://www.gnu.org/software/adns/") |
342005e7 LC |
51 | (synopsis "Asynchronous DNS client library and utilities") |
52 | (description | |
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 | |
56 | scripts.") | |
57 | (license gpl3+))) | |
cd44f1c1 EF |
58 | |
59 | (define-public c-ares | |
60 | (package | |
61 | (name "c-ares") | |
0da1b706 | 62 | (version "1.12.0") |
cd44f1c1 EF |
63 | (source (origin |
64 | (method url-fetch) | |
65 | (uri (string-append | |
0da1b706 | 66 | "https://c-ares.haxx.se/download/" name "-" version |
cd44f1c1 EF |
67 | ".tar.gz")) |
68 | (sha256 | |
69 | (base32 | |
0da1b706 | 70 | "1yv5ygkd813glz8hbagykgp1hlb6450chig061hr7pyw7i0gk4l6")))) |
cd44f1c1 EF |
71 | (build-system gnu-build-system) |
72 | (native-inputs | |
73 | `(("pkg-config" ,pkg-config))) | |
0da1b706 | 74 | (home-page "https://c-ares.haxx.se/") |
cd44f1c1 EF |
75 | (synopsis "C library for asynchronous DNS requests") |
76 | (description | |
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")))) |