Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2006 15:40:50 -0500 (EST)
From:      Wesley Shields <wxs@csh.rit.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/94809: [MAINTAINER]: Add WITH_ASDATA knob to net/ntop
Message-ID:  <200603212040.k2LKeolF093615@syn.csh.rit.edu>
Resent-Message-ID: <200603212030.k2LKUV1h031027@freefall.freebsd.org>

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

>Number:         94809
>Category:       ports
>Synopsis:       [MAINTAINER]: Add WITH_ASDATA knob to net/ntop
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 21 20:30:31 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Wesley Shields
>Release:        FreeBSD 6.0-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD syn 6.0-RELEASE-p2 FreeBSD 6.0-RELEASE-p2 #1: Wed Jan 11 11:57:33 EST 2006 root@syn:/usr/obj/usr/src/sys/GENERIC i386

>Description:
As has been requested by some users I've added a knob to install AS data
with ntop.  This patch assumes that ports/94672 has been applied.

And while I'm at it add myself to pkg-descr.

>How-To-Repeat:
N/A

>Fix:

diff -ruN net/ntop.orig/Makefile net/ntop/Makefile
--- net/ntop.orig/Makefile	Tue Mar 21 14:43:21 2006
+++ net/ntop/Makefile	Tue Mar 21 14:39:43 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	ntop
 PORTVERSION=	3.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -56,12 +56,14 @@
 ##    WITH_LOCALE:        Enable locale (i18n) support.
 ##    WITH_PCAP_PORT:     Use libpcap from ports.
 ##    WITH_XMLDUMP:       Enable XML Dump support.
+##    WITH_ASDATA:        Install AS data.
 ##
 ##    WITHOUT_TCPWRAPPER: Disable TCP wrapper support.
 ##
 OPTIONS=	LOCALE "Enable locale (i18n) support." Off \
 		PCAP_PORT "Use libpcap from ports." Off \
 		XMLDUMP "Enable XML Dump support." Off \
+		ASDATA "Install AS data." Off \
 		TCPWRAPPER "Enable TCP wrapper support" On
 
 .include <bsd.port.pre.mk>
@@ -93,6 +95,10 @@
 			-I${LOCALBASE}/include/glib-2.0"
 .endif
 
+.if defined(WITH_ASDATA)
+PLIST_FILES+=	etc/ntop/AS-list.txt.gz
+.endif
+
 post-extract:
 	@${RM} ${WRKSRC}/configureextra/FREEBSD
 
@@ -103,5 +109,8 @@
 	@if [ ! -f ${DBDIR}/ntop/ntop_pw.db ]; then \
 		${PREFIX}/bin/ntop -u nobody -A; \
 	fi
+.if defined(WITH_ASDATA)
+	(cd ${WRKSRC} && ${GMAKE} install-data-as)
+.endif
 
 .include <bsd.port.post.mk>
diff -ruN net/ntop.orig/pkg-descr net/ntop/pkg-descr
--- net/ntop.orig/pkg-descr	Fri Jan 25 03:59:58 2002
+++ net/ntop/pkg-descr	Tue Mar 21 08:57:10 2006
@@ -7,3 +7,4 @@
 
 -- Bill Fumerola  <billf@FreeBSD.org> (original port)
 -- Johann Visagie <wjv@FreeBSD.org>   (maintainer since 2.0)
+-- Wesley Shields <wxs@csh.rit.edu>   (maintainer since Dec 2005)
>Release-Note:
>Audit-Trail:
>Unformatted:



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