Directly add the rc.d script mbgsvcd into the files/ directory

rather than copying it from the downloaded tarball.

Pointed out by: makc@
This commit is contained in:
George V. Neville-Neil 2013-11-19 16:28:59 +00:00
parent 0432feadce
commit 7bd535968e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334328
2 changed files with 30 additions and 7 deletions

View File

@ -11,13 +11,8 @@ COMMENT= Drivers and tools for Meinberg PTP/GPS cards
LICENSE= BSD
USES= kmod
USE_RC_SUBR= mbgsvcd
.include <bsd.port.pre.mk>
USES= kmod
post-extract:
${CP} ${WRKSRC}/scripts/mbgsvcd ${FILESDIR}/mbgsvcd.in
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,28 @@
#!/bin/sh
#
# $Id: mbgsvcd 1.1 2011/07/06 13:26:01 martin TEST $
#
# $FreeBSD$
#
# PROVIDE: mbgsvcd
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="mbgsvcd"
rcvar=`set_rcvar`
command="/usr/local/sbin/${name}"
load_rc_config $name
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#
## utility_enable=${utility_enable-"NO"}
## utility_pidfile=${utility_pidfile-"/var/run/utility.pid"}
## pidfile="${utility_pidfile}"
run_rc_command "$1"