107 lines
3.4 KiB
Bash
107 lines
3.4 KiB
Bash
# Template file for 'avahi'
|
|
pkgname=avahi
|
|
version=0.6.31
|
|
revision=20
|
|
build_style=gnu-configure
|
|
configure_args="--disable-qt3 --disable-qt4 --disable-mono --disable-monodoc
|
|
--disable-doxygen-doc --enable-compat-libdns_sd --enable-compat-howl
|
|
--with-xml=expat --with-avahi-user=avahi --with-avahi-group=avahi
|
|
--with-avahi-priv-access-group=network --with-autoipd-user=avahi
|
|
--with-autoipd-group=avahi --with-distro=none --disable-xmltoman
|
|
--disable-static ssp_cv_lib=no --disable-python --disable-pygtk
|
|
--disable-glib --disable-gobject --disable-gtk --disable-gtk3
|
|
--disable-dbm --disable-introspection --sbindir=/usr/bin"
|
|
short_desc="Multicast DNS Service Discovery"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-2.1"
|
|
homepage="http://www.avahi.org"
|
|
#distfiles="$homepage/download/avahi-$version.tar.gz"
|
|
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/avahi/avahi-${version}.tar.gz/2f22745b8f7368ad5a0a3fddac343f2d/avahi-${version}.tar.gz"
|
|
checksum=8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48
|
|
|
|
build_options="systemd"
|
|
hostmakedepends="pkg-config intltool"
|
|
makedepends="dbus-devel libcap-devel libdaemon-devel gdbm-devel $(vopt_if systemd systemd-devel)"
|
|
depends="dbus"
|
|
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"
|
|
system_accounts="avahi:23"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" libtool glib-devel"
|
|
pre_configure() {
|
|
libtoolize -f
|
|
}
|
|
fi
|
|
|
|
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
|
|
}
|
|
post_install() {
|
|
# Enable 'disallow_other_stacks' option by default.
|
|
sed -e 's,\#\(disallow-other-stacks\).*,\1=yes,' -i ${DESTDIR}/etc/avahi/avahi-daemon.conf
|
|
vsv avahi-daemon
|
|
}
|
|
|
|
avahi-autoipd_package() {
|
|
depends="net-tools"
|
|
short_desc="Avahi IPv4LL network address configuration daemon"
|
|
pkg_install() {
|
|
vmove usr/bin/avahi-autoipd
|
|
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}"
|
|
short_desc="Avahi compat libraries - development files"
|
|
pkg_install() {
|
|
vmove "usr/include/avahi-compat*"
|
|
vmove "usr/lib/pkgconfig/avahi-compat*"
|
|
vmove usr/lib/libhowl.so
|
|
vmove usr/lib/libdns_sd.so
|
|
}
|
|
}
|
|
avahi-compat-libs_package() {
|
|
short_desc="Avahi compatiblity shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/libhowl.so.*"
|
|
vmove "usr/lib/libdns_sd.so.*"
|
|
}
|
|
}
|
|
avahi-libs-devel_package() {
|
|
depends="dbus-devel avahi-libs-${version}_${revision}"
|
|
short_desc="Avahi core libraries - development files"
|
|
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
|
|
vmove usr/lib/libavahi-client.so
|
|
vmove usr/lib/libavahi-core.so
|
|
vmove usr/lib/libavahi-common.so
|
|
}
|
|
}
|
|
avahi-libs_package() {
|
|
short_desc="Avahi shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/libavahi-client.so.*"
|
|
vmove "usr/lib/libavahi-core.so.*"
|
|
vmove "usr/lib/libavahi-common.so.*"
|
|
}
|
|
}
|
|
avahi-utils_package() {
|
|
short_desc="Avahi browsing, publishing and discovery utilities"
|
|
pkg_install() {
|
|
vmove usr/bin/avahi-browse*
|
|
vmove usr/bin/avahi-publish*
|
|
vmove usr/bin/avahi-resolv*
|
|
vmove usr/share/man/man1
|
|
}
|
|
}
|