Commit | Line | Data |
---|---|---|
c50cbfd6 | 1 | ;;; GNU Guix --- Functional package management for GNU |
69876158 | 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
05463931 | 3 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
c50cbfd6 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 avahi) | |
21 | #:use-module ((guix licenses) #:select (lgpl2.1+)) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix download) | |
24 | #:use-module (guix build-system gnu) | |
8eaa8a3b | 25 | #:use-module (gnu packages) |
b416aadf | 26 | #:use-module (gnu packages databases) |
c50cbfd6 LC |
27 | #:use-module (gnu packages libdaemon) |
28 | #:use-module (gnu packages pkg-config) | |
29 | #:use-module (gnu packages glib) | |
30 | #:use-module (gnu packages xml)) | |
31 | ||
32 | (define-public avahi | |
33 | (package | |
34 | (name "avahi") | |
35 | (version "0.6.31") | |
36 | (home-page "http://avahi.org") | |
37 | (source (origin | |
38 | (method url-fetch) | |
39 | (uri (string-append home-page "/download/avahi-" | |
40 | version ".tar.gz")) | |
41 | (sha256 | |
42 | (base32 | |
01eafd38 LC |
43 | "0j5b5ld6bjyh3qhd2nw0jb84znq0wqai7fsrdzg7bpg24jdp2wl3")) |
44 | (patches (list (search-patch "avahi-localstatedir.patch"))))) | |
c50cbfd6 LC |
45 | (build-system gnu-build-system) |
46 | (arguments | |
47 | '(#:configure-flags '("--with-distro=none" | |
8eaa8a3b | 48 | "--localstatedir=/var" ; for the DBus socket |
c50cbfd6 LC |
49 | "--disable-python" |
50 | "--disable-mono" | |
51 | "--disable-doxygen-doc" | |
52 | "--disable-xmltoman" | |
53 | "--enable-tests" | |
54 | "--disable-qt3" "--disable-qt4" | |
f88ee3ad DT |
55 | "--disable-gtk" "--disable-gtk3" |
56 | "--enable-compat-libdns_sd"))) | |
c50cbfd6 LC |
57 | (inputs |
58 | `(("expat" ,expat) | |
59 | ("glib" ,glib) | |
60 | ("dbus" ,dbus) | |
c4c4cc05 JD |
61 | ("gdbm" ,gdbm) |
62 | ("libdaemon" ,libdaemon))) | |
63 | (native-inputs | |
64 | `(("intltool" ,intltool) | |
426adbe8 | 65 | ("glib" ,glib "bin") |
c4c4cc05 | 66 | ("pkg-config" ,pkg-config))) |
35b9e423 | 67 | (synopsis "Implementation of mDNS/DNS-SD protocols") |
c50cbfd6 LC |
68 | (description |
69 | "Avahi is a system which facilitates service discovery on a local | |
70 | network. It is an implementation of the mDNS (for \"Multicast DNS\") and | |
71 | DNS-SD (for \"DNS-Based Service Discovery\") protocols.") | |
72 | (license lgpl2.1+))) | |
00b7776c LC |
73 | |
74 | (define-public nss-mdns | |
75 | (package | |
76 | (name "nss-mdns") | |
77 | (version "0.10") | |
78 | (source (origin | |
79 | (method url-fetch) | |
05463931 MW |
80 | (uri (list |
81 | (string-append | |
82 | "mirror://debian/pool/main/n/nss-mdns/nss-mdns_" | |
83 | version ".orig.tar.gz") | |
84 | "http://pkgs.fedoraproject.org/repo/pkgs/nss-mdns/nss-mdns-0.10.tar.gz/03938f17646efbb50aa70ba5f99f51d7/nss-mdns-0.10.tar.gz" | |
85 | ||
86 | ;; This used to be the canonical URL but it vanished. | |
87 | ;; See <http://bugs.gnu.org/18704>. | |
88 | ;; (string-append | |
89 | ;; "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-" | |
90 | ;; version ".tar.gz") | |
91 | )) | |
00b7776c LC |
92 | (sha256 |
93 | (base32 | |
05463931 MW |
94 | "0vgs6j0qsl0mwzh5a0m0bykr7x6bx79vnbyn0r3q289rghp3qs0y")) |
95 | (file-name (string-append name "-" version ".tar.gz")))) | |
00b7776c | 96 | (build-system gnu-build-system) |
69876158 LC |
97 | (arguments |
98 | ;; The Avahi daemon socket is expected by src/Makefile.am to be at | |
99 | ;; "$(localstatedir)/run/avahi-daemon/socket", so set $(localstatedir) | |
100 | ;; appropriately. | |
60a2d27e | 101 | '(#:configure-flags '("--localstatedir=/var"))) |
05463931 MW |
102 | |
103 | ;; XXX: Stale URL, missing replacement. See <http://bugs.gnu.org/18704>. | |
00b7776c | 104 | (home-page "http://0pointer.de/lennart/projects/nss-mdns/") |
05463931 | 105 | |
00b7776c LC |
106 | (synopsis "The mDNS Name Service Switch (NSS) plug-in") |
107 | (description | |
35b9e423 | 108 | "Nss-mdns is a plug-in for the Name Service Switch (NSS) functionality |
00b7776c LC |
109 | of the GNU C Library, providing host name resolution via Multicast DNS (mDNS). |
110 | It allows for name resolution by programs in the ad-hoc mDNS domain | |
111 | '.local'.") | |
112 | (license lgpl2.1+))) |