Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2016 08:52:27 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r411640 - in head/sysutils/openhpi: . files
Message-ID:  <201603220852.u2M8qR53038731@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Tue Mar 22 08:52:27 2016
New Revision: 411640
URL: https://svnweb.freebsd.org/changeset/ports/411640

Log:
  Improve the rc script a bit.  "-c <conf>" isn't optional.  Also use
  %%ETCDIR%% as suggested by jbeich.

Modified:
  head/sysutils/openhpi/Makefile
  head/sysutils/openhpi/files/openhpid.in

Modified: head/sysutils/openhpi/Makefile
==============================================================================
--- head/sysutils/openhpi/Makefile	Tue Mar 22 07:56:44 2016	(r411639)
+++ head/sysutils/openhpi/Makefile	Tue Mar 22 08:52:27 2016	(r411640)
@@ -2,6 +2,7 @@
 
 PORTNAME=	openhpi
 PORTVERSION=	3.6.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	SF/openhpi/openhpi-stable/${PORTVERSION}/
 

Modified: head/sysutils/openhpi/files/openhpid.in
==============================================================================
--- head/sysutils/openhpi/files/openhpid.in	Tue Mar 22 07:56:44 2016	(r411639)
+++ head/sysutils/openhpi/files/openhpid.in	Tue Mar 22 08:52:27 2016	(r411640)
@@ -9,16 +9,17 @@
 # Add the following to /etc/rc.conf[.local] to enable this service
 #
 # openhpid_enable="YES"
-# openhpid_flags="-c %%PREFIX%%/etc/openhpi/openhpi.conf"
 #
 
 . /etc/rc.subr
 
-name="openhpid"
-rcvar="openhpid_enable"
-command="%%PREFIX%%/sbin/openhpid"
+: ${openhpid_enable:=NO} ${openhpid_config:=%%ETCDIR%%/openhpi.conf}
 
-: ${openhpid_enable=NO} ${openhpid_flags=-c %%PREFIX%%/etc/openhpi/openhpi.conf}
+name=openhpid
+rcvar=openhpid_enable
+command="%%PREFIX%%/sbin/openhpid"
+command_args="-c ${openhpid_config}"
+required_files="${openhpid_config}"
 
 load_rc_config ${name}
 run_rc_command "$1"



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