summaryrefslogtreecommitdiff
path: root/gnu/packages/avahi.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-03-05 20:26:24 +0100
committerLudovic Courtès <ludo@gnu.org>2013-03-05 20:26:24 +0100
commitc50cbfd61a540e120b922fa16bf6ab8533c37b0b (patch)
tree40afc7ab30e49f56baebd94e102e0f449ca1b9a9 /gnu/packages/avahi.scm
parentea7127b9b76449d4379561f39bd5d2964778da68 (diff)
gnu: Add Avahi.
* gnu/packages/avahi.scm: New file. * Makefile.am (MODULES): Add it.
Diffstat (limited to 'gnu/packages/avahi.scm')
-rw-r--r--gnu/packages/avahi.scm77
1 files changed, 77 insertions, 0 deletions
diff --git a/gnu/packages/avahi.scm b/gnu/packages/avahi.scm
new file mode 100644
index 00000000000..f7ce9083513
--- /dev/null
+++ b/gnu/packages/avahi.scm
@@ -0,0 +1,77 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
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 avahi)
20 #:use-module ((guix licenses) #:select (lgpl2.1+))
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages gdbm)
25 #:use-module (gnu packages libdaemon)
26 #:use-module (gnu packages pkg-config)
27 #:use-module (gnu packages glib)
28 #:use-module (gnu packages xml))
29
30(define-public avahi
31 (package
32 (name "avahi")
33 (version "0.6.31")
34 (home-page "http://avahi.org")
35 (source (origin
36 (method url-fetch)
37 (uri (string-append home-page "/download/avahi-"
38 version ".tar.gz"))
39 (sha256
40 (base32
41 "0j5b5ld6bjyh3qhd2nw0jb84znq0wqai7fsrdzg7bpg24jdp2wl3"))))
42 (build-system gnu-build-system)
43 (arguments
44 '(#:configure-flags '("--with-distro=none"
45 "--disable-python"
46 "--disable-mono"
47 "--disable-doxygen-doc"
48 "--disable-xmltoman"
49 "--enable-tests"
50 "--disable-qt3" "--disable-qt4"
51 "--disable-gtk" "--disable-gtk3")
52 #:phases (alist-cons-before
53 'configure 'set-perl-path
54 (lambda* (#:key inputs #:allow-other-keys)
55 ;; FIXME: Remove this phase when proper support for search
56 ;; paths is available.
57 (let ((xml-parser (assoc-ref inputs
58 "intltool/perl-xml-parser")))
59 (setenv "PERL5LIB"
60 (string-append xml-parser
61 "/lib/perl5/site_perl"))
62 #t))
63 %standard-phases)))
64 (inputs
65 `(("expat" ,expat)
66 ("glib" ,glib)
67 ("dbus" ,dbus)
68 ("libdaemon" ,libdaemon)
69 ("intltool" ,intltool)
70 ("pkg-config" ,pkg-config)
71 ("gdbm" ,gdbm)))
72 (synopsis "Avahi, an mDNS/DNS-SD implementation")
73 (description
74 "Avahi is a system which facilitates service discovery on a local
75network. It is an implementation of the mDNS (for \"Multicast DNS\") and
76DNS-SD (for \"DNS-Based Service Discovery\") protocols.")
77 (license lgpl2.1+)))