2003-04-05 08:20:27 +00:00
|
|
|
# New ports collection makefile for: NetAMS
|
|
|
|
# Date created: 9 December 2002
|
|
|
|
# Whom: jura@happychance.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= netams
|
|
|
|
PORTVERSION= 3.1
|
2003-06-19 20:13:20 +00:00
|
|
|
PORTREVISION= 0
|
2003-04-05 08:20:27 +00:00
|
|
|
CATEGORIES= net
|
2003-06-19 20:13:20 +00:00
|
|
|
MASTER_SITES= http://www.netams.com/files/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.1563
|
2003-04-05 08:20:27 +00:00
|
|
|
|
|
|
|
MAINTAINER= jura@happychance.com
|
|
|
|
COMMENT= Network Traffic Accounting and Monitoring Software
|
|
|
|
|
2003-06-19 20:13:20 +00:00
|
|
|
USE_SUBMAKE= yes
|
2003-04-05 08:20:27 +00:00
|
|
|
|
2003-06-19 20:13:20 +00:00
|
|
|
MAN8= netams.8
|
|
|
|
MANCOMPRESSED= no
|
2003-04-05 08:20:27 +00:00
|
|
|
|
2003-06-19 20:13:20 +00:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
PREFIX="${PREFIX}" \
|
|
|
|
TOUCH="${TOUCH}" \
|
|
|
|
MKDIR="${MKDIR}" \
|
|
|
|
REALCURDIR="${.CURDIR}" \
|
|
|
|
WITH_MYSQL="${WITH_MYSQL}" \
|
|
|
|
WITH_MYSQL40="${WITH_MYSQL40}" \
|
|
|
|
WITH_MYSQL41="${WITH_MYSQL41}" \
|
|
|
|
WITH_PGSQL="${WITH_PGSQL}" \
|
|
|
|
WITH_DEBUG="${WITH_DEBUG}" \
|
|
|
|
LOG_DROP="${LOG_DROP}"
|
2003-04-05 08:20:27 +00:00
|
|
|
|
2003-06-19 20:13:20 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-04-05 08:20:27 +00:00
|
|
|
|
2003-12-21 18:39:02 +00:00
|
|
|
.if ${OSVERSION} >= 500113
|
|
|
|
BROKEN= "Does not compile on FreeBSD ${OSVERSION}"
|
|
|
|
.endif
|
|
|
|
|
2003-06-19 20:13:20 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.netams
|
2003-04-05 08:20:27 +00:00
|
|
|
|
2003-06-19 20:13:20 +00:00
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
2003-04-05 08:20:27 +00:00
|
|
|
.endif
|
|
|
|
|
2003-06-19 20:13:20 +00:00
|
|
|
MAKE_ENV+= DEFINE="${DEFINE}" FLAGS="${FLAGS}" LIB="${LIB}"
|
|
|
|
|
2003-04-05 08:20:27 +00:00
|
|
|
do-install:
|
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/src/netams ${PREFIX}/libexec/netams
|
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/src/netamsctl ${PREFIX}/bin/netamsctl
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/addon/netams.cfg ${PREFIX}/etc/netams.conf.sample
|
|
|
|
@ ${INSTALL_SCRIPT} ${FILESDIR}/netams.sh ${PREFIX}/etc/rc.d/netams.sh.sample
|
|
|
|
@ ${INSTALL_MAN} ${WRKSRC}/doc/netams.8 ${PREFIX}/man/man8
|
|
|
|
@ ${MKDIR} ${EXAMPLESDIR}/cgi-bin
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/addon/.netamsctl.rc ${EXAMPLESDIR}/
|
|
|
|
.for example in netams-nat-network.cfg netams-netflow.cfg netams.cfg netams-simple.cfg
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/${example} ${EXAMPLESDIR}/
|
|
|
|
.endfor
|
2003-06-19 20:13:20 +00:00
|
|
|
.for cgi in logo.gif netams_api.pl netams_graph.cgi weblogin.tem netams_example.cgi weblogin.cgi
|
2003-04-05 08:20:27 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/cgi-bin/${cgi} ${EXAMPLESDIR}/cgi-bin/
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in documentation-en.html diagram-1.gif net-1-1a.gif net-1-2a.gif net-1-3a.gif logo.gif
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message|${SED} 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g'
|
2003-06-19 20:13:20 +00:00
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
2003-04-05 08:20:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|