2013-05-10 13:28:32 +02:00
|
|
|
# Created by: cristi <cristi@net.utcluj.ro>
|
2007-02-07 14:56:46 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nedi
|
2007-10-27 21:06:20 +02:00
|
|
|
DISTVERSION= 1.0.w
|
2008-03-27 11:58:30 +01:00
|
|
|
PORTREVISION= 1
|
2007-02-07 14:56:46 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/w
|
2007-02-07 14:56:46 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2014-05-30 09:13:33 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-02-07 14:56:46 +01:00
|
|
|
COMMENT= Network Discovery and Monitoring tool
|
|
|
|
|
2012-07-01 07:42:55 +02:00
|
|
|
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
|
2007-02-07 14:56:46 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2013-09-14 17:39:55 +02:00
|
|
|
USES= perl5
|
2007-02-07 14:56:46 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2013-05-10 13:28:32 +02:00
|
|
|
OPTIONS_DEFINE= GD
|
|
|
|
GD_DESC= Use GD
|
2007-02-07 14:56:46 +01:00
|
|
|
|
|
|
|
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
2013-09-21 00:24:43 +02:00
|
|
|
NO_STAGE= yes
|
2011-12-25 20:28:06 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2007-02-07 14:56:46 +01:00
|
|
|
|
|
|
|
USE_PHP= session snmp mysql
|
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
2013-05-10 13:28:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MGD}
|
2007-02-07 14:56:46 +01:00
|
|
|
USE_PHP+= gd
|
|
|
|
.endif
|
|
|
|
|
|
|
|
NEDIDIR= ${PREFIX}/www/nedi
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= NEDIDIR=${NEDIDIR}
|
|
|
|
|
2007-10-27 21:06:20 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/var/nedi|${NEDIDIR}|' ${WRKSRC}/html/inc/libgraph.php
|
|
|
|
@${REINPLACE_CMD} -e "s|'/etc|'${PREFIX}/etc|" ${WRKSRC}/html/inc/libmisc.php
|
2011-12-29 09:58:47 +01:00
|
|
|
@${FIND} ${WRKSRC} \( -name *.bak -or -name *.orig \) -delete
|
2007-10-27 21:06:20 +02:00
|
|
|
|
2007-02-07 14:56:46 +01:00
|
|
|
do-install:
|
|
|
|
@ ${MKDIR} -m 755 ${NEDIDIR}
|
|
|
|
@ ${CP} -r ${WRKSRC}/* ${NEDIDIR}
|
|
|
|
@ ${MV} ${NEDIDIR}/seedlist ${PREFIX}/etc/nedi.seedlist.sample
|
|
|
|
@ ${MV} ${NEDIDIR}/nedi.conf ${PREFIX}/etc/nedi.conf.sample
|
2007-10-27 21:06:20 +02:00
|
|
|
@ ${CHOWN} www ${NEDIDIR}/rrd
|
2007-02-07 14:56:46 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|