[pkg-ntp-maintainers] [pkg-ntp] 03/05: patch sntp kod db location to use FHS compliant paths

Bernhard Schmidt berni at moszumanska.debian.org
Thu Jun 1 10:09:44 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch berni-wip
in repository pkg-ntp.

commit 5cea4a15a9424799cc95c57726dbcffce0f02c50
Author: Bernhard Schmidt <berni at debian.org>
Date:   Thu Jun 1 11:19:24 2017 +0200

    patch sntp kod db location to use FHS compliant paths
---
 debian/patches/series                  |  1 +
 debian/patches/sntp-kod-location.patch | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 3c6c76d..27bc6de 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ libedit.patch
 reproducible-build.patch
 sntp-sysexits.patch
 debian-locfile.patch
+sntp-kod-location.patch
diff --git a/debian/patches/sntp-kod-location.patch b/debian/patches/sntp-kod-location.patch
new file mode 100644
index 0000000..0cfdfe9
--- /dev/null
+++ b/debian/patches/sntp-kod-location.patch
@@ -0,0 +1,30 @@
+Description: Use FHS compliant path for sntp kod database
+ /var/db/ntp-kod is hardcoded in the sources and not permitted by FHS
+ .
+ The path is also present in sntp/sntp-opts.c and sntp/sntp.1sntpman, which
+ get regenerated by autogen at build time
+uthor: Bernhard Schmidt <berni at debian.org>
+Bug: http://bugs.ntp.org/show_bug.cgi?id=3396
+
+--- a/sntp/sntp-opts.def
++++ b/sntp/sntp-opts.def
+@@ -113,7 +113,7 @@
+   value		= K;
+   arg-type	= file;
+   arg-name	= "file-name";
+-  arg-default	= "/var/db/ntp-kod";
++  arg-default	= "/var/lib/sntp/kod";
+   descrip	= "KoD history filename";
+   doc		= <<- _EndOfDoc_
+ 	Specifies the filename to be used for the persistent history of KoD
+--- a/sntp/sntp.man.in
++++ b/sntp/sntp.man.in
+@@ -154,7 +154,7 @@
+ \f\*[I-Font]file\-name\f[]
+ for this option is:
+ .ti +4
+- /var/db/ntp-kod
++ /var/lib/sntp/kod
+ .sp
+ Specifies the filename to be used for the persistent history of KoD
+ responses received from servers.  If the file does not exist, a

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ntp/pkg-ntp.git



More information about the pkg-ntp-maintainers mailing list