2009-12-08 10:51:53 +01:00
|
|
|
# Template file for 'avahi'
|
|
|
|
pkgname=avahi
|
2016-02-18 06:07:30 +01:00
|
|
|
version=0.6.32
|
2016-04-20 13:02:11 +02:00
|
|
|
revision=3
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-07-04 10:06:51 +02:00
|
|
|
configure_args="--disable-qt3 --disable-qt4 --disable-mono --disable-monodoc
|
2012-10-10 09:39:18 +02:00
|
|
|
--disable-doxygen-doc --enable-compat-libdns_sd --enable-compat-howl
|
|
|
|
--with-xml=expat --with-avahi-user=avahi --with-avahi-group=avahi
|
2013-02-25 20:18:44 +01:00
|
|
|
--with-avahi-priv-access-group=network --with-autoipd-user=avahi
|
2012-10-10 09:39:18 +02:00
|
|
|
--with-autoipd-group=avahi --with-distro=none --disable-xmltoman
|
2015-08-02 07:22:03 +02:00
|
|
|
--disable-static ssp_cv_lib=no --enable-python --disable-pygtk
|
|
|
|
--disable-glib --disable-python-dbus --disable-gobject --disable-gtk
|
|
|
|
--disable-gtk3 --disable-dbm --disable-introspection --sbindir=/usr/bin"
|
2009-12-08 10:51:53 +01:00
|
|
|
short_desc="Multicast DNS Service Discovery"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-11-10 12:57:15 +01:00
|
|
|
license="LGPL-2.1"
|
2016-02-18 06:07:30 +01:00
|
|
|
homepage="https://github.com/lathiat/avahi"
|
|
|
|
distfiles="${homepage}/releases/download/v${version}/avahi-${version}.tar.gz"
|
|
|
|
checksum=d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454
|
2009-12-08 10:51:53 +01:00
|
|
|
|
2015-08-02 07:22:03 +02:00
|
|
|
hostmakedepends="pkg-config intltool python"
|
2015-06-07 22:05:15 +02:00
|
|
|
makedepends="dbus-devel libcap-devel libdaemon-devel gdbm-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="
|
|
|
|
/etc/avahi/services/ssh.service
|
|
|
|
/etc/avahi/services/sftp-ssh.service
|
|
|
|
/etc/avahi/avahi-daemon.conf
|
|
|
|
/etc/avahi/hosts
|
|
|
|
/etc/avahi/avahi-dnsconfd.action"
|
2014-07-30 10:47:09 +02:00
|
|
|
system_accounts="avahi:23"
|
2014-08-20 11:55:17 +02:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-10-25 15:21:16 +01:00
|
|
|
hostmakedepends+=" automake libtool glib-devel"
|
2013-02-16 16:20:49 +01:00
|
|
|
pre_configure() {
|
2015-10-25 15:21:16 +01:00
|
|
|
autoreconf -if
|
2013-02-16 16:20:49 +01:00
|
|
|
}
|
|
|
|
fi
|
2013-04-12 08:55:23 +02:00
|
|
|
|
2013-10-09 22:54:45 +02:00
|
|
|
post_extract() {
|
|
|
|
# Switch to /run to not depend on /var/run being a symlink.
|
|
|
|
sed -e 's,\(avahi_runtime_dir=\).*,\1\"/run\",' -i ${wrksrc}/configure
|
|
|
|
}
|
2013-10-10 00:01:17 +02:00
|
|
|
post_install() {
|
2015-08-02 07:22:03 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/python*
|
2013-10-10 00:01:17 +02:00
|
|
|
# Enable 'disallow_other_stacks' option by default.
|
|
|
|
sed -e 's,\#\(disallow-other-stacks\).*,\1=yes,' -i ${DESTDIR}/etc/avahi/avahi-daemon.conf
|
2015-11-04 18:57:11 +01:00
|
|
|
# Set 'enable-dbus=warn' option by default to not require dbus.
|
|
|
|
sed -e 's,\#\(enable-dbus\).*,\1=warn,' -i ${DESTDIR}/etc/avahi/avahi-daemon.conf
|
2014-10-13 12:47:07 +02:00
|
|
|
vsv avahi-daemon
|
2013-10-10 00:01:17 +02:00
|
|
|
}
|
|
|
|
|
2013-04-12 08:55:23 +02:00
|
|
|
avahi-autoipd_package() {
|
|
|
|
depends="net-tools"
|
|
|
|
short_desc="Avahi IPv4LL network address configuration daemon"
|
|
|
|
pkg_install() {
|
2015-06-02 07:44:30 +02:00
|
|
|
vmove usr/bin/avahi-autoipd
|
2013-04-12 08:55:23 +02:00
|
|
|
vmove "usr/share/man/man8/avahi-autoipd*"
|
|
|
|
vmove etc/avahi/avahi-autoipd.action
|
|
|
|
}
|
|
|
|
}
|
|
|
|
avahi-compat-libs-devel_package() {
|
|
|
|
depends="avahi-libs-devel-${version}_${revision} avahi-compat-libs-${version}_${revision}"
|
2013-10-09 22:54:45 +02:00
|
|
|
short_desc="Avahi compat libraries - development files"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/include/avahi-compat*"
|
|
|
|
vmove "usr/lib/pkgconfig/avahi-compat*"
|
2013-10-09 22:54:45 +02:00
|
|
|
vmove usr/lib/libhowl.so
|
|
|
|
vmove usr/lib/libdns_sd.so
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|
2013-04-13 13:28:05 +02:00
|
|
|
avahi-compat-libs_package() {
|
|
|
|
short_desc="Avahi compatiblity shared libraries"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
2013-10-09 22:54:45 +02:00
|
|
|
vmove "usr/lib/libhowl.so.*"
|
|
|
|
vmove "usr/lib/libdns_sd.so.*"
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
avahi-libs-devel_package() {
|
|
|
|
depends="dbus-devel avahi-libs-${version}_${revision}"
|
2013-10-09 22:54:45 +02:00
|
|
|
short_desc="Avahi core libraries - development files"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
for f in common client core; do
|
|
|
|
vmove usr/include/avahi-${f}
|
|
|
|
done
|
|
|
|
vmove usr/lib/pkgconfig/avahi-core.pc
|
|
|
|
vmove usr/lib/pkgconfig/avahi-client.pc
|
2013-10-09 22:54:45 +02:00
|
|
|
vmove usr/lib/libavahi-client.so
|
|
|
|
vmove usr/lib/libavahi-core.so
|
|
|
|
vmove usr/lib/libavahi-common.so
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|
2013-04-13 13:28:05 +02:00
|
|
|
avahi-libs_package() {
|
|
|
|
short_desc="Avahi shared libraries"
|
|
|
|
pkg_install() {
|
2013-10-09 22:54:45 +02:00
|
|
|
vmove "usr/lib/libavahi-client.so.*"
|
|
|
|
vmove "usr/lib/libavahi-core.so.*"
|
|
|
|
vmove "usr/lib/libavahi-common.so.*"
|
2013-04-13 13:28:05 +02:00
|
|
|
}
|
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
avahi-utils_package() {
|
|
|
|
short_desc="Avahi browsing, publishing and discovery utilities"
|
|
|
|
pkg_install() {
|
2015-06-02 07:44:30 +02:00
|
|
|
vmove usr/bin/avahi-browse*
|
|
|
|
vmove usr/bin/avahi-publish*
|
|
|
|
vmove usr/bin/avahi-resolv*
|
2013-04-13 13:28:05 +02:00
|
|
|
vmove usr/share/man/man1
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|