]> git.meshlink.io Git - catta/commitdiff
gentoo init script update
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Mar 2006 17:05:13 +0000 (17:05 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 2 Mar 2006 17:05:13 +0000 (17:05 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1171 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

initscript/gentoo/Makefile.am
initscript/gentoo/avahi-daemon.in

index 4165ad3ef49a6594a93e899ef0da275b41ce3110..398e34571b0eb396612482bc020036c98e6e59e8 100644 (file)
 # 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
index 88d0be02b976fd5522d44db861eba3a4b4393192..1ceae13dbc964dc434584343074a17c78d5681fb 100644 (file)
@@ -6,7 +6,8 @@
 opts="${opts} reload"
 
 depend() {
-       use net dbus
+       use net
+       need dbus
 }
 
 start() {