From nobody@FreeBSD.org  Fri Apr 30 06:37:29 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7E161106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Apr 2010 06:37:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 6DB648FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Apr 2010 06:37:29 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3U6bTGh056762
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Apr 2010 06:37:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o3U6bThY056761;
	Fri, 30 Apr 2010 06:37:29 GMT
	(envelope-from nobody)
Message-Id: <201004300637.o3U6bThY056761@www.freebsd.org>
Date: Fri, 30 Apr 2010 06:37:29 GMT
From: David Lay <dsl@fastmail.fm>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] sysutils/pfstat: add rc.d script for pfstatd(8)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         146176
>Category:       ports
>Synopsis:       [patch] sysutils/pfstat: add rc.d script for pfstatd(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 30 06:40:01 UTC 2010
>Closed-Date:    Tue Sep 14 02:54:48 UTC 2010
>Last-Modified:  Tue Sep 14 03:20:01 UTC 2010
>Originator:     David Lay
>Release:        
>Organization:
>Environment:
>Description:
This patch adds a rudimentary ${PREFIX}/etc/rc.d script for running the optional pfstatd daemon.  The usual /etc/rc.conf variables apply (ie. pfstatd_enable="YES", pfstatd_flags="-a [addr] -p [port] -u [user]").
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Nur pfstat.orig/Makefile pfstat/Makefile
--- pfstat.orig/Makefile	2010-03-28 17:44:00.000000000 +1100
+++ pfstat/Makefile	2010-04-29 18:51:52.000000000 +1000
@@ -21,6 +21,7 @@
 MAKE_ENV+=	__MAKE_CONF=/dev/null
 USE_ICONV=	yes
 
+USE_RC_SUBR=	pfstatd
 MAN8=		pfstat.8 \
 		pfstatd.8
 
diff -Nur pfstat.orig/files/pfstatd.in pfstat/files/pfstatd.in
--- pfstat.orig/files/pfstatd.in	1970-01-01 10:00:00.000000000 +1000
+++ pfstat/files/pfstatd.in	2010-04-29 18:43:18.000000000 +1000
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. /etc/rc.subr
+
+name="pfstatd"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/${name}"
+
+load_rc_config ${name}
+run_rc_command "$1"
+


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mlaier 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Apr 30 06:40:40 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146176 
Responsible-Changed-From-To: mlaier->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Sat Sep 11 19:47:57 UTC 2010 
Responsible-Changed-Why:  
committer & maintainer timeout (mlaier ; 134 days) / last commit: 
20080428 (866 days ago) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146176 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Tue Sep 14 02:54:48 UTC 2010 
State-Changed-Why:  
Committed, Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146176 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/146176: commit references a PR
Date: Tue, 14 Sep 2010 03:10:09 +0000 (UTC)

 pgollucci    2010-09-14 02:54:42 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils/pfstat      Makefile 
   Log:
   - Add rc.d script
   
   PR:             ports/146176
   Submitted by:   David Lay <dsl@fastmail.fm>
   Approved by:    maintainer timeout (mlaier ; 134 days)
   
   Revision  Changes    Path
   1.20      +2 -1      ports/sysutils/pfstat/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
