ports/94809: [MAINTAINER]: Add WITH_ASDATA knob to net/ntop
Wesley Shields
wxs at csh.rit.edu
Tue Mar 21 20:30:47 UTC 2006
>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 at 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 at FreeBSD.org> (original port)
-- Johann Visagie <wjv at FreeBSD.org> (maintainer since 2.0)
+-- Wesley Shields <wxs at csh.rit.edu> (maintainer since Dec 2005)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list