svn commit: r525378 - in head/net-mgmt/fastnetmon: . files

Babak Farrokhi farrokhi at FreeBSD.org
Thu Feb 6 13:38:12 UTC 2020


Author: farrokhi
Date: Thu Feb  6 13:38:11 2020
New Revision: 525378
URL: https://svnweb.freebsd.org/changeset/ports/525378

Log:
  net-mgmt/fastnetmon: Improve RC script
  
  - Instruct fastnetmaon to read configuration file from PREFIX
  - Bump PORTREVISION
  
  PR:		241571
  Submitted by:	Leo Vandewoestijne <freebsd at dns.company>

Modified:
  head/net-mgmt/fastnetmon/Makefile
  head/net-mgmt/fastnetmon/files/fastnetmon.in

Modified: head/net-mgmt/fastnetmon/Makefile
==============================================================================
--- head/net-mgmt/fastnetmon/Makefile	Thu Feb  6 13:38:03 2020	(r525377)
+++ head/net-mgmt/fastnetmon/Makefile	Thu Feb  6 13:38:11 2020	(r525378)
@@ -4,7 +4,7 @@
 PORTNAME=	fastnetmon
 PORTVERSION=	1.1.4
 DISTVERSIONPREFIX=	v
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt security
 
 MAINTAINER=	farrokhi at FreeBSD.org

Modified: head/net-mgmt/fastnetmon/files/fastnetmon.in
==============================================================================
--- head/net-mgmt/fastnetmon/files/fastnetmon.in	Thu Feb  6 13:38:03 2020	(r525377)
+++ head/net-mgmt/fastnetmon/files/fastnetmon.in	Thu Feb  6 13:38:11 2020	(r525378)
@@ -19,10 +19,12 @@ rcvar=fastnetmon_enable
 load_rc_config "$name"
 
 : ${fastnetmon_enable:=NO}
-: ${fastnetmon_user:=fastnetmon}
+: ${fastnetmon_conf:=%%ETCDIR%%/$name.conf}
 : ${fastnetmon_flags:=--daemonize}
+: ${fastnetmon_user:=fastnetmon}
 
 command=%%PREFIX%%/bin/fastnetmon
+command_args="--configuration_file ${fastnetmon_conf} ${fastnetmon_flags}"
 pidfile=/var/run/fastnetmon/$name.pid
 
 run_rc_command "$1"


More information about the svn-ports-head mailing list