]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Merge remote-tracking branch 'stevee/avahi-fixes' into next
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Jan 2014 19:23:12 +0000 (20:23 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Jan 2014 19:23:12 +0000 (20:23 +0100)
config/avahi/avahi
config/rootfiles/common/i586/glibc
lfs/avahi
src/paks/avahi/install.sh

index 206146aa2fd0109795ac9d0f0f0b47a2016ba8a2..7413f56f1f9f964d56ab148b2705cc76ad018c53 100755 (executable)
@@ -18,7 +18,7 @@ case "$1" in
 
        stop)
                boot_mesg "Stopping avahi..."
-               killproc /usr/sbin/avahi-daemon -k
+               /usr/sbin/avahi-daemon -k
                ;;
 
        reload)
index d17d7dadd63b944cb8745b52f006e7f21839b149..5aad2b601c8e0d37372d8fd5821a942fae5dcd36 100644 (file)
@@ -49,7 +49,7 @@ sbin/ldconfig
 #usr/bin/catchsegv
 #usr/bin/gencat
 #usr/bin/getconf
-#usr/bin/getent
+usr/bin/getent
 #usr/bin/iconv
 usr/bin/ldd
 #usr/bin/lddlibc4
index 88263a19a885cc602b687b950a5989e3dd15c361..0ffbd32499a649d0d50a38cba20052c9742e71a0 100644 (file)
--- a/lfs/avahi
+++ b/lfs/avahi
@@ -32,9 +32,9 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET = $(DIR_INFO)/$(THISAPP)
 PROG       = avahi
-PAK_VER    = 3
+PAK_VER    = 4
 
-DEPS      = "libdaemon"
+DEPS      = "dbus libdaemon"
 
 ###############################################################################
 # Top-level Rules
@@ -77,10 +77,20 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure --prefix=/usr --with-avahi-user=avahi \
-       --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 \
-       --disable-pygtk --disable-python-dbus --disable-mono \
-       --disable-monodoc --with-distro=none --sysconfdir=/etc
+       cd $(DIR_APP) && ./configure \
+               --prefix=/usr \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --with-avahi-user=avahi \
+               --disable-qt3 \
+               --disable-qt4 \
+               --disable-gtk \
+               --disable-gtk3 \
+               --disable-pygtk \
+               --disable-python-dbus \
+               --disable-mono \
+               --disable-monodoc \
+               --with-distro=none
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        cp -avf $(DIR_SRC)/config/avahi/avahi /etc/init.d/
index bcbb63168b1865e8f2c1a36b153eaf4c4f9a7378..cb0266bae8ff4f0825b14c87f4ae55fcc61807d9 100644 (file)
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
+
+# Create Username and group.
+getent group avahi >/dev/null || groupadd -r avahi
+getent passwd avahi >/dev/null || \
+      useradd -r -g avahi -d /var/run/avahi-daemon -s /sbin/nologin \
+      -c "Avahi mDNS daemon" avahi
+
 extract_files
 ln -svf  ../init.d/avahi /etc/rc.d/rc3.d/S65avahi
 ln -svf  ../init.d/avahi /etc/rc.d/rc0.d/K35avahi