Signed-off-by: Juergen Borleis <[email protected]>
---
projectroot/usr/lib/systemd/system/ntpd.service | 2 ++
rules/ntp.in | 5 +++++
rules/ntp.make | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/projectroot/usr/lib/systemd/system/ntpd.service
b/projectroot/usr/lib/systemd/system/ntpd.service
index 64fce1cb7..917456339 100644
--- a/projectroot/usr/lib/systemd/system/ntpd.service
+++ b/projectroot/usr/lib/systemd/system/ntpd.service
@@ -3,6 +3,8 @@ Description=ntpd
[Service]
ExecStart=/usr/sbin/ntpd -n -c /etc/ntp-server.conf
+StateDirectory=ntp
+LogsDirectory=ntpstats
[Install]
WantedBy=multi-user.target
diff --git a/rules/ntp.in b/rules/ntp.in
index c211c91cd..55bf38b94 100644
--- a/rules/ntp.in
+++ b/rules/ntp.in
@@ -10,10 +10,15 @@ menuconfig NTP
select LIBC_M
select LIBC_RT
select GCCLIBS_GCC_S
+ select ROOTFS_VAR_LIB if RUNTIME
+ select ROOTFS_VAR_LOG if RUNTIME
help
Build the standard NTP Daemon Process and supplementary programs.
This conflicts with BSD openntpd.
+ Note: on a read-only root filesystem this package still requires a
+ writable '/var/lib' and '/var/log'.
+
# ----- Compile Options
if NTP
diff --git a/rules/ntp.make b/rules/ntp.make
index 5d51ae4fc..411ad2ecf 100644
--- a/rules/ntp.make
+++ b/rules/ntp.make
@@ -160,7 +160,7 @@ $(STATEDIR)/ntp.targetinstall:
@$(call install_fixup, ntp,PRIORITY,optional)
@$(call install_fixup, ntp,SECTION,base)
@$(call install_fixup, ntp,AUTHOR,"Robert Schwebel")
- @$(call install_fixup, ntp,DESCRIPTION,missing)
+ @$(call install_fixup, ntp,DESCRIPTION, "Network Time Protocol Daemon")
# #
# # ntpdate
--
2.20.1
_______________________________________________
ptxdist mailing list
[email protected]