Index: head/net/ntimed/Makefile =================================================================== --- head/net/ntimed/Makefile (revision 375205) +++ head/net/ntimed/Makefile (revision 375206) @@ -1,32 +1,32 @@ # Created by: Mark Felder # $FreeBSD$ PORTNAME= ntimed PORTVERSION= 0.0.2014.12.21 +PORTREVISION= 1 CATEGORIES= net MAINTAINER= feld@FreeBSD.org COMMENT= Network time synchronization client LICENSE= BSD2CLAUSE +USE_RC_SUBR= ntimed + USE_GITHUB= yes GH_ACCOUNT= bsdphk -GH_PROJECT= ntimed +GH_PROJECT= Ntimed GH_COMMIT= f3810d7 GH_TAGNAME= ${GH_COMMIT} -WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-Ntimed-${GH_COMMIT} - PLIST_FILES= sbin/ntimed-client .include do-configure: cd ${WRKSRC} && ${SH} configure do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ntimed-client ${STAGEDIR}/${LOCALBASE}/sbin/ .include - Index: head/net/ntimed/files/ntimed.in =================================================================== --- head/net/ntimed/files/ntimed.in (nonexistent) +++ head/net/ntimed/files/ntimed.in (revision 375206) @@ -0,0 +1,38 @@ +#!/bin/sh +# +# Author: Mark Felder +# +# $FreeBSD$ +# + +# PROVIDE: ntimed +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable ntimed: +# ntimed_enable="YES" +# ntimed_flags="" + +. /etc/rc.subr + +name=ntimed +rcvar=ntimed_enable + +load_rc_config $name + +: ${ntimed_enable:=NO} +: ${ntimed_flags:="0.freebsd.pool.ntp.org"} + +start_precmd=ntimed_prestart +pidfile=/var/run/ntimed.pid +procname="/usr/local/sbin/ntimed-client" +command=/usr/sbin/daemon +command_args=" -p ${pidfile} ${procname} ${ntimed_flags}" + +ntimed_prestart() +{ + # Have to empty rc_flags so they don't get passed to daemon(8) + rc_flags="" +} + +run_rc_command "$1" Property changes on: head/net/ntimed/files/ntimed.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property