From f3983bc2b19e98afb1f31c862437a1ba461db055 Mon Sep 17 00:00:00 2001
From: Edwin Groothuis <edwin@FreeBSD.org>
Date: Sat, 17 Apr 2004 23:02:28 +0000
Subject: When running ngrep as non-root, the program tried to drop the
 priveleges too. This is now disabled via a configure option.

---
 net/ngrep/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'net/ngrep')

diff --git a/net/ngrep/Makefile b/net/ngrep/Makefile
index 4b0d0a7c6f9e..0cd7c62d3084 100644
--- a/net/ngrep/Makefile
+++ b/net/ngrep/Makefile
@@ -8,6 +8,7 @@
 
 PORTNAME=	ngrep
 PORTVERSION=	1.42
+PORTREVISION=	1
 CATEGORIES=	net security
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -16,7 +17,9 @@ MAINTAINER=	edwin@mavetju.org
 COMMENT=	Network grep
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-pcre --disable-pcap-restart
+CONFIGURE_ARGS=	--with-pcre \
+		--disable-pcap-restart \
+		--enable-dropprivs-onlyroot
 ALL_TARGET=	ngrep
 USE_BZIP2=	yes
 
-- 
cgit v1.2.3