From a09232b36c2b00cce61f4777df223dac36176932 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 2 Mar 2006 17:05:13 +0000 Subject: [PATCH] gentoo init script update git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1171 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- initscript/gentoo/Makefile.am | 7 ++++++- initscript/gentoo/avahi-daemon.in | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/initscript/gentoo/Makefile.am b/initscript/gentoo/Makefile.am index 4165ad3..398e345 100644 --- a/initscript/gentoo/Makefile.am +++ b/initscript/gentoo/Makefile.am @@ -17,6 +17,10 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. +if !HAVE_DBUS +NO_DBUS_DEPENDENCY=/need dbus/d +endif + initddir = $(sysconfdir)/init.d EXTRA_DIST = \ @@ -32,7 +36,8 @@ CLEANFILES = \ avahi-dnsconfd avahi-daemon: avahi-daemon.in - sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ + + sed -e 's,@sbindir\@,$(sbindir),g; $(NO_DBUS_DEPENDENCY)' $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in diff --git a/initscript/gentoo/avahi-daemon.in b/initscript/gentoo/avahi-daemon.in index 88d0be0..1ceae13 100644 --- a/initscript/gentoo/avahi-daemon.in +++ b/initscript/gentoo/avahi-daemon.in @@ -6,7 +6,8 @@ opts="${opts} reload" depend() { - use net dbus + use net + need dbus } start() { -- 2.39.5