diff --git a/.gitignore b/.gitignore index b198657..8f8388c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -chrony-1.24.tar.gz -timepps.h -chrony-1.24-20100428git73d775.patch.gz +/timepps.h +/chrony-1.25-pre1.tar.gz diff --git a/chrony.spec b/chrony.spec index c1cf625..d4eb7cc 100644 --- a/chrony.spec +++ b/chrony.spec @@ -1,7 +1,7 @@ -%define gitpatch 20100428git73d775 +%define prerelease -pre1 Name: chrony -Version: 1.24 -Release: 4.%{?gitpatch}%{?dist} +Version: 1.25 +Release: 0.1.pre1%{?gitpatch}%{?dist} Summary: An NTP client/server Group: System Environment/Daemons @@ -17,7 +17,7 @@ Source5: chrony.logrotate Source6: timepps.h Source7: chrony.nm-dispatcher Source8: chrony.dhclient -Patch0: chrony-%{version}-%{gitpatch}.patch.gz +%{?gitpatch:Patch0: chrony-%{version}-%{gitpatch}.patch.gz} Patch1: chrony-retryres.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -37,7 +37,7 @@ in permanently connected environments. %prep %setup -q -n %{name}-%{version}%{?prerelease} mkdir pps; cp -p %{SOURCE6} pps -%patch0 -p1 +%{?gitpatch:%patch0 -p1} %patch1 -p1 -b .retryres %{?gitpatch: echo %{version}-%{gitpatch} > version.txt} diff --git a/chronyd.init b/chronyd.init index 9877c04..9375d25 100644 --- a/chronyd.init +++ b/chronyd.init @@ -48,20 +48,10 @@ chrony_command() { commandkey=$(get_key $commandkeyid) [ -z "$commandkey" ] && return 2 - ! ( - $chronyc < /dev/null & - killerpid=$! - - wait $chronycpid &> /dev/null - kill $killerpid &> /dev/null || echo "chronyd not responding" - ) | grep -v '200 OK' } generate_commandkey() { @@ -85,7 +75,7 @@ add_dhclient_servers() { if [ -n "$command" ]; then echo -n $"Adding dhclient NTP servers to chrony: " chrony_command "$command" &> /dev/null && success || failure - echo + echo fi } diff --git a/sources b/sources index 16d59b7..ecd14eb 100644 --- a/sources +++ b/sources @@ -1,3 +1,2 @@ -8849e95428f43c5ab2692a2812653e65 chrony-1.24.tar.gz b494eddf72f3455c333eed80642dc20d timepps.h -fd084bd4bf10c8fb4208d2a582177dc1 chrony-1.24-20100428git73d775.patch.gz +78c43bd309cc7660ac793e0ea5ed9368 chrony-1.25-pre1.tar.gz