]> git.meshlink.io Git - catta/commitdiff
* Patch by Steev Klimaszewski for gentoo compilation
authorTrent Lloyd <lathiat@bur.st>
Wed, 29 Jun 2005 03:34:45 +0000 (03:34 +0000)
committerTrent Lloyd <lathiat@bur.st>
Wed, 29 Jun 2005 03:34:45 +0000 (03:34 +0000)
 * Small dbus-protocol.c change

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@153 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/dbus-protocol.c
configure.ac
initscript/Gentoo/Makefile.am [new file with mode: 0644]
initscript/Gentoo/avahi.in [new file with mode: 0644]

index 242ad59028c5363b03779a544851782d62a27939..2d1db32902eacdcfd6094b690a87dc67d0206b54 100644 (file)
@@ -53,7 +53,7 @@ do_register (DBusConnection *conn, DBusMessage *message)
         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;
 }
@@ -92,10 +92,11 @@ signal_filter (DBusConnection *conn, DBusMessage *message, void *user_data)
     } 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;
 
index 2bbea03ba58b478bf73771a6c0fbbf6c9241c2f1..a141ad6822592851260635639996daec5315f1a1 100644 (file)
@@ -186,6 +186,8 @@ else
 case $with_distro in
    debian)
      ;;
+   gentoo)
+     ;;
    *)
      echo "Your distribution (${with_distro}) is not yet supported!  (patches welcome)"
      exit 1
@@ -234,6 +236,8 @@ avahi-client/Makefile
 initscript/Makefile 
 initscript/Debian/Makefile
 initscript/Debian/75avahi
+initscript/Gentoo/Makefile
+initscript/Gentoo/avahi
 avahi-dnsconfd/Makefile
 ])
 AC_OUTPUT
diff --git a/initscript/Gentoo/Makefile.am b/initscript/Gentoo/Makefile.am
new file mode 100644 (file)
index 0000000..9d95673
--- /dev/null
@@ -0,0 +1,4 @@
+dbusinitddir = $(sysconfdir)/dbus-1/system.d
+dbusinitd_SCRIPTS = avahi
+
+EXTRA_DIST = $(dbusinitd_SCRIPTS)
diff --git a/initscript/Gentoo/avahi.in b/initscript/Gentoo/avahi.in
new file mode 100644 (file)
index 0000000..af26512
--- /dev/null
@@ -0,0 +1,20 @@
+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 $?
+}
+