From 155bf8b7d9c1436513ace399e171ee84047c9277 Mon Sep 17 00:00:00 2001
From: Pav Lucistnik <pav@FreeBSD.org>
Date: Thu, 29 Dec 2005 15:48:38 +0000
Subject: - Allow starting on more than one interface

Reported by:	Florian C. Smeets <flo@kasimir.com>
---
 net-mgmt/arpwatch/Makefile             | 2 +-
 net-mgmt/arpwatch/files/arpwatch.sh.in | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

(limited to 'net-mgmt/arpwatch')

diff --git a/net-mgmt/arpwatch/Makefile b/net-mgmt/arpwatch/Makefile
index a5d2244d3382..6af570b3fa77 100644
--- a/net-mgmt/arpwatch/Makefile
+++ b/net-mgmt/arpwatch/Makefile
@@ -7,7 +7,7 @@
 
 PORTNAME=	arpwatch
 PORTVERSION=	2.1.a13
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 MASTER_SITES=	ftp://ftp.ee.lbl.gov/
 DISTNAME=	arpwatch-2.1a13
diff --git a/net-mgmt/arpwatch/files/arpwatch.sh.in b/net-mgmt/arpwatch/files/arpwatch.sh.in
index 12521d8ef0f8..260396a571f9 100644
--- a/net-mgmt/arpwatch/files/arpwatch.sh.in
+++ b/net-mgmt/arpwatch/files/arpwatch.sh.in
@@ -67,8 +67,9 @@ case ${arpwatch_interfaces} in
 	 if [ "$1" = "start" ]; then
  	     for interface in ${arpwatch_interfaces}; do
 		 eval options=\$arpwatch_${interface}_options
-	         command_args="-i ${interface} ${options} -f arp.${interface}.dat" 
-                 run_rc_command "$1"
+		 command_args="-i ${interface} ${options} -f arp.${interface}.dat"
+		 pidfile="/var/run/arpwatch-${interface}.pid"
+		 run_rc_command "$1"
 	     done
 	 else
              run_rc_command "$1"
-- 
cgit v1.2.3