summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-04-27 10:20:37 +0200
committerLars Wendler <polynomial-c@gentoo.org>2016-04-27 10:21:17 +0200
commitece0a2dfee9a935903137dad3b81649ec64a4786 (patch)
treeaec607dd7a86ee959396c911f72508d74634a190 /net-misc/ntp/files
parentmedia-sound/tomahawk: Update dependencies in live (diff)
downloadgentoo-ece0a2dfee9a935903137dad3b81649ec64a4786.tar.gz
gentoo-ece0a2dfee9a935903137dad3b81649ec64a4786.tar.bz2
gentoo-ece0a2dfee9a935903137dad3b81649ec64a4786.zip
net-misc/ntp: Bump to version 4.2.8_p7
Package-Manager: portage-2.2.28 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'net-misc/ntp/files')
-rw-r--r--net-misc/ntp/files/ntpd.rc-r14
-rw-r--r--net-misc/ntp/files/sntp.rc12
2 files changed, 8 insertions, 8 deletions
diff --git a/net-misc/ntp/files/ntpd.rc-r1 b/net-misc/ntp/files/ntpd.rc-r1
index f89bdd3c9354..5bed5ce757c0 100644
--- a/net-misc/ntp/files/ntpd.rc-r1
+++ b/net-misc/ntp/files/ntpd.rc-r1
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
diff --git a/net-misc/ntp/files/sntp.rc b/net-misc/ntp/files/sntp.rc
index b0261d9d57dc..5b3b4632bfb9 100644
--- a/net-misc/ntp/files/sntp.rc
+++ b/net-misc/ntp/files/sntp.rc
@@ -1,15 +1,17 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
+command="/usr/bin/sntp"
+
depend() {
before cron portmap
after net
use dns logger
}
-checkconfig() {
+start_pre() {
if [ -z "${SNTP_OPTS}" ] ; then
eerror "Please edit /etc/conf.d/sntp"
eerror "I need to know what server/options to use!"
@@ -19,9 +21,7 @@ checkconfig() {
}
start() {
- checkconfig || return $?
-
ebegin "Setting clock via SNTP"
- /usr/bin/sntp ${SNTP_OPTS}
+ ${command} ${SNTP_OPTS}
eend $? "Failed to set clock"
}