Index: Makefile =================================================================== --- Makefile (revision 527488) +++ Makefile (working copy) @@ -15,7 +15,7 @@ USERS= chronyd GROUPS= chronyd -USES= cpe gmake libedit +USES= cpe gmake libedit pkgconfig CPE_VENDOR= tuxfamily HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} \ @@ -46,7 +46,6 @@ NSS_BROKEN= Crashes on startup with NSS. See https://bugs.freebsd.org/223840 NSS_CONFIGURE_OFF= --without-nss NSS_LIB_DEPENDS= libfreebl3.so:security/nss -NSS_USES= pkgconfig post-patch: @cd ${WRKSRC}/examples && \ Index: files/chronyd.in =================================================================== --- files/chronyd.in (revision 527488) +++ files/chronyd.in (working copy) @@ -4,17 +4,32 @@ # # PROVIDE: chronyd # REQUIRE: DAEMON +# KEYWORD: nojail shutdown # +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# chronyd_enable (bool): Set it to "YES" to enable chronyd +# Default is "NO" +# chronyd_config (str): Set full path to configuration file. +# Default is "%%PREFIX%%/etc/chrony.conf" +# chronyd_flags (str): Flags passed to chronyd(8) +# Default is "" +# . /etc/rc.subr name=chronyd rcvar=chronyd_enable -command=%%PREFIX%%/sbin/${name} -rc_flags="${chronyd_flags}" load_rc_config ${name} -: ${chronyd_enable="NO"} +: ${chronyd_enable:="NO"} +: ${chronyd_config:="%%PREFIX%%/etc/chrony.conf"} +command=%%PREFIX%%/sbin/${name} +command_args="-f ${chronyd_config}" +pidfile=/var/run/chrony/${name}.pid +required_files=${chronyd_config} + run_rc_command "$1"