Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2006 21:23:43 +0800 (CST)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gslin@gslin.org
Subject:   ports/104466: [PATCH] net-mgmt/fprobe: Apply rcfile
Message-ID:  <20061016132350.3DF7910F@netnews.NCTU.edu.tw>
Resent-Message-ID: <200610161400.k9GE0WZA048929@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         104466
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/fprobe: Apply rcfile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 16 14:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE-p8 FreeBSD 6.1-RELEASE-p8 #0: Fri Sep 29 03:41:50 CST 2006
>Description:
- Apply rcfile
- Bump PORTREVISION

Added file(s):
- files/fprobe.sh.in

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- fprobe-1.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net-mgmt/fprobe/Makefile /home/staff/gslin/work/ports/fprobe/Makefile
--- /usr/ports/net-mgmt/fprobe/Makefile	Fri May 12 06:49:39 2006
+++ /home/staff/gslin/work/ports/fprobe/Makefile	Mon Oct 16 21:17:14 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	fprobe
 PORTVERSION=	1.1
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -14,17 +15,18 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Tool that collects network traffic data
 
-GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+GNU_CONFIGURE=	yes
+PLIST_FILES=	sbin/fprobe
+PORTDOCS=	ChangeLog README
+SUB_LIST=	NAME=${PORTNAME}
 USE_BZIP2=	yes
+USE_RC_SUBR=	fprobe.sh
 
 MAN8=		fprobe.8
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
-
-PORTDOCS=	ChangeLog README
-PLIST_FILES=	sbin/fprobe
 
 post-install:
 .if !defined(NOPORTDOCS)
diff -ruN --exclude=CVS /usr/ports/net-mgmt/fprobe/files/fprobe.sh.in /home/staff/gslin/work/ports/fprobe/files/fprobe.sh.in
--- /usr/ports/net-mgmt/fprobe/files/fprobe.sh.in	Thu Jan  1 08:00:00 1970
+++ /home/staff/gslin/work/ports/fprobe/files/fprobe.sh.in	Mon Oct 16 21:19:03 2006
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: fprobe
+# REQUIRE: NETWORKING
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable %%NAME%%:
+#
+#%%NAME%%_enable="YES"
+#
+# See fprobe(8) for %%NAME%%_flags
+#
+
+. "%%RC_SUBR%%"
+
+name="%%NAME%%"
+rcvar=`set_rcvar`
+
+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"}
+
+run_rc_command "$1"
--- fprobe-1.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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