Date: Mon, 22 Dec 2014 03:55:44 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r375206 - in head/net/ntimed: . files Message-ID: <201412220355.sBM3ti4o068937@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Mon Dec 22 03:55:43 2014 New Revision: 375206 URL: https://svnweb.freebsd.org/changeset/ports/375206 QAT: https://qat.redports.org/buildarchive/r375206/ Log: net/ntimed: Add rc startup script - Add ntimed rc script - Tweak GH_PROJECT, remove WRKSRC override accordingly - Remove trailing newline (portlint) Approved by: maintainer Added: head/net/ntimed/files/ head/net/ntimed/files/ntimed.in (contents, props changed) Modified: head/net/ntimed/Makefile Modified: head/net/ntimed/Makefile ============================================================================== --- head/net/ntimed/Makefile Mon Dec 22 01:02:56 2014 (r375205) +++ head/net/ntimed/Makefile Mon Dec 22 03:55:43 2014 (r375206) @@ -3,6 +3,7 @@ PORTNAME= ntimed PORTVERSION= 0.0.2014.12.21 +PORTREVISION= 1 CATEGORIES= net MAINTAINER= feld@FreeBSD.org @@ -10,14 +11,14 @@ COMMENT= Network time synchronization cl 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 <bsd.port.pre.mk> @@ -29,4 +30,3 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ntimed-client ${STAGEDIR}/${LOCALBASE}/sbin/ .include <bsd.port.post.mk> - Added: head/net/ntimed/files/ntimed.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ntimed/files/ntimed.in Mon Dec 22 03:55:43 2014 (r375206) @@ -0,0 +1,38 @@ +#!/bin/sh +# +# Author: Mark Felder <feld@FreeBSD.org> +# +# $FreeBSD$ +# + +# PROVIDE: ntimed +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable ntimed: +# ntimed_enable="YES" +# ntimed_flags="<set as needed>" + +. /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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412220355.sBM3ti4o068937>