6 Commits

3 changed files with 32 additions and 15 deletions

View File

@ -1,12 +0,0 @@
diff -Nru chrony-1.27.orig/conf.c chrony-1.27/conf.c
--- chrony-1.27.orig/conf.c 2013-02-01 15:47:43.000000000 +0100
+++ chrony-1.27/conf.c 2013-04-13 19:42:37.175845513 +0200
@@ -205,7 +205,7 @@
/* Filename to use for storing pid of running chronyd, to prevent multiple
* chronyds being started. */
-static char *pidfile = "/var/run/chronyd.pid";
+static char *pidfile = "/run/chronyd.pid";
/* Temperature sensor, update interval and compensation coefficients */
static char *tempcomp_file = NULL;

11
chrony-2.2-run-dir.patch Normal file
View File

@ -0,0 +1,11 @@
--- chrony-2.2/conf.c.orig 2015-11-21 14:23:47.219442178 +0100
+++ chrony-2.2/conf.c 2015-11-21 14:23:54.745391572 +0100
@@ -322,7 +322,7 @@
dumpdir = Strdup(".");
logdir = Strdup(".");
bind_cmd_path = Strdup(DEFAULT_COMMAND_SOCKET);
- pidfile = Strdup("/var/run/chronyd.pid");
+ pidfile = Strdup("/run/chronyd.pid");
rtc_device = Strdup("/dev/rtc");
hwclock_file = Strdup(DEFAULT_HWCLOCK_FILE);
user = Strdup(DEFAULT_USER);

View File

@ -2,7 +2,7 @@
%define chrony_userid 55
Name: chrony
Version: 1.29.1
Version: 2.2
Release: 1mamba
Summary: A pair of programs which are used to maintain the accuracy of the system clock on a computer
Group: System/Servers
@ -17,7 +17,7 @@ Source3: chronyd-nm-dispatcher
Source4: chrony-wait.service
Source5: chronyd.service
Source6: chrony.helper
Patch0: %{name}-1.28-run-dir.patch
Patch0: %{name}-2.2-run-dir.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -122,7 +122,7 @@ fi
%{_prefix}/lib/systemd/ntp-units.d/50-chronyd.list
%{_prefix}/libexec/chrony-helper
%dir %{_var}/log/chrony
%{_mandir}/man1/chrony.*
#%{_mandir}/man1/chrony.*
%{_mandir}/man1/chronyc.*
%{_mandir}/man5/chrony.conf.*
%{_mandir}/man8/chronyd.*
@ -130,6 +130,24 @@ fi
#NEWS README chrony.txt examples/chrony.conf.example examples/chrony.keys.example
%changelog
* Sat Nov 21 2015 Automatic Build System <autodist@mambasoft.it> 2.2-1mamba
- automatic version update by autodist
* Wed Jul 01 2015 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic version update by autodist
* Thu Apr 30 2015 Automatic Build System <autodist@mambasoft.it> 2.0-1mamba
- automatic version update by autodist
* Wed Apr 08 2015 Automatic Build System <autodist@mambasoft.it> 1.31.1-1mamba
- automatic version update by autodist
* Thu Sep 18 2014 Automatic Build System <autodist@mambasoft.it> 1.31-1mamba
- automatic update by autodist
* Thu Jul 03 2014 Automatic Build System <autodist@mambasoft.it> 1.30-1mamba
- automatic version update by autodist
* Sat Feb 01 2014 Automatic Build System <autodist@mambasoft.it> 1.29.1-1mamba
- automatic version update by autodist