2019-06-11 23:45:44 +02:00
|
|
|
# Description: A system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite
|
|
|
|
# URL: http://www.avahi.org/
|
2019-06-17 00:47:02 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2020-02-20 21:15:06 +00:00
|
|
|
# Depends on: dbus gobject-introspection intltool libdaemon libevent
|
2019-06-11 23:45:44 +02:00
|
|
|
|
|
|
|
name=avahi
|
2020-02-20 21:15:06 +00:00
|
|
|
version=0.8
|
2021-02-19 19:08:16 +00:00
|
|
|
release=3
|
2021-02-19 22:25:44 +11:00
|
|
|
source=(https://github.com/lathiat/avahi/releases/download/v$version/$name-$version.tar.gz
|
2021-02-19 19:08:16 +00:00
|
|
|
avahi-0.8-ipv6_race_condition_fix-1.patch avahi-daemon.service reverse-move-to-run.patch)
|
2019-06-11 23:45:44 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2021-02-19 22:25:44 +11:00
|
|
|
patch -Np1 -i $SRC/reverse-move-to-run.patch
|
|
|
|
patch -Np1 -i $SRC/avahi-0.8-ipv6_race_condition_fix-1.patch
|
2021-02-19 19:08:16 +00:00
|
|
|
|
2019-06-21 09:30:25 +02:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2019-06-11 23:45:44 +02:00
|
|
|
./configure --prefix=/usr \
|
2019-06-17 00:47:02 +02:00
|
|
|
--sysconfdir=/etc \
|
2019-06-21 09:30:25 +02:00
|
|
|
--localstatedir=/var \
|
2019-06-11 23:45:44 +02:00
|
|
|
--with-distro=none \
|
2021-02-19 19:08:16 +00:00
|
|
|
--with-autoipd-user=avahi \
|
|
|
|
--with-autoipd-group=avahi \
|
|
|
|
--with-avahi-priv-access-group=wheel \
|
|
|
|
--enable-compat-libdns_sd \
|
|
|
|
--disable-{gtk,gtk3,qt3,qt4,qt5,python,static} \
|
|
|
|
--disable-{pygobject,python-dbus,mono,mono-doc,nls}
|
2019-06-11 23:45:44 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
ln -s avahi-compat-libdns_sd/dns_sd.h $PKG/usr/include/dns_sd.h
|
2021-02-19 19:08:16 +00:00
|
|
|
install -D -m 0755 $SRC/avahi-daemon.service $PKG/etc/rc.d/avahi-daemon
|
|
|
|
mkdir $PKG/var/run/avahi
|
2019-06-11 23:45:44 +02:00
|
|
|
}
|