return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
- g_message ("Register received from: %s", s);
+ g_message ("Register received from: %s (dbus:% s)", s, dbus_message_get_sender (message));
return DBUS_HANDLER_RESULT_HANDLED;
}
} else if (dbus_message_is_signal (message,
#ifdef DBUS_USE_NEW_API
DBUS_INTERFACE_DBUS,
+ "NameAcquired"))
#else
DBUS_INTERFACE_ORG_FREEDESKTOP_DBUS,
-#endif
"ServiceAcquired"))
+#endif
{
char *name;
case $with_distro in
debian)
;;
+ gentoo)
+ ;;
*)
echo "Your distribution (${with_distro}) is not yet supported! (patches welcome)"
exit 1
initscript/Makefile
initscript/Debian/Makefile
initscript/Debian/75avahi
+initscript/Gentoo/Makefile
+initscript/Gentoo/avahi
avahi-dnsconfd/Makefile
])
AC_OUTPUT
--- /dev/null
+dbusinitddir = $(sysconfdir)/dbus-1/system.d
+dbusinitd_SCRIPTS = avahi
+
+EXTRA_DIST = $(dbusinitd_SCRIPTS)
--- /dev/null
+DAEMON=/usr/bin/avahi
+
+start() {
+ ebegin "Starting avahi"
+ start-stop-daemon --start --quiet --exec $DAEMON
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping avahi"
+ start-stop-daemon --stop --quiet --exec $DAEMON
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading avahi configuration"
+ start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON
+ eend $?
+}
+