2005-04-16 12:33:07 +02:00
|
|
|
# New ports collection makefile for: nfsen
|
|
|
|
# Date created: 25 March 2005
|
|
|
|
# Whom: janos.mohacsi@bsd.hu
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nfsen
|
2009-07-10 01:29:49 +02:00
|
|
|
PORTVERSION= 1.3.2
|
2010-03-31 22:58:26 +02:00
|
|
|
PORTREVISION= 1
|
2005-04-16 12:33:07 +02:00
|
|
|
CATEGORIES= net-mgmt
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION} \
|
2005-09-09 15:48:43 +02:00
|
|
|
http://nfsen.sourceforge.net/
|
2009-08-22 02:32:25 +02:00
|
|
|
|
2005-04-16 12:33:07 +02:00
|
|
|
|
|
|
|
MAINTAINER= janos.mohacsi@bsd.hu
|
|
|
|
COMMENT= Web based frontend to nfdump netflow collector
|
|
|
|
|
2007-07-05 08:19:49 +02:00
|
|
|
RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool \
|
2008-06-24 06:40:05 +02:00
|
|
|
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
|
2006-04-25 20:22:23 +02:00
|
|
|
nfdump:${PORTSDIR}/net-mgmt/nfdump
|
2005-04-16 12:33:07 +02:00
|
|
|
|
2005-05-29 21:32:04 +02:00
|
|
|
USE_ICONV= yes
|
2005-04-16 12:33:07 +02:00
|
|
|
USE_PERL5= yes
|
2006-11-12 20:17:30 +01:00
|
|
|
USE_PHP= session pcre sockets
|
2005-04-16 12:33:07 +02:00
|
|
|
NO_BUILD= yes
|
2005-09-09 15:48:43 +02:00
|
|
|
PLIST_SUB+= PORTNAME=${PORTNAME}
|
2010-03-31 22:58:26 +02:00
|
|
|
USE_RC_SUBR= nfsen
|
2005-09-09 15:48:43 +02:00
|
|
|
|
2008-07-23 03:03:18 +02:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
IGNORE= needs running syslogd
|
|
|
|
.endif
|
|
|
|
|
2006-03-15 14:35:54 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' -e 's,%%PORTNAME%%,${PORTNAME},' \
|
2005-09-09 15:48:43 +02:00
|
|
|
${WRKSRC}/etc/nfsen-dist.conf
|
2006-03-15 14:35:54 +01:00
|
|
|
@${RM} ${WRKSRC}/etc/nfsen-dist.conf.*
|
2006-04-25 20:22:23 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,%%PERL%%,${PERL},' -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/install.pl
|
2010-03-31 22:58:26 +02:00
|
|
|
@${RM} ${WRKSRC}/libexec/NfSenRRD.pm.orig
|
2005-04-16 12:33:07 +02:00
|
|
|
|
|
|
|
do-install:
|
2006-03-15 14:35:54 +01:00
|
|
|
@${MKDIR} ${PREFIX}/var/${PORTNAME}/profiles/live
|
|
|
|
@${MKDIR} ${PREFIX}/libexec/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/installer-items/CopyRecursive.pm ${PREFIX}/libexec/${PORTNAME}/
|
2006-04-25 20:22:23 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/installer-items/RRDconvertv1.pm ${PREFIX}/libexec/${PORTNAME}/
|
|
|
|
@ if [ -f ${PREFIX}/etc/nfsen.conf ] ; then \
|
|
|
|
${ECHO_MSG} "installing with existing nfsen.conf"; \
|
|
|
|
cd ${WRKSRC} ;${PERL} ${WRKSRC}/install.pl ${PREFIX}/etc/nfsen.conf; \
|
|
|
|
else \
|
|
|
|
${ECHO_MSG} "installing with sample nfsen.conf"; \
|
|
|
|
cd ${WRKSRC} ;${PERL} ${WRKSRC}/install.pl ${WRKSRC}/etc/nfsen-dist.conf; \
|
|
|
|
fi
|
|
|
|
@${ECHO_MSG} "Configure your ${LOCALBASE}/etc/nfsen.conf to have necessary sources ";
|
|
|
|
@${ECHO_MSG} "Then run 'nfsen -R ${LOCALBASE}/etc/nfsen.conf' to correctly setup source, RRD, and profile files";
|
2005-04-16 12:33:07 +02:00
|
|
|
|
2007-09-08 03:12:10 +02:00
|
|
|
.include <bsd.port.mk>
|