ntp: provide 'ntp-daemon' vpkg; use -g in ntpd; drop logrotate file.
This commit is contained in:
parent
e35b2a3cb5
commit
b3ae3a8de1
3 changed files with 4 additions and 11 deletions
srcpkgs/ntp
|
@ -1,7 +0,0 @@
|
||||||
/var/log/ntpd.log {
|
|
||||||
missingok
|
|
||||||
sharedscripts
|
|
||||||
postrotate
|
|
||||||
systemctl try-restart ntpd.service >/dev/null 2>&1 || true
|
|
||||||
endscript
|
|
||||||
}
|
|
|
@ -1,9 +1,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Network Time Service
|
Description=Network Time Service
|
||||||
After=syslog.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/ntpd -n
|
ExecStart=/usr/bin/ntpd -ng
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ntp'
|
# Template file for 'ntp'
|
||||||
pkgname=ntp
|
pkgname=ntp
|
||||||
version=4.2.6p5
|
version=4.2.6p5
|
||||||
revision=6
|
revision=7
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-linuxcap"
|
configure_args="--enable-linuxcap"
|
||||||
makedepends="readline-devel openssl-devel libcap-devel"
|
makedepends="readline-devel openssl-devel libcap-devel"
|
||||||
|
@ -16,11 +16,12 @@ checksum=d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c
|
||||||
subpackages="$pkgname-perl"
|
subpackages="$pkgname-perl"
|
||||||
conf_files="/etc/ntp.conf"
|
conf_files="/etc/ntp.conf"
|
||||||
systemd_services="ntpd.service on"
|
systemd_services="ntpd.service on"
|
||||||
|
provides="ntp-daemon-0"
|
||||||
|
replaces="ntp-daemon>=0"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
|
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
|
||||||
vinstall ${FILESDIR}/ntp.conf 644 etc
|
vinstall ${FILESDIR}/ntp.conf 644 etc
|
||||||
vinstall ${FILESDIR}/ntpd.logrotate 644 etc/logrotate.d ntpd
|
|
||||||
|
|
||||||
vmkdir usr/share/ntp
|
vmkdir usr/share/ntp
|
||||||
vmkdir usr/share/doc/ntp
|
vmkdir usr/share/doc/ntp
|
||||||
|
|
Loading…
Reference in a new issue