1 # Template file for 'avahi'
5 build_style=gnu-configure
6 configure_args="--disable-qt3 --disable-qt4 --disable-mono --disable-monodoc
7 --disable-doxygen-doc --enable-compat-libdns_sd --enable-compat-howl
8 --with-xml=expat --with-avahi-user=avahi --with-avahi-group=avahi
9 --with-avahi-priv-access-group=network --with-autoipd-user=avahi
10 --with-autoipd-group=avahi --with-distro=none --disable-xmltoman
11 --disable-static ssp_cv_lib=no --enable-python --disable-pygtk
12 --disable-glib --disable-python-dbus --disable-gobject --disable-gtk
13 --disable-gtk3 --disable-dbm --disable-introspection --sbindir=/usr/bin
15 short_desc="Multicast DNS Service Discovery"
16 maintainer="Juan RP <xtraeme@voidlinux.eu>"
17 license="LGPL-2.1-or-later"
18 homepage="https://github.com/lathiat/avahi"
19 distfiles="${homepage}/releases/download/v${version}/avahi-${version}.tar.gz"
20 checksum=57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804
22 hostmakedepends="pkg-config intltool python"
23 makedepends="dbus-devel libcap-devel libdaemon-devel gdbm-devel"
25 /etc/avahi/services/ssh.service
26 /etc/avahi/services/sftp-ssh.service
27 /etc/avahi/avahi-daemon.conf
29 /etc/avahi/avahi-dnsconfd.action"
30 system_accounts="avahi:23"
32 if [ "$CROSS_BUILD" ]; then
33 hostmakedepends+=" automake libtool glib-devel"
40 # Switch to /run to not depend on /var/run being a symlink.
41 sed -e 's,\(avahi_runtime_dir=\).*,\1\"/run\",' -i ${wrksrc}/configure
44 rm -rf ${DESTDIR}/usr/lib/python*
45 # Enable 'disallow_other_stacks' option by default.
46 sed -e 's,\#\(disallow-other-stacks\).*,\1=yes,' -i ${DESTDIR}/etc/avahi/avahi-daemon.conf
47 # Set 'enable-dbus=warn' option by default to not require dbus.
48 sed -e 's,\#\(enable-dbus\).*,\1=warn,' -i ${DESTDIR}/etc/avahi/avahi-daemon.conf
52 avahi-autoipd_package() {
54 short_desc="Avahi IPv4LL network address configuration daemon"
56 vmove usr/bin/avahi-autoipd
57 vmove "usr/share/man/man8/avahi-autoipd*"
58 vmove etc/avahi/avahi-autoipd.action
61 avahi-compat-libs-devel_package() {
62 depends="avahi-libs-devel-${version}_${revision} avahi-compat-libs-${version}_${revision}"
63 short_desc="Avahi compat libraries - development files"
65 vmove "usr/include/avahi-compat*"
66 vmove "usr/lib/pkgconfig/avahi-compat*"
67 vmove usr/lib/libhowl.so
68 vmove usr/lib/libdns_sd.so
71 avahi-compat-libs_package() {
72 short_desc="Avahi compatiblity shared libraries"
74 vmove "usr/lib/libhowl.so.*"
75 vmove "usr/lib/libdns_sd.so.*"
78 avahi-libs-devel_package() {
79 depends="dbus-devel avahi-libs-${version}_${revision}"
80 short_desc="Avahi core libraries - development files"
82 for f in common client core; do
83 vmove usr/include/avahi-${f}
85 vmove usr/lib/pkgconfig/avahi-core.pc
86 vmove usr/lib/pkgconfig/avahi-client.pc
87 vmove usr/lib/libavahi-client.so
88 vmove usr/lib/libavahi-core.so
89 vmove usr/lib/libavahi-common.so
92 avahi-libs_package() {
93 short_desc="Avahi shared libraries"
95 vmove "usr/lib/libavahi-client.so.*"
96 vmove "usr/lib/libavahi-core.so.*"
97 vmove "usr/lib/libavahi-common.so.*"
100 avahi-utils_package() {
101 short_desc="Avahi browsing, publishing and discovery utilities"
103 vmove usr/bin/avahi-browse*
104 vmove usr/bin/avahi-publish*
105 vmove usr/bin/avahi-resolv*
106 vmove usr/share/man/man1