blob: de213d1643c9b28016e3cf656e6de08fcf83d5f6 (
plain)
1 # Description: A system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite
2 # URL: http://www.avahi.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: dbus gobject-introspection intltool libdaemon libevent
5
6 name=avahi
7 version=0.8
8 release=4
9 source=(https://github.com/lathiat/avahi/releases/download/v$version/$name-$version.tar.gz
10 avahi-0.8-ipv6_race_condition_fix-1.patch avahi-daemon.service reverse-move-to-run.patch)
11
12 build() {
13 cd $name-$version
14 patch -Np1 -i $SRC/reverse-move-to-run.patch
15 patch -Np1 -i $SRC/avahi-0.8-ipv6_race_condition_fix-1.patch
16
17 NOCONFIGURE=1 ./autogen.sh
18 ./configure --prefix=/usr \
19 --sysconfdir=/etc \
20 --localstatedir=/var \
21 --with-distro=none \
22 --with-autoipd-user=avahi \
23 --with-autoipd-group=avahi \
24 --with-avahi-priv-access-group=wheel \
25 --enable-compat-libdns_sd \
26 --disable-{gtk,gtk3,qt3,qt4,qt5,python,static} \
27 --disable-{pygobject,python-dbus,mono,mono-doc,nls}
28 make
29 make DESTDIR=$PKG install
30
31 ln -s avahi-compat-libdns_sd/dns_sd.h $PKG/usr/include/dns_sd.h
32 install -D -m 0755 $SRC/avahi-daemon.service $PKG/etc/rc.d/avahi-daemon
33 }
|