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
|
2021-12-14 11:16:56 +01:00
|
|
|
# URL: https://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-06-22 20:14:18 +00:00
|
|
|
release=4
|
2021-02-19 22:25:44 +11:00
|
|
|
source=(https://github.com/lathiat/avahi/releases/download/v$version/$name-$version.tar.gz
|
2022-02-28 15:19:56 +01:00
|
|
|
avahi-0.8-ipv6_race_condition_fix-1.patch
|
|
|
|
0001-Fix-avahi-browse-Invalid-service-type.patch
|
|
|
|
avahi-daemon.service)
|
2019-06-11 23:45:44 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2022-02-28 15:19:56 +01:00
|
|
|
patch -Np1 -i $SRC/0001-Fix-avahi-browse-Invalid-service-type.patch
|
|
|
|
#patch -Np1 -i $SRC/282.patch
|
2021-02-19 22:25:44 +11:00
|
|
|
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 \
|
2021-12-14 11:16:56 +01:00
|
|
|
--runstatedir=/run \
|
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
|
2019-06-11 23:45:44 +02:00
|
|
|
}
|