Bug 174539 - net-mgmt/fprobe rc script patch
net-mgmt/fprobe rc script patch
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: FreeBSD ports mailing list
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-18 13:00 UTC by olivier
Modified: 2013-01-30 16:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description olivier 2012-12-18 13:00:00 UTC
Hi,
I've got a problem with the fprobe rc script that ignore use my own fprobe_flags in the rc.conf.
Here is a small patch that fix this problem.

Fix: Applying this patch:

#cat patches/ports.fprobe.patch


name="%%NAME%%"
 rcvar=%%NAME%%_enable
+load_rc_config $name
+: ${fprope_enable:=no}
+: ${fprobe_flags:="-i lo0 127.0.0.1:2055"}

 command="%%PREFIX%%/sbin/fprobe"
-command_args="-i lo0 127.0.0.1:2055"
 pidfile="/var/run/$name.pid"

 load_rc_config "$name"--WUrQ7Am594xdoB6jaZ5bocjxvPzDTFDXThoeO81TKRWDz0zM
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- net-mgmt/fprobe/files/fprobe.in.orig        2012-12-18 13:50:22.000000000 +0100
+++ net-mgmt/fprobe/files/fprobe.in     2012-12-18 13:51:43.000000000 +0100
@@ -17,9 +17,11 @@
Comment 1 Philippe Audeoud freebsd_committer 2013-01-30 16:01:48 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!
Comment 2 dfilter freebsd_committer 2013-01-30 16:01:52 UTC
Author: jadawin
Date: Wed Jan 30 16:01:32 2013
New Revision: 311223
URL: http://svnweb.freebsd.org/changeset/ports/311223

Log:
  - Fix rc script for fprobe_flags
  
  PR:		ports/174539
  Submitted by:	Olivier Cochard-Labbe <olivier@cochard.me>

Modified:
  head/net-mgmt/fprobe/files/fprobe.in   (contents, props changed)

Modified: head/net-mgmt/fprobe/files/fprobe.in
==============================================================================
--- head/net-mgmt/fprobe/files/fprobe.in	Wed Jan 30 16:01:28 2013	(r311222)
+++ head/net-mgmt/fprobe/files/fprobe.in	Wed Jan 30 16:01:32 2013	(r311223)
@@ -18,11 +18,12 @@
 name="%%NAME%%"
 rcvar=%%NAME%%_enable
 
-command="%%PREFIX%%/sbin/fprobe"
-command_args="-i lo0 127.0.0.1:2055"
-pidfile="/var/run/$name.pid"
-
 load_rc_config "$name"
+
 : ${fprobe_enable="NO"}
+: ${fprobe_flags:="-i lo0 127.0.0.1:2055"}
+
+command="%%PREFIX%%/sbin/fprobe"
+pidfile="/var/run/$name.pid"
 
 run_rc_command "$1"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"