]> git.pld-linux.org Git - packages/chrony.git/commitdiff
- rel 2; fix-info-dir fix auto/th/chrony-1_26-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 26 Aug 2011 13:05:21 +0000 (13:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chrony.spec -> 1.6

chrony.spec

index 03d1d4d39fca9d9d1bb5324a165042f65bf2cdb4..dba965bd713d4bcdb01fc904a9b3d40522f78dd0 100644 (file)
@@ -1,7 +1,7 @@
 Summary:       An NTP client/server
 Name:          chrony
 Version:       1.26
 Summary:       An NTP client/server
 Name:          chrony
 Version:       1.26
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Daemons
 URL:           http://chrony.tuxfamily.org/
 License:       GPL v2
 Group:         Daemons
 URL:           http://chrony.tuxfamily.org/
@@ -82,7 +82,7 @@ rm -rf $RPM_BUILD_ROOT
 %useradd -u 246 -d %{_localstatedir}/lib/ntp -g ntp -c "NTP Daemon" ntp
 
 %post
 %useradd -u 246 -d %{_localstatedir}/lib/ntp -g ntp -c "NTP Daemon" ntp
 
 %post
-/usr/sbin/fix-info-dir -c %{_infodir}
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/chkconfig --add chronyd
 %service chronyd restart
 
 /sbin/chkconfig --add chronyd
 %service chronyd restart
 
@@ -90,10 +90,10 @@ rm -rf $RPM_BUILD_ROOT
 if [ "$1" = "0" ]; then
        %service chronyd stop
        /sbin/chkconfig --del chronyd
 if [ "$1" = "0" ]; then
        %service chronyd stop
        /sbin/chkconfig --del chronyd
-       /usr/sbin/fix-info-dir -c %{_infodir}
 fi
 
 %postun
 fi
 
 %postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 if [ "$1" = "0" ]; then
        %userremove ntp
        %groupremove ntp
 if [ "$1" = "0" ]; then
        %userremove ntp
        %groupremove ntp
This page took 0.137225 seconds and 4 git commands to generate.