blob: ea0f7210e1203d6699c639bd25e0edf9d8b8c017 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Cristian KLEIN <cristi@net.utcluj.ro>
# $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 <bsd.port.mk>
|