diff options
Diffstat (limited to 'packages/avahi')
-rw-r--r-- | packages/avahi/avahi.inc | 41 | ||||
-rw-r--r-- | packages/avahi/avahi_0.6.18.bb | 1 | ||||
-rw-r--r-- | packages/avahi/avahi_0.6.19.bb | 3 | ||||
-rw-r--r-- | packages/avahi/avahi_0.6.20.bb | 3 | ||||
-rw-r--r-- | packages/avahi/files/.mtn2git_empty | 0 | ||||
-rwxr-xr-x | packages/avahi/files/00avahi-autoipd | 10 | ||||
-rwxr-xr-x | packages/avahi/files/99avahi-autoipd | 10 |
7 files changed, 61 insertions, 7 deletions
diff --git a/packages/avahi/avahi.inc b/packages/avahi/avahi.inc index adb1356906..2171cbd6d5 100644 --- a/packages/avahi/avahi.inc +++ b/packages/avahi/avahi.inc @@ -4,12 +4,17 @@ HOMEPAGE = "http://avahi.org" SECTION = "network" PRIORITY = "optional" LICENSE = "GPL" +PR="r4" -DEPENDS = "expat libdaemon dbus" -RRECOMMENDS = "libnss-mdns" -RRECOMMENDS_avahi-daemon = "libnss-mdns" +DEPENDS = "expat libdaemon dbus glib-2.0" -SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz" +# uclibc has no nss +RRECOMMENDS_append_linux = "libnss-mdns" +RRECOMMENDS_avahi-daemon_append_linux = "libnss-mdns" +RDEPENDS_avahi-daemon = "sysvinit-pidof" + +SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \ + file://00avahi-autoipd file://99avahi-autoipd" inherit autotools pkgconfig update-rc.d @@ -35,7 +40,8 @@ FILES_avahi-dnsconfd = "${sbindir}/avahi-dnsconfd \ FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*" FILES_avahi-utils = "${bindir}/avahi-*" FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \ - ${sysconfdir}/avahi/avahi-autoipd.action" + ${sysconfdir}/avahi/avahi-autoipd.action \ + ${sysconfdir}/udhcpc.d/*avahi-autoipd" CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf" @@ -52,8 +58,8 @@ pkg_postinst_avahi-daemon () { if [ "x$D" != "x" ]; then exit 1 fi - 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 + grep "^avahi:" /etc/group > /dev/null || addgroup avahi + grep "^avahi:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/run/avahi-daemon --no-create-home avahi --ingroup avahi -g Avahi DBUSPID=`pidof dbus-daemon` @@ -62,11 +68,32 @@ pkg_postinst_avahi-daemon () { fi } +pkg_postinst_avahi-autoipd () { + # can't do this offline + if [ "x$D" != "x" ]; then + exit 1 + fi + grep "^avahi-autoipd:" /etc/group > /dev/null || addgroup avahi-autoipd + grep "^avahi-autoipd:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/lib/avahi-autoipd --no-create-home avahi-autoipd --ingroup avahi-autoipd -g "Avahi autoip daemon" +} + pkg_postrm_avahi-daemon () { deluser avahi || true delgroup avahi || true } +pkg_postrm_avahi-autoipd () { + deluser avahi-autoipd || true + delgroup avahi-autoipd || true +} + +do_install() { + autotools_do_install + install -d ${D}${sysconfdir}/udhcpc.d + install ${WORKDIR}/00avahi-autoipd ${D}${sysconfdir}/udhcpc.d + install ${WORKDIR}/99avahi-autoipd ${D}${sysconfdir}/udhcpc.d +} + do_stage() { autotools_stage_all } diff --git a/packages/avahi/avahi_0.6.18.bb b/packages/avahi/avahi_0.6.18.bb new file mode 100644 index 0000000000..9189734dfa --- /dev/null +++ b/packages/avahi/avahi_0.6.18.bb @@ -0,0 +1 @@ +require avahi.inc diff --git a/packages/avahi/avahi_0.6.19.bb b/packages/avahi/avahi_0.6.19.bb new file mode 100644 index 0000000000..27dcdcffcb --- /dev/null +++ b/packages/avahi/avahi_0.6.19.bb @@ -0,0 +1,3 @@ +require avahi.inc + +PR = "r1" diff --git a/packages/avahi/avahi_0.6.20.bb b/packages/avahi/avahi_0.6.20.bb new file mode 100644 index 0000000000..59de20446c --- /dev/null +++ b/packages/avahi/avahi_0.6.20.bb @@ -0,0 +1,3 @@ +require avahi.inc + +PR = "r0" diff --git a/packages/avahi/files/.mtn2git_empty b/packages/avahi/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/avahi/files/.mtn2git_empty diff --git a/packages/avahi/files/00avahi-autoipd b/packages/avahi/files/00avahi-autoipd new file mode 100755 index 0000000000..a0ab814603 --- /dev/null +++ b/packages/avahi/files/00avahi-autoipd @@ -0,0 +1,10 @@ +#!/bin/sh + +[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 + +case "$1" in + + deconfig|renew|bound) + /usr/sbin/avahi-autoipd -k $interface 2> /dev/null + ;; +esac diff --git a/packages/avahi/files/99avahi-autoipd b/packages/avahi/files/99avahi-autoipd new file mode 100755 index 0000000000..234cdaa3eb --- /dev/null +++ b/packages/avahi/files/99avahi-autoipd @@ -0,0 +1,10 @@ +#!/bin/sh + +[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 + +case "$1" in + + leasefail) + /usr/sbin/avahi-autoipd -wD $interface 2> /dev/null + ;; +esac |