2005-12-12 14:45:48 +00:00
|
|
|
DESCRIPTION = "Avahi implements the DNS-SD over Multicast DNS"
|
2006-05-22 22:15:25 +00:00
|
|
|
SECTION = "network"
|
|
|
|
PRIORITY = "optional"
|
|
|
|
AUTHOR = "Lennart Poettering <lennart@poettering.net>"
|
2006-01-19 21:55:53 +00:00
|
|
|
HOMEPAGE = "http://avahi.org"
|
2006-05-22 22:15:25 +00:00
|
|
|
MAINTAINER = "Philipp Zabel <philipp.zabel@gmail.com>"
|
2005-12-12 14:45:48 +00:00
|
|
|
LICENSE= "GPL"
|
2006-05-22 22:15:25 +00:00
|
|
|
|
2006-03-21 11:46:57 +00:00
|
|
|
DEPENDS = "expat libdaemon dbus"
|
2005-12-12 14:45:48 +00:00
|
|
|
RRECOMMENDS = "libnss-mdns"
|
|
|
|
|
2006-01-19 21:55:53 +00:00
|
|
|
SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz"
|
2005-12-12 14:45:48 +00:00
|
|
|
|
2006-01-19 21:55:53 +00:00
|
|
|
PACKAGES = "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib avahi-dev avahi-doc avahi-utils"
|
2005-12-12 14:45:48 +00:00
|
|
|
|
|
|
|
FILES_libavahi-common = "${libdir}/libavahi-common.so.*"
|
|
|
|
FILES_libavahi-core= "${libdir}/libavahi-core.so.*"
|
|
|
|
FILES_avahi-daemon = "${sbindir}/avahi-daemon \
|
|
|
|
${sysconfdir}/avahi/avahi-daemon.conf \
|
2006-05-22 22:15:25 +00:00
|
|
|
${sysconfdir}/avahi/hosts \
|
2005-12-12 14:45:48 +00:00
|
|
|
${sysconfdir}/avahi/services \
|
|
|
|
${sysconfdir}/dbus-1 \
|
|
|
|
${sysconfdir}/init.d/avahi-daemon \
|
|
|
|
${datadir}/avahi/introspection/*.introspect \
|
|
|
|
${datadir}/avahi/avahi-service.dtd \
|
|
|
|
${datadir}/avahi/service-types"
|
|
|
|
FILES_libavahi-client = "${libdir}/libavahi-client.so.*"
|
|
|
|
FILES_avahi-dnsconfd = "${sbindir}/avahi-dnsconfd \
|
|
|
|
${sysconfdir}/avahi/avahi-dnsconfd.action \
|
|
|
|
${sysconfdir}/init.d/avahi-dnsconfd"
|
|
|
|
FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*"
|
2006-01-19 21:55:53 +00:00
|
|
|
FILES_avahi-utils = "${bindir}/avahi-*"
|
2005-12-12 14:45:48 +00:00
|
|
|
|
|
|
|
CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf"
|
|
|
|
|
|
|
|
EXTRA_OECONF = "--with-distro=debian --disable-gdbm --disable-gtk --disable-mono --disable-monodoc --disable-qt3 --disable-qt4 --disable-python"
|
2006-05-22 22:15:25 +00:00
|
|
|
inherit autotools pkgconfig update-rc.d
|
2005-12-12 14:45:48 +00:00
|
|
|
|
|
|
|
INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd"
|
|
|
|
INITSCRIPT_NAME_avahi-daemon = "avahi-daemon"
|
|
|
|
INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
|
|
|
|
INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd"
|
|
|
|
INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"
|
|
|
|
|
|
|
|
pkg_postinst_avahi-daemon () {
|
2006-05-22 22:15:25 +00:00
|
|
|
if [ "x$D" != "x" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2005-12-12 14:45:48 +00:00
|
|
|
grep avahi /etc/group || addgroup avahi
|
|
|
|
grep avahi /etc/passwd || adduser --disabled-password --system --home /var/run/avahi-daemon --no-create-home avahi --ingroup avahi -g Avahi
|
|
|
|
/etc/init.d/dbus-1 force-reload
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm_avahi-daemon () {
|
|
|
|
deluser avahi || true
|
|
|
|
delgroup avahi || true
|
|
|
|
}
|