]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - avahi/avahi.nm
util-linux: Update to 2.27
[people/amarx/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.31
8 release = 1
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 automake
30 dbus-devel
31 dbus-glib-devel
32 expat-devel
33 gcc-c++
34 gettext
35 libdaemon-devel>=0.14
36 intltool
37 perl
38 perl-XML-Parser
39 pkg-config
40 python-devel
41 python-dbus
42 systemd-units
43 end
44
45 prepare_cmds
46 # for aarch64
47 for i in $(find . -name config.guess -or -name config.sub); do
48 cp -vf %{datadir}/automake-*/config.{guess,sub} $(dirname ${i})
49 done
50 end
51
52 configure_options += \
53 --with-distro=none \
54 --with-systemdsystemunitdir=%{unitdir} \
55 --disable-gdbm \
56 --disable-qt3 \
57 --disable-qt4 \
58 --disable-gtk \
59 --disable-gtk3 \
60 --disable-pygtk \
61 --disable-mono
62 end
63
64 packages
65 package %{name}
66 requires
67 libdaemon>=0.14
68 end
69
70 prerequires += shadow-utils
71
72 # Create avahi user and group.
73 script prein
74 getent group avahi >/dev/null || groupadd -r avahi
75 getent passwd avahi >/dev/null || \
76 useradd -r -g avahi -d /run/avahi-daemon -s /sbin/nologin \
77 -c "Avahi mDNS/DNS-SD Stack" avahi
78 exit 0
79 end
80
81 # Just search for new unit files that were just installed.
82 script postin
83 systemctl daemon-reload >/dev/null 2>&1 || :
84
85 # Reload dbus configuration.
86 systemctl reload dbus.service >/dev/null 2>&1 || :
87 end
88
89 # Disable the service that is to be removed and stop it if it is still running.
90 script preun
91 systemctl --no-reload disable avahi-daemon.service >/dev/null 2>&1 || :
92 systemctl stop avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || :
93 end
94
95 # Just tell systemd that unitfiles have been removed.
96 script postun
97 systemctl daemon-reload >/dev/null 2>&1 || :
98 end
99
100 # Try to restart the service if it is running.
101 script postup
102 systemctl daemon-reload >/dev/null 2>&1 || :
103
104 # Reload dbus configuration.
105 systemctl reload dbus.service >/dev/null 2>&1 || :
106
107 systemctl try-restart avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || :
108 end
109 end
110
111 package %{name}-devel
112 template DEVEL
113 end
114
115 package %{name}-libs
116 template LIBS
117 end
118
119 package %{name}-debuginfo
120 template DEBUGINFO
121 end
122 end