# Created by: Cristian KLEIN # $FreeBSD$ PORTNAME= nedi DISTVERSION= 1.0.w PORTREVISION= 3 CATEGORIES= net-mgmt MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/w MAINTAINER= ports@FreeBSD.org COMMENT= Network discovery and monitoring tool LICENSE= GPLv2 RUN_DEPENDS= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP \ p5-Net-Telnet-Cisco>=0:${PORTSDIR}/net-mgmt/p5-Telnet-Cisco \ p5-Algorithm-Diff>=0:${PORTSDIR}/devel/p5-Algorithm-Diff \ p5-DBI>=0:${PORTSDIR}/databases/p5-DBI USES= perl5 shebangfix tar:tgz SHEBANG_FILES= *.pl WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= yes USE_PHP= session snmp mysql WANT_PHP_WEB= yes SUB_FILES= pkg-message PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} OPTIONS_DEFINE= GD GD_USE= PHP=gd post-patch: @${REINPLACE_CMD} -e 's|/var/nedi|${WWWDIR}|' \ ${WRKSRC}/html/inc/libgraph.php @${REINPLACE_CMD} -e "s|'/etc|'${PREFIX}/etc|" \ ${WRKSRC}/html/inc/libmisc.php @${FIND} ${WRKSRC} \( -name *.bak -or -name *.orig \) -delete do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}) ${FIND} ${STAGEDIR}${WWWDIR} -name \*.pl | ${XARGS} ${CHMOD} 755 ${MV} ${STAGEDIR}${WWWDIR}/seedlist \ ${STAGEDIR}${PREFIX}/etc/nedi.seedlist.sample ${MV} ${STAGEDIR}${WWWDIR}/nedi.conf \ ${STAGEDIR}${PREFIX}/etc/nedi.conf.sample .include