1998-08-11 04:59:56 +02:00
|
|
|
# New ports collection makefile for: ntop
|
|
|
|
# Date created: 10 August 1998
|
|
|
|
# Whom: Bill Fumerola <billf@chc-chimes.com>
|
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-08-11 04:59:56 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= ntop
|
2005-11-01 11:04:22 +01:00
|
|
|
PORTVERSION= 3.2
|
2006-09-21 11:06:48 +02:00
|
|
|
PORTREVISION= 3
|
2005-01-16 12:13:37 +01:00
|
|
|
CATEGORIES= net
|
2003-06-15 20:50:37 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-06-24 16:51:21 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-03-13 16:57:13 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/pre/}
|
2002-01-16 09:41:15 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
1998-08-11 04:59:56 +02:00
|
|
|
|
2006-08-31 06:21:27 +02:00
|
|
|
MAINTAINER= wxs@atarininja.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Network monitoring tool with command line and web interfaces
|
1998-08-11 04:59:56 +02:00
|
|
|
|
2004-03-13 16:57:13 +01:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
|
|
|
gdbm.3:${PORTSDIR}/databases/gdbm \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2002-01-16 09:41:15 +01:00
|
|
|
|
2006-09-21 11:06:48 +02:00
|
|
|
RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz \
|
2006-09-21 12:19:45 +02:00
|
|
|
${X11BASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts
|
2006-09-21 11:06:48 +02:00
|
|
|
|
2003-06-15 20:50:37 +02:00
|
|
|
DBDIR?= /var/db
|
2002-06-24 16:51:21 +02:00
|
|
|
|
2003-07-14 04:53:03 +02:00
|
|
|
USE_GETOPT_LONG=yes
|
2006-03-22 20:25:52 +01:00
|
|
|
USE_GNOME= libxml2
|
2002-01-16 09:41:15 +01:00
|
|
|
USE_GMAKE= yes
|
2003-06-15 20:50:37 +02:00
|
|
|
USE_OPENSSL= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-01-16 09:41:15 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2006-03-22 20:25:52 +01:00
|
|
|
PLIST_SUB= DBDIR=${DBDIR} \
|
2004-03-13 16:57:13 +01:00
|
|
|
SHLIB=${PORTVERSION:S/.p/pre/}
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-01-16 09:41:15 +01:00
|
|
|
CONFIGURE_ARGS= --localstatedir=${DBDIR} \
|
2003-06-15 20:50:37 +02:00
|
|
|
--with-ossl-root=${OPENSSLBASE} \
|
2003-12-12 22:03:57 +01:00
|
|
|
--with-gdbm-root=${LOCALBASE} \
|
|
|
|
--with-gd-root=${LOCALBASE} \
|
|
|
|
--with-libpng-root=${LOCALBASE} \
|
|
|
|
--with-zlib-root=/usr
|
2005-01-16 12:13:37 +01:00
|
|
|
# we currently disable IPv6
|
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
2002-01-25 09:59:58 +01:00
|
|
|
|
2002-06-24 16:51:21 +02:00
|
|
|
MAN8= ntop.8
|
2002-01-16 09:41:15 +01:00
|
|
|
|
2006-03-22 20:25:52 +01:00
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
SUB_FILES= pkg-deinstall
|
|
|
|
SUB_LIST= DBDIR=${DBDIR}
|
2005-12-12 08:03:16 +01:00
|
|
|
USE_RC_SUBR= ntop.sh
|
|
|
|
|
2003-12-12 22:03:57 +01:00
|
|
|
##
|
|
|
|
## Available knobs:
|
|
|
|
## WITH_LOCALE: Enable locale (i18n) support.
|
|
|
|
## WITH_PCAP_PORT: Use libpcap from ports.
|
|
|
|
## WITH_XMLDUMP: Enable XML Dump support.
|
2006-03-22 20:25:52 +01:00
|
|
|
## WITH_ASDATA: Install AS data.
|
2003-12-12 22:03:57 +01:00
|
|
|
## WITHOUT_TCPWRAPPER: Disable TCP wrapper support.
|
|
|
|
##
|
2004-02-07 17:40:37 +01:00
|
|
|
OPTIONS= LOCALE "Enable locale (i18n) support." Off \
|
|
|
|
PCAP_PORT "Use libpcap from ports." Off \
|
|
|
|
XMLDUMP "Enable XML Dump support." Off \
|
2006-03-22 20:25:52 +01:00
|
|
|
ASDATA "Install AS data." Off \
|
2004-02-07 17:40:37 +01:00
|
|
|
TCPWRAPPER "Enable TCP wrapper support" On
|
2003-06-05 00:43:38 +02:00
|
|
|
|
2004-02-07 17:40:37 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_TCPWRAPPER)
|
2003-12-12 22:03:57 +01:00
|
|
|
CONFIGURE_ARGS+= --with-tcpwrap
|
|
|
|
.endif
|
2002-06-24 16:51:21 +02:00
|
|
|
|
2004-03-13 16:57:13 +01:00
|
|
|
.if defined(WITH_PCAP_PORT)
|
2003-12-12 22:03:57 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
|
2006-03-22 20:25:52 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pcap-root=${LOCALBASE}
|
2003-12-12 22:03:57 +01:00
|
|
|
.else
|
2006-03-22 20:25:52 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pcap-root=/usr
|
2003-12-12 22:03:57 +01:00
|
|
|
.endif
|
|
|
|
|
2006-03-22 20:25:52 +01:00
|
|
|
.if defined(WITH_LOCALE) && !defined(WITHOUT_NLS)
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2003-12-12 22:03:57 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-i18n \
|
|
|
|
--with-localedir=${LOCALBASE}/share/locale
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XMLDUMP)
|
2006-03-22 20:25:52 +01:00
|
|
|
BROKEN= Does not build with XML dump support
|
2003-12-12 22:03:57 +01:00
|
|
|
LIB_DEPENDS+= gdome.8:${PORTSDIR}/textproc/gdome2
|
2004-03-13 16:57:13 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include/libxml2 \
|
|
|
|
-I${LOCALBASE}/include/libxml2/libxml \
|
|
|
|
-I${LOCALBASE}/include/libgdome \
|
|
|
|
-I${LOCALBASE}/include/glib-2.0"
|
2003-12-12 22:03:57 +01:00
|
|
|
.endif
|
|
|
|
|
2006-03-22 20:25:52 +01:00
|
|
|
.if defined(WITH_ASDATA)
|
|
|
|
INSTALL_TARGET+= install install-data-as
|
|
|
|
PLIST_SUB+= ASDATA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ASDATA="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-03-13 16:57:13 +01:00
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/configureextra/FREEBSD
|
1998-08-11 04:59:56 +02:00
|
|
|
|
|
|
|
post-install:
|
2003-06-15 20:50:37 +02:00
|
|
|
@${MKDIR} ${DBDIR}/ntop
|
2004-03-13 16:57:13 +01:00
|
|
|
@${CHOWN} -R nobody:nobody ${DBDIR}/ntop
|
|
|
|
@${RMDIR} ${PREFIX}/lib/plugins
|
2003-06-15 20:50:37 +02:00
|
|
|
|
2004-02-07 17:40:37 +01:00
|
|
|
.include <bsd.port.post.mk>
|