Update lang/perl5.16 to version 5.16.3_22
[dports.git] / net-mgmt / netdot / Makefile
1 # Created by: Nick Hilliard
2 # $FreeBSD$
3
4 PORTNAME=       netdot
5 PORTVERSION=    1.0.7
6 CATEGORIES=     net-mgmt
7 MASTER_SITES=   http://netdot.uoregon.edu/pub/dists/
8
9 MAINTAINER=     nick@foobar.org
10 COMMENT=        Open source tool to organize and maintain network information
11
12 LICENSE=        GPLv2
13
14 RUN_DEPENDS=    p5-libapreq2>=0:${PORTSDIR}/www/p5-libapreq2 \
15                 mp2bug:${PORTSDIR}/www/mod_perl2 \
16                 p5-Apache-Session>=1.6:${PORTSDIR}/www/p5-Apache-Session \
17                 p5-Apache-AuthCookie>=0:${PORTSDIR}/www/p5-Apache-AuthCookie \
18                 p5-Apache2-SiteControl>=1.0:${PORTSDIR}/www/p5-Apache2-SiteControl \
19                 p5-URI>=0:${PORTSDIR}/net/p5-URI \
20                 p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
21                 p5-SQL-Translator>=0.07:${PORTSDIR}/databases/p5-SQL-Translator \
22                 p5-Class-DBI>=3.0.17:${PORTSDIR}/databases/p5-Class-DBI \
23                 p5-Class-DBI-AbstractSearch>=0:${PORTSDIR}/databases/p5-Class-DBI-AbstractSearch \
24                 p5-SNMP-Info>=2.06:${PORTSDIR}/net-mgmt/p5-SNMP-Info \
25                 p5-HTML-Mason>=1.31:${PORTSDIR}/www/p5-HTML-Mason \
26                 p5-Log-Dispatch>=0:${PORTSDIR}/devel/p5-Log-Dispatch \
27                 p5-Log-Log4perl>=0:${PORTSDIR}/devel/p5-Log-Log4perl \
28                 p5-Parallel-ForkManager>=0:${PORTSDIR}/devel/p5-Parallel-ForkManager \
29                 p5-Net-IRR>=0:${PORTSDIR}/net/p5-Net-IRR \
30                 p5-NetAddr-IP>=4.042:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \
31                 p5-Net-Patricia>=1.20:${PORTSDIR}/net/p5-Net-Patricia \
32                 p5-Net-Appliance-Session>=3.113.610:${PORTSDIR}/net/p5-Net-Appliance-Session \
33                 p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
34                 p5-Net-DNS-ZoneFile-Fast>=1.12:${PORTSDIR}/dns/p5-Net-DNS-ZoneFile-Fast \
35                 p5-BIND-Config-Parser>=0:${PORTSDIR}/dns/p5-BIND-Config-Parser \
36                 p5-Carp-Assert>=0:${PORTSDIR}/devel/p5-Carp-Assert \
37                 p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
38                 p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6 \
39                 p5-GraphViz>=2.02:${PORTSDIR}/graphics/p5-GraphViz \
40                 rrdtool:${PORTSDIR}/databases/rrdtool \
41                 netdisco-mibs>=0:${PORTSDIR}/net-mgmt/netdisco-mibs
42
43 USES=           gmake perl5
44 NO_BUILD=       yes
45 USE_MYSQL=      yes
46
47 SUB_FILES=      pkg-message pkg-install
48 SUB_LIST=       WWWDIR="${WWWDIR}"      \
49                 WWWOWN="${WWWOWN}"      \
50                 WWWGRP="${WWWGRP}"      \
51                 CHOWN="${CHOWN}"        \
52                 CHMOD="${CHMOD}"
53
54 .include <bsd.port.pre.mk>
55
56 INSTALL_TARGET= install         \
57         PREFIX=${WWWDIR}        \
58         STAGEDIR=${STAGEDIR}${WWWDIR}   \
59         APACHEUSER=${WWWOWN}    \
60         APACHEGROUP=${WWWGRP}
61
62 post-patch:
63         @${REINPLACE_CMD} "s#/usr/local/netdot#${WWWDIR}#g" ${WRKSRC}/netdot.cron ${WRKSRC}/Makefile ${WRKSRC}/import/import_ip_bulk.pl
64         @${REINPLACE_CMD} "s#%%LOCALPREFIX%%#${PREFIX}#g" ${WRKSRC}/etc/Default.conf
65
66 post-install:
67 .for f in export/bind export/dhcpd export/ethers export/rancid export/smokeping export/sysmon htdocs/img/graphs lib/Netdot/Manual tmp/sessions/locks htdocs/masondata/cache
68                 @${TOUCH} ${STAGEDIR}${WWWDIR}/${f}/.keep-me
69 .endfor
70 .for f in initdb
71         ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${WWWDIR}/bin/${f}
72 .endfor
73         ${MKDIR} ${STAGEDIR}${WWWDIR}/upgrade
74 .for f in Makefile updatedb upgrade-tasks
75         ${INSTALL_SCRIPT} ${WRKSRC}/upgrade/${f} ${STAGEDIR}${WWWDIR}/upgrade/${f}
76 .endfor
77         ${INSTALL_DATA} ${WRKSRC}/netdot.cron ${STAGEDIR}${WWWDIR}/etc/netdot.cron
78         ${INSTALL_DATA} ${WRKSRC}/etc/default_data ${STAGEDIR}${WWWDIR}/etc/default_data
79
80 .include <bsd.port.post.mk>