From 656aec05e83a12adfea8c5d98da2c0220ec54e4a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 30 Jul 2005 12:21:59 +0000 Subject: [PATCH] * Move avahi-daemon and avahi-dnsconfd to sbin * Fix Debian init scripts to use absolute paths to the binaries installed with the package git-svn-id: file:///home/lennart/svn/public/avahi/trunk@196 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/Makefile.am | 3 ++- avahi-dnsconfd/Makefile.am | 2 +- .../Debian/{75avahi-daemon => 75avahi-daemon.in} | 2 +- initscript/Debian/Makefile.am | 13 +++++++++++++ .../Debian/{avahi-dnsconfd => avahi-dnsconfd.in} | 2 +- 5 files changed, 18 insertions(+), 4 deletions(-) rename initscript/Debian/{75avahi-daemon => 75avahi-daemon.in} (98%) rename initscript/Debian/{avahi-dnsconfd => avahi-dnsconfd.in} (98%) diff --git a/avahi-daemon/Makefile.am b/avahi-daemon/Makefile.am index a1b2dcb..ed231a6 100644 --- a/avahi-daemon/Makefile.am +++ b/avahi-daemon/Makefile.am @@ -46,7 +46,7 @@ endif # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' -bin_PROGRAMS = \ +sbin_PROGRAMS = \ avahi-daemon avahi_daemon_SOURCES = \ @@ -79,3 +79,4 @@ avahi_daemon_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/ xmllint: xmllint --noout --valid example.service + xmllint --noout --valid Server.introspect diff --git a/avahi-dnsconfd/Makefile.am b/avahi-dnsconfd/Makefile.am index 3b3c79e..db21810 100644 --- a/avahi-dnsconfd/Makefile.am +++ b/avahi-dnsconfd/Makefile.am @@ -36,7 +36,7 @@ AM_LDADD+=$(LIBDAEMON_LIBS) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' -bin_PROGRAMS = \ +sbin_PROGRAMS = \ avahi-dnsconfd avahi_dnsconfd_SOURCES = \ diff --git a/initscript/Debian/75avahi-daemon b/initscript/Debian/75avahi-daemon.in similarity index 98% rename from initscript/Debian/75avahi-daemon rename to initscript/Debian/75avahi-daemon.in index 82377dd..337fed6 100755 --- a/initscript/Debian/75avahi-daemon +++ b/initscript/Debian/75avahi-daemon.in @@ -62,7 +62,7 @@ fi PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="Avahi ZeroConf daemon" NAME="avahi-daemon" -DAEMON=/usr/bin/$NAME +DAEMON="@sbindir@/$NAME" # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 diff --git a/initscript/Debian/Makefile.am b/initscript/Debian/Makefile.am index 811526d..89e6663 100644 --- a/initscript/Debian/Makefile.am +++ b/initscript/Debian/Makefile.am @@ -1,9 +1,22 @@ + +EXTRA_DIST=75avahi-daemon.in avahi-dnsconfd.in + dbusinitddir = $(sysconfdir)/dbus-1/event.d dbusinitd_SCRIPTS = 75avahi-daemon initddir = $(sysconfdir)/init.d initd_SCRIPTS = avahi-dnsconfd +CLEANFILES=75avahi-daemon avahi-dnsconfd + +75avahi-daemon: 75avahi-daemon.in + sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ + chmod +x $@ + +avahi-dnsconfd: avahi-dnsconfd.in + sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ + chmod +x $@ + #if ENABLE_DBUS #install-data-local: # $(LN_S) -f $(initddir)/avahi-daemon \ diff --git a/initscript/Debian/avahi-dnsconfd b/initscript/Debian/avahi-dnsconfd.in similarity index 98% rename from initscript/Debian/avahi-dnsconfd rename to initscript/Debian/avahi-dnsconfd.in index 7b2e131..eb67a91 100755 --- a/initscript/Debian/avahi-dnsconfd +++ b/initscript/Debian/avahi-dnsconfd.in @@ -62,7 +62,7 @@ fi PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="Avahi Dns Config daemon" NAME="avahi-dnsconfd" -DAEMON=/usr/bin/$NAME +DAEMON="@sbindir@/$NAME" # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 -- 2.39.5