]> git.meshlink.io Git - catta/commitdiff
* add support for /etc/localtime in avahi's chroot for debian
authorSebastien Estienne <sebastien.estienne@gmail.com>
Fri, 3 Feb 2006 22:04:13 +0000 (22:04 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Fri, 3 Feb 2006 22:04:13 +0000 (22:04 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1128 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

initscript/debian/Makefile.am
initscript/debian/avahi-daemon.in
initscript/debian/avahi-dnsconfd.in

index 4165ad3ef49a6594a93e899ef0da275b41ce3110..7991ea60ccf6f090ea23feb3f5becc501c945892 100644 (file)
@@ -32,9 +32,15 @@ CLEANFILES = \
        avahi-dnsconfd
 
 avahi-daemon: avahi-daemon.in
-       sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
+       sed \
+               -e 's,@sbindir\@,$(sbindir),g' \
+               -e 's,@sysconfdir\@,$(sysconfdir),g' \
+               $< > $@
        chmod +x $@
 
 avahi-dnsconfd: avahi-dnsconfd.in
-       sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
+       sed \
+               -e 's,@sbindir\@,$(sbindir),g' \
+               -e 's,@sysconfdir\@,$(sysconfdir),g' \
+               $< > $@
        chmod +x $@
index ddaeba44b6d63d4f02bffb7211b8e483fde249c6..feecc847a8b70f903b41c6e63b678949103f6696 100755 (executable)
@@ -91,6 +91,13 @@ test -x $DAEMON || exit 0
 #       Function that starts the daemon/service.
 #
 d_start() {
+    if [ -s /etc/localtime ]; then
+       if [ ! -d /etc/avahi/etc ]; then
+           mkdir -p @sysconfdir@/avahi/etc >/dev/null 2>&1
+       fi
+       cp -fp /etc/localtime @sysconfdir@/avahi/etc >/dev/null 2>&1
+    fi;
+    
     $DAEMON -D
 }
 
index 0720a9e76a7a052740ed4dbc0af0912d25bc4ad2..649d72f2b1fbd40c638f1ec244caa2ad1b321070 100755 (executable)
@@ -91,6 +91,13 @@ test -x $DAEMON || exit 0
 #       Function that starts the daemon/service.
 #
 d_start() {
+    if [ -s /etc/localtime ]; then
+       if [ ! -d /etc/avahi/etc ]; then
+           mkdir -p @sysconfdir@/avahi/etc >/dev/null 2>&1
+       fi
+       cp -fp /etc/localtime @sysconfdir@/avahi/etc >/dev/null 2>&1
+    fi;
+    
     $DAEMON -D
 }