From 1ec97e1e7a0a33c826c6c3525468bdc8aac7a3d6 Mon Sep 17 00:00:00 2001 From: jvdias Date: Thu, 9 Mar 2006 15:38:11 +0000 Subject: [PATCH] fix .spec file problems --- avahi.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/avahi.spec b/avahi.spec index 93ae6aa..cf6e8e3 100644 --- a/avahi.spec +++ b/avahi.spec @@ -4,7 +4,7 @@ %endif Name: avahi Version: 0.6.9 -Release: 3 +Release: 4 Summary: Local network service discovery Group: System Environment/Base License: LGPL @@ -198,15 +198,18 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig -/sbin/chkconfig --add avahi-daemon >/dev/null 2>&1 -/sbin/chkconfig --add avahi-dnsconfd >/dev/null 2>&1 if [ "$1" -eq 1 ]; then + # Run avahi-daemon by default: + /sbin/chkconfig --add avahi-daemon >/dev/null 2>&1 || :; + # avahi-dnsconfd NOT run by default in any runlevel; add it + # so system-config-services can see it + /sbin/chkconfig --add avahi-dnsconfd >/dev/null 2>&1 || :; # We should realy make dbus reload the system.d config here. Dunno how though. # kill -HUP `cat /var/run/messagebus.pid` ? if [ -s /etc/localtime ]; then cp -fp /etc/localtime /etc/avahi/etc/localtime || :; fi; -fi +fi; %postun /sbin/ldconfig @@ -311,6 +314,10 @@ fi %endif %changelog +* Thu Mar 09 2006 Jason Vas Dias - 0.6.9-4 +- fix scriptlet error introduced by last fix: + if user has disabled avahi-daemon, do not enable it during %post + * Wed Mar 08 2006 Bill Nottingham - 0.6.9-2 - fix scriplet error during installer - move service-types* to the tools package (avoids multilib conflicts)