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
|
2002-06-24 14:51:21 +00:00
|
|
|
PORTVERSION= 2.0.99.r2
|
2002-09-15 12:11:38 +00:00
|
|
|
PORTREVISION= 2
|
1998-08-11 02:59:56 +00:00
|
|
|
CATEGORIES= net
|
2002-06-24 14:51:21 +00:00
|
|
|
MASTER_SITES= http://luca.ntop.org/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S|.r|-rc|}
|
2002-01-16 08:41:15 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
1998-08-11 02:59:56 +00:00
|
|
|
|
2003-02-17 14:42:02 +00:00
|
|
|
MAINTAINER= ports@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
|
|
|
|
2002-01-16 08:41:15 +00:00
|
|
|
# Besides the required dependencies listed here, this port can optionally
|
|
|
|
# make use of sysutils/lsof and security/nmap if installed.
|
2002-09-15 12:11:38 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libgdc.a:${PORTSDIR}/graphics/gdchart
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libgdc.a:${PORTSDIR}/graphics/gdchart
|
2003-01-03 08:26:35 +00:00
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
|
1998-08-11 09:57:51 +00:00
|
|
|
|
2002-06-24 14:51:21 +00:00
|
|
|
# ntop will store its runtime database files in ${DBDIR}/ntop/
|
2002-01-16 08:41:15 +00:00
|
|
|
DBDIR?= /var/db
|
|
|
|
|
2002-06-24 14:51:21 +00:00
|
|
|
# The default startup script in ${LOCALBASE}/etc/rc.d will invoke
|
|
|
|
# with a flag to force it to log to ${LOGDIR}
|
|
|
|
LOGDIR?= /var/log
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/RC2/${PORTNAME}
|
2002-01-16 08:41:15 +00:00
|
|
|
USE_AUTOMAKE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2002-06-24 14:51:21 +00:00
|
|
|
PLIST_SUB+= DBDIR=${DBDIR}
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2002-01-16 08:41:15 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=${DBDIR} \
|
2002-01-24 09:15:32 +00:00
|
|
|
--with-gdbm-root=${LOCALBASE} \
|
2002-01-25 08:59:58 +00:00
|
|
|
--with-gdchart-root=${LOCALBASE}
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_TCPWRAP)
|
|
|
|
CONFIGURE_ARGS+= --enable-tcpwrap
|
|
|
|
.endif
|
2002-01-24 09:15:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 400014
|
2002-05-07 09:18:40 +00:00
|
|
|
LIB_DEPENDS+= ssl.3:${PORTSDIR}/security/openssl
|
2002-01-24 09:15:32 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ossl-root=${LOCALBASE}
|
|
|
|
.endif
|
2002-01-16 08:41:15 +00:00
|
|
|
|
|
|
|
MAN1= intop.1
|
2002-06-24 14:51:21 +00:00
|
|
|
MAN8= ntop.8
|
2002-01-16 08:41:15 +00:00
|
|
|
|
|
|
|
# Remove included dependencies as a precaution against polluting the
|
|
|
|
# configuration. Not strictly necessary.
|
|
|
|
pre-configure:
|
2002-06-24 14:51:21 +00:00
|
|
|
@ ${RM} -rf ${WRKDIR}/RC2/gdchart*
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@ ${SED} -e 's#%%LOCALBASE%%#${LOCALBASE}#g' \
|
|
|
|
pkg-message > ${PKGMESSAGE}
|
1998-08-11 02:59:56 +00:00
|
|
|
|
|
|
|
post-install:
|
2002-01-16 08:41:15 +00:00
|
|
|
@ ${MKDIR} ${DBDIR}/ntop
|
|
|
|
@ ${MKDIR} ${PREFIX}/etc/rc.d
|
2002-06-24 14:51:21 +00:00
|
|
|
@ ${SED} -e "s#%%PREFIX%%#${PREFIX}#g" \
|
|
|
|
-e "s#%%LOGDIR%%#${LOGDIR}#g" ${FILESDIR}/ntop.sh > \
|
2002-01-16 08:41:15 +00:00
|
|
|
${WRKDIR}/ntop.sh
|
2002-06-24 14:51:21 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKDIR}/ntop.sh ${PREFIX}/etc/rc.d
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
1998-08-11 02:59:56 +00:00
|
|
|
|
2002-01-24 09:15:32 +00:00
|
|
|
.include <bsd.port.post.mk>
|