]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - avahi/avahi.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/arne_f/ipfire-3.x.git] / avahi / avahi.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = avahi
7 version = 0.6.30
8 release = 3
9
10 groups = Networking/Zeroconf
11 url = http://avahi.org/
12 license = LGPLv2+
13 summary = Local network service discovery
14
15 description
16 Avahi is a system which facilitates service discovery on \
17 a local network -- this means that you can plug your laptop or \
18 computer into a network and instantly be able to view other people who \
19 you can chat with, find printers to print to or find files being \
20 shared. This kind of technology is already found in MacOS X (branded \
21 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') and is very \
22 convenient.
23 end
24
25 source_dl = http://avahi.org/download/
26
27 build
28 requires
29 dbus-devel
30 dbus-glib-devel
31 expat-devel
32 gcc-c++
33 gettext
34 libdaemon-devel>=0.14
35 intltool
36 perl
37 perl-XML-Parser
38 pkg-config
39 python-devel
40 python-dbus
41 systemd-units
42 end
43
44 configure_options += \
45 --with-distro=none \
46 --with-systemdsystemunitdir=%{unitdir} \
47 --disable-gdbm \
48 --disable-qt3 \
49 --disable-qt4 \
50 --disable-gtk \
51 --disable-gtk3 \
52 --disable-pygtk \
53 --disable-mono
54 end
55
56 packages
57 package %{name}
58 requires
59 libdaemon>=0.14
60 end
61
62 # Just search for new unit files that were just installed.
63 script postin
64 systemctl daemon-reload >/dev/null 2>&1 || :
65 end
66
67 # Disable the service that is to be removed and stop it if it is still running.
68 script preun
69 systemctl --no-reload disable avahi-daemon.service >/dev/null 2>&1 || :
70 systemctl stop avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || :
71 end
72
73 # Just tell systemd that unitfiles have been removed.
74 script postun
75 systemctl daemon-reload >/dev/null 2>&1 || :
76 end
77
78 # Try to restart the service if it is running.
79 script postup
80 systemctl daemon-reload >/dev/null 2>&1 || :
81 systemctl try-restart avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || :
82 end
83 end
84
85 package %{name}-devel
86 template DEVEL
87 end
88
89 package %{name}-libs
90 template LIBS
91 end
92
93 package %{name}-debuginfo
94 template DEBUGINFO
95 end
96 end