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
|
2003-06-15 18:50:37 +00:00
|
|
|
PORTVERSION= 2.2
|
2003-07-14 02:53:03 +00:00
|
|
|
PORTREVISION= 1
|
1998-08-11 02:59:56 +00:00
|
|
|
CATEGORIES= net
|
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}
|
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-09-15 12:11:38 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libgdc.a:${PORTSDIR}/graphics/gdchart
|
2003-07-14 02:53:03 +00:00
|
|
|
LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm
|
1998-08-11 09:57:51 +00:00
|
|
|
|
2003-06-15 18:50:37 +00:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
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-06-15 18:50:37 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
|
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
|
2002-01-16 08:41:15 +00:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2002-06-24 14:51:21 +00:00
|
|
|
PLIST_SUB+= DBDIR=${DBDIR}
|
2003-07-14 02:53:03 +00:00
|
|
|
CONFIGURE_ENV= LIBS="-lcrypto -L${LOCALBASE}/lib"
|
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} \
|
2002-01-25 08:59:58 +00:00
|
|
|
--with-gdchart-root=${LOCALBASE}
|
2003-06-15 18:50:37 +00:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
TOUCH="${TOUCH}" \
|
|
|
|
MKDIR="${MKDIR}" \
|
|
|
|
CAT="${CAT}" \
|
|
|
|
OPTIONS="${OPTIONS}" \
|
|
|
|
REALCURDIR="${.CURDIR}"
|
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-06-15 18:50:37 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-06-04 22:43:38 +00:00
|
|
|
|
2003-06-15 18:50:37 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.sh
|
2002-06-24 14:51:21 +00:00
|
|
|
|
2003-06-15 18:50:37 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,-lgdchart,-lgdc,g" \
|
|
|
|
-e "s,-lglib,-lglib12,g" ${WRKSRC}/configure
|
1998-08-11 02:59:56 +00:00
|
|
|
|
|
|
|
post-install:
|
2003-06-15 18:50:37 +00:00
|
|
|
@${MKDIR} ${DBDIR}/ntop
|
|
|
|
@${MKDIR} ${PREFIX}/etc/rc.d
|
|
|
|
@${SED} -e "s#%%PREFIX%%#${PREFIX}#g" \
|
|
|
|
-e "s#%%LOGDIR%%#${LOGDIR}#g" ${FILESDIR}/ntop.sh > \
|
|
|
|
${WRKDIR}/ntop.sh
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/ntop.sh ${PREFIX}/etc/rc.d
|
2002-06-24 14:51:21 +00:00
|
|
|
.if !defined(BATCH)
|
2003-06-15 18:50:37 +00:00
|
|
|
@${SED} "s,%%LOCALBASE%%,${LOCALBASE},g" < ${PKGMESSAGE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
2002-06-24 14:51:21 +00:00
|
|
|
.endif
|
1998-08-11 02:59:56 +00:00
|
|
|
|
2002-01-24 09:15:32 +00:00
|
|
|
.include <bsd.port.post.mk>
|