aboutsummaryrefslogtreecommitdiff
path: root/net/openntpd
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2010-03-16 18:08:10 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2010-03-16 18:08:10 +0000
commit03fde01d757188a86eab15db86f4198fb0f98dc6 (patch)
tree8c40deb1a9903c8650bcfe0b8dcde1922258df96 /net/openntpd
parent72465817c874bbcfbf518e70bfda4de51c249ac9 (diff)
downloadports-03fde01d757188a86eab15db86f4198fb0f98dc6.tar.gz
ports-03fde01d757188a86eab15db86f4198fb0f98dc6.zip
Notes
Diffstat (limited to 'net/openntpd')
-rw-r--r--net/openntpd/Makefile1
-rw-r--r--net/openntpd/files/openntpd.in15
2 files changed, 11 insertions, 5 deletions
diff --git a/net/openntpd/Makefile b/net/openntpd/Makefile
index ca37d49a03e0..563b2ecd2dc2 100644
--- a/net/openntpd/Makefile
+++ b/net/openntpd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= openntpd
PORTVERSION= 4.6
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_OPENBSD}
diff --git a/net/openntpd/files/openntpd.in b/net/openntpd/files/openntpd.in
index 0563632209c7..1de11fc90e6b 100644
--- a/net/openntpd/files/openntpd.in
+++ b/net/openntpd/files/openntpd.in
@@ -2,11 +2,16 @@
#
# $FreeBSD$
#
-
# PROVIDE: openntpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
-# KEYWORD: nojail
+# KEYWORD: nojail shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# openntpd_enable (bool): Set to NO by default.
+# Set it to YES to enable openntpd.
. %%RC_SUBR%%
@@ -16,8 +21,8 @@ rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/ntpd
required_files=%%PREFIX%%/etc/ntpd.conf
-# set default
-openntpd_enable=${openntpd_enable:-"NO"}
-
load_rc_config $name
+
+: ${openntpd_enable="NO"}
+
run_rc_command "$1"