ports/135949: flowd port does not install rc.d start script
Rashid N. Achilov
citycat4 at ngs.ru
Tue Jun 23 06:20:01 UTC 2009
>Number: 135949
>Category: ports
>Synopsis: flowd port does not install rc.d start script
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 23 06:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Rashid N. Achilov
>Release: 6.4-PRERELEASE
>Organization:
LLC "AS-System Complex"
>Environment:
FreeBSD master.askd.ru 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #23: Sat Nov 1 01:12:37 NOVT 2008 root@:/usr/obj/usr/src/sys/Master i386
>Description:
net-mgmt/flowd port does not install rc.d start script, so after install user must make their own or start it manually. That's looks uncomfortable, so I have quckly adopted some of standard scripts to run flowd. Script attached. (It was renamed to flowd.txt, because web-based send-pr tool annoyed about attached file format)
>How-To-Repeat:
Install net-mgmt/flowd and try to run in without making their own script
>Fix:
Install attached script in /usr/local/etc/rc.d and add in /etc/rc.conf line
flowd_enable="YES"
Patch attached with submission follows:
#!/bin/sh
#
# $FreeBSD: ports/net-mgmt/ipcad/files/ipcad.in,v 1.1 2006/02/20 02:48:34 mnag Exp $
#
# PROVIDE: flowd
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run ipcad:
#
# flowd_enable (bool): Set it to "YES" to enable flowd.
# Default is "NO".
# flowd_conf (file): Set local of config file.
# Default is "/usr/local/etc/flowd.conf".
#
. /etc/rc.subr
name="flowd"
rcvar=${name}_enable
load_rc_config ${name}
: ${flowd_enable="NO"}
: ${flowd_conf="/usr/local/etc/flowd.conf"}
: ${flowd_flags=""}
required_files="${flowd_conf}"
command=/usr/local/sbin/flowd
command_args="-f ${flowd_conf}"
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list