]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - avahi/avahi.nm
man-db: Drop dependency to db4(-devel)
[people/amarx/ipfire-3.x.git] / avahi / avahi.nm
CommitLineData
2767b51a 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
2767b51a
BS
4###############################################################################
5
802ea3af 6name = avahi
10189801
MT
7version = 0.6.31
8release = 1
2767b51a 9
802ea3af
MT
10groups = Networking/Zeroconf
11url = http://avahi.org/
12license = LGPLv2+
13summary = Local network service discovery
2767b51a 14
802ea3af 15description
6eb163c4
SS
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
f0b55c28 22 convenient.
802ea3af 23end
2767b51a 24
802ea3af 25source_dl = http://avahi.org/download/
2767b51a 26
802ea3af
MT
27build
28 requires
10189801 29 automake
802ea3af
MT
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
5aa11a47 42 systemd-units
802ea3af 43 end
2767b51a 44
10189801
MT
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
802ea3af 52 configure_options += \
802ea3af 53 --with-distro=none \
5aa11a47 54 --with-systemdsystemunitdir=%{unitdir} \
802ea3af
MT
55 --disable-gdbm \
56 --disable-qt3 \
57 --disable-qt4 \
58 --disable-gtk \
59 --disable-gtk3 \
60 --disable-pygtk \
61 --disable-mono
62end
38829578 63
802ea3af
MT
64packages
65 package %{name}
5aa11a47
SS
66 requires
67 libdaemon>=0.14
68 end
69
6eb163c4
SS
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
5aa11a47
SS
81 # Just search for new unit files that were just installed.
82 script postin
83 systemctl daemon-reload >/dev/null 2>&1 || :
6eb163c4
SS
84
85 # Reload dbus configuration.
86 systemctl reload dbus.service >/dev/null 2>&1 || :
5aa11a47
SS
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 || :
6eb163c4
SS
103
104 # Reload dbus configuration.
105 systemctl reload dbus.service >/dev/null 2>&1 || :
106
5aa11a47
SS
107 systemctl try-restart avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || :
108 end
802ea3af 109 end
1f9bc2f0 110
802ea3af
MT
111 package %{name}-devel
112 template DEVEL
113 end
1f9bc2f0 114
802ea3af
MT
115 package %{name}-libs
116 template LIBS
117 end
1f9bc2f0
MT
118
119 package %{name}-debuginfo
120 template DEBUGINFO
121 end
802ea3af 122end