1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/Zeroconf
11 url = https://avahi.org/
13 summary = Local network service discovery
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
25 source_dl = https://avahi.org/download/
35 libdaemon-devel >= 0.14
36 libevent-devel >= 2.0.21
43 python3-gobject3-devel
48 configure_options += \
50 --with-systemdsystemunitdir=%{unitdir} \
51 --disable-introspection \
64 prerequires += shadow-utils
66 # Create avahi user and group.
68 getent group avahi >/dev/null || groupadd -r avahi
69 getent passwd avahi >/dev/null || \
70 useradd -r -g avahi -d /run/avahi-daemon -s /sbin/nologin \
71 -c "Avahi mDNS/DNS-SD Stack" avahi
75 # Just search for new unit files that were just installed.
77 systemctl daemon-reload >/dev/null 2>&1 || :
79 # Reload dbus configuration.
80 systemctl reload dbus.service >/dev/null 2>&1 || :
83 # Disable the service that is to be removed and stop it if it is still running.
85 systemctl --no-reload disable avahi-daemon.service >/dev/null 2>&1 || :
86 systemctl stop avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || :
89 # Just tell systemd that unitfiles have been removed.
91 systemctl daemon-reload >/dev/null 2>&1 || :
94 # Try to restart the service if it is running.
96 systemctl daemon-reload >/dev/null 2>&1 || :
98 # Reload dbus configuration.
99 systemctl reload dbus.service >/dev/null 2>&1 || :
101 systemctl try-restart avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || :
105 package %{name}-devel
113 package %{name}-debuginfo