diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2010-03-16 18:08:10 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2010-03-16 18:08:10 +0000 |
commit | 03fde01d757188a86eab15db86f4198fb0f98dc6 (patch) | |
tree | 8c40deb1a9903c8650bcfe0b8dcde1922258df96 /net/openntpd | |
parent | 72465817c874bbcfbf518e70bfda4de51c249ac9 (diff) | |
download | ports-03fde01d757188a86eab15db86f4198fb0f98dc6.tar.gz ports-03fde01d757188a86eab15db86f4198fb0f98dc6.zip |
Notes
Diffstat (limited to 'net/openntpd')
-rw-r--r-- | net/openntpd/Makefile | 1 | ||||
-rw-r--r-- | net/openntpd/files/openntpd.in | 15 |
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" |