1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
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 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)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages gdbm)
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))
36 (home-page "http://avahi.org")
39 (uri (string-append home-page "/download/avahi-"
43 "0j5b5ld6bjyh3qhd2nw0jb84znq0wqai7fsrdzg7bpg24jdp2wl3"))
44 (patches (list (search-patch "avahi-localstatedir.patch")))))
45 (build-system gnu-build-system)
47 '(#:configure-flags '("--with-distro=none"
48 "--localstatedir=/var" ; for the DBus socket
51 "--disable-doxygen-doc"
54 "--disable-qt3" "--disable-qt4"
55 "--disable-gtk" "--disable-gtk3")))
61 ("libdaemon" ,libdaemon)))
63 `(("intltool" ,intltool)
65 ("pkg-config" ,pkg-config)))
66 (synopsis "Implementation of mDNS/DNS-SD protocols")
68 "Avahi is a system which facilitates service discovery on a local
69 network. It is an implementation of the mDNS (for \"Multicast DNS\") and
70 DNS-SD (for \"DNS-Based Service Discovery\") protocols.")
73 (define-public nss-mdns
81 "mirror://debian/pool/main/n/nss-mdns/nss-mdns_"
82 version ".orig.tar.gz")
83 "http://pkgs.fedoraproject.org/repo/pkgs/nss-mdns/nss-mdns-0.10.tar.gz/03938f17646efbb50aa70ba5f99f51d7/nss-mdns-0.10.tar.gz"
85 ;; This used to be the canonical URL but it vanished.
86 ;; See <http://bugs.gnu.org/18704>.
88 ;; "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-"
93 "0vgs6j0qsl0mwzh5a0m0bykr7x6bx79vnbyn0r3q289rghp3qs0y"))
94 (file-name (string-append name "-" version ".tar.gz"))))
95 (build-system gnu-build-system)
97 ;; XXX: Stale URL, missing replacement. See <http://bugs.gnu.org/18704>.
98 (home-page "http://0pointer.de/lennart/projects/nss-mdns/")
100 (synopsis "The mDNS Name Service Switch (NSS) plug-in")
102 "Nss-mdns is a plug-in for the Name Service Switch (NSS) functionality
103 of the GNU C Library, providing host name resolution via Multicast DNS (mDNS).
104 It allows for name resolution by programs in the ad-hoc mDNS domain