Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2013 16:28:59 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334328 - in head/sysutils/mbgtools: . files
Message-ID:  <201311191628.rAJGSxSN079898@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gnn
Date: Tue Nov 19 16:28:59 2013
New Revision: 334328
URL: http://svnweb.freebsd.org/changeset/ports/334328

Log:
  Directly add the rc.d script mbgsvcd into the files/ directory
  rather than copying it from the downloaded tarball.
  
  Pointed out by: makc@

Added:
  head/sysutils/mbgtools/files/mbgsvcd.in   (contents, props changed)
Modified:
  head/sysutils/mbgtools/Makefile

Modified: head/sysutils/mbgtools/Makefile
==============================================================================
--- head/sysutils/mbgtools/Makefile	Tue Nov 19 16:16:37 2013	(r334327)
+++ head/sysutils/mbgtools/Makefile	Tue Nov 19 16:28:59 2013	(r334328)
@@ -11,13 +11,8 @@ COMMENT=	Drivers and tools for Meinberg 
 
 LICENSE=	BSD
 
-USES=		kmod
-
 USE_RC_SUBR=	mbgsvcd
 
-.include <bsd.port.pre.mk>
-
-post-extract:
-	${CP} ${WRKSRC}/scripts/mbgsvcd ${FILESDIR}/mbgsvcd.in
+USES=		kmod
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Added: head/sysutils/mbgtools/files/mbgsvcd.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mbgtools/files/mbgsvcd.in	Tue Nov 19 16:28:59 2013	(r334328)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311191628.rAJGSxSN079898>