1998-08-11 02:59:56 +00:00
|
|
|
# New ports collection makefile for: ntop
|
|
|
|
# Date created: 10 August 1998
|
|
|
|
# Whom: Bill Fumerola <billf@chc-chimes.com>
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1998-08-11 02:59:56 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= ntop
|
2004-03-23 15:06:46 +00:00
|
|
|
PORTVERSION= 3.0
|
|
|
|
CATEGORIES= net ipv6
|
2003-06-15 18:50:37 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-06-24 14:51:21 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-03-13 15:57:13 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/pre/}
|
2002-01-16 08:41:15 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
1998-08-11 02:59:56 +00:00
|
|
|
|
2003-12-21 18:35:30 +00:00
|
|
|
MAINTAINER= clement@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= Network monitoring tool with command line and web interfaces
|
1998-08-11 02:59:56 +00:00
|
|
|
|
2004-03-13 15:57:13 +00:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
|
|
|
gdbm.3:${PORTSDIR}/databases/gdbm \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2002-01-16 08:41:15 +00:00
|
|
|
|
2003-06-15 18:50:37 +00:00
|
|
|
DBDIR?= /var/db
|
2002-06-24 14:51:21 +00:00
|
|
|
|
2003-07-14 02:53:03 +00:00
|
|
|
USE_GETOPT_LONG=yes
|
2002-01-16 08:41:15 +00:00
|
|
|
USE_GMAKE= yes
|
2003-06-15 18:50:37 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_OPENSSL= yes
|
2004-07-09 17:43:11 +00:00
|
|
|
USE_INC_LIBTOOL_VER=13
|
2002-01-16 08:41:15 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2004-03-13 15:57:13 +00:00
|
|
|
PLIST_SUB+= DBDIR=${DBDIR} \
|
|
|
|
SHLIB=${PORTVERSION:S/.p/pre/}
|
2003-06-15 18:50:37 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-01-16 08:41:15 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=${DBDIR} \
|
2003-06-15 18:50:37 +00:00
|
|
|
--with-ossl-root=${OPENSSLBASE} \
|
2003-12-12 21:03:57 +00:00
|
|
|
--with-gdbm-root=${LOCALBASE} \
|
|
|
|
--with-gd-root=${LOCALBASE} \
|
|
|
|
--with-libpng-root=${LOCALBASE} \
|
|
|
|
--with-zlib-root=/usr
|
2002-01-25 08:59:58 +00:00
|
|
|
|
2002-06-24 14:51:21 +00:00
|
|
|
MAN8= ntop.8
|
2002-01-16 08:41:15 +00:00
|
|
|
|
2003-12-12 21:03:57 +00:00
|
|
|
##
|
|
|
|
## Available knobs:
|
|
|
|
## WITH_LOCALE: Enable locale (i18n) support.
|
|
|
|
## WITH_PCAP_PORT: Use libpcap from ports.
|
|
|
|
## WITH_XMLDUMP: Enable XML Dump support.
|
|
|
|
##
|
|
|
|
## WITHOUT_TCPWRAPPER: Disable TCP wrapper support.
|
|
|
|
##
|
2004-02-07 16:40:37 +00:00
|
|
|
OPTIONS= LOCALE "Enable locale (i18n) support." Off \
|
|
|
|
PCAP_PORT "Use libpcap from ports." Off \
|
|
|
|
XMLDUMP "Enable XML Dump support." Off \
|
|
|
|
TCPWRAPPER "Enable TCP wrapper support" On
|
2003-06-04 22:43:38 +00:00
|
|
|
|
2004-02-07 16:40:37 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_TCPWRAPPER)
|
2003-12-12 21:03:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-tcpwrap
|
|
|
|
.endif
|
2002-06-24 14:51:21 +00:00
|
|
|
|
2004-03-13 15:57:13 +00:00
|
|
|
.if defined(WITH_PCAP_PORT)
|
2003-12-12 21:03:57 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
|
|
|
|
PCAP_ROOT= ${LOCALBASE}
|
|
|
|
.else
|
2004-03-13 15:57:13 +00:00
|
|
|
PCAP_ROOT= /usr
|
2003-12-12 21:03:57 +00:00
|
|
|
.endif
|
2004-03-13 15:57:13 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pcap-root=${PCAP_ROOT}
|
2003-12-12 21:03:57 +00:00
|
|
|
|
|
|
|
.if defined(WITH_LOCALE)
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2003-12-12 21:03:57 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-i18n \
|
|
|
|
--with-localedir=${LOCALBASE}/share/locale
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XMLDUMP)
|
|
|
|
LIB_DEPENDS+= gdome.8:${PORTSDIR}/textproc/gdome2
|
2004-03-13 15:57:13 +00: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 21:03:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything:: show-options
|
|
|
|
|
|
|
|
show-options:
|
|
|
|
@${SED} -ne 's/^##//p' ${.CURDIR}/Makefile
|
|
|
|
|
2004-03-13 15:57:13 +00:00
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/configureextra/FREEBSD
|
1998-08-11 02:59:56 +00:00
|
|
|
|
|
|
|
post-install:
|
2003-06-15 18:50:37 +00:00
|
|
|
@${MKDIR} ${DBDIR}/ntop
|
2004-03-13 15:57:13 +00:00
|
|
|
@${CHOWN} -R nobody:nobody ${DBDIR}/ntop
|
|
|
|
@${RMDIR} ${PREFIX}/lib/plugins
|
|
|
|
@${SED} -e "s#%%PREFIX%%#${PREFIX}#g" ${FILESDIR}/ntop.sh > \
|
2003-06-15 18:50:37 +00:00
|
|
|
${WRKDIR}/ntop.sh
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/ntop.sh ${PREFIX}/etc/rc.d
|
|
|
|
@${SED} "s,%%LOCALBASE%%,${LOCALBASE},g" < ${PKGMESSAGE}
|
|
|
|
|
2004-02-07 16:40:37 +00:00
|
|
|
.include <bsd.port.post.mk>
|