Commit | Line | Data |
---|---|---|
dd2efd3d TUBK |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages dnsmasq) | |
20 | #:use-module (guix licenses) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu)) | |
24 | ||
25 | (define-public dnsmasq | |
26 | (package | |
27 | (name "dnsmasq") | |
28 | (version "2.72") | |
29 | (source (origin | |
30 | (method url-fetch) | |
31 | (uri (string-append | |
32 | "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-" | |
33 | version ".tar.xz")) | |
34 | (sha256 | |
35 | (base32 | |
36 | "1c80hq09hfm8cp5pirfb8wdlc7dqkp7zzmbmdaradcvlblzx42vx")))) | |
37 | (build-system gnu-build-system) | |
38 | (arguments | |
39 | `(#:phases | |
40 | (alist-delete 'configure %standard-phases) | |
41 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
42 | "CC=gcc") | |
43 | ;; No 'check' target. | |
44 | #:tests? #f)) | |
45 | (home-page "http://www.thekelleys.org.uk/dnsmasq/doc.html") | |
46 | (synopsis "Small caching DNS proxy and DHCP/TFTP server") | |
47 | (description | |
48 | "Dnsmasq is a lightweight DNS forwarder and DHCP server. It is designed | |
49 | to provide DNS and optionally, DHCP, to a small network. It can serve the | |
50 | names of local machines which are not in the global DNS. The DHCP server | |
51 | integrates with the DNS server and allows machines with DHCP-allocated | |
52 | addresses to appear in the DNS with names configured either in each host or in | |
53 | a central configuration file. Dnsmasq supports static and dynamic DHCP leases | |
54 | and BOOTP/TFTP for network booting of diskless machines.") | |
55 | ;; Source files only say GPL2 and GPL3 are allowed. | |
56 | (license (list gpl2 gpl3)))) |