Lines 6-16
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= nagiosgraph |
8 |
PORTNAME= nagiosgraph |
9 |
PORTVERSION= 0.9.0 |
9 |
PORTVERSION= 1.4.0 |
10 |
PORTREVISION= 3 |
10 |
PORTREVISION= 3 |
11 |
CATEGORIES= net-mgmt |
11 |
CATEGORIES= net-mgmt |
12 |
MASTER_SITES= SF |
12 |
MASTER_SITES= SF |
13 |
EXTRACT_SUFX= .tgz |
|
|
14 |
|
13 |
|
15 |
MAINTAINER= dsh@wizard.volgograd.ru |
14 |
MAINTAINER= dsh@wizard.volgograd.ru |
16 |
COMMENT= Generate rrdtool\'s graphs by performance data from nagios plugins |
15 |
COMMENT= Generate rrdtool\'s graphs by performance data from nagios plugins |
Lines 21-61
Link Here
|
21 |
USE_PERL5_RUN= yes |
20 |
USE_PERL5_RUN= yes |
22 |
NO_BUILD= yes |
21 |
NO_BUILD= yes |
23 |
|
22 |
|
24 |
PORTDOCS= CHANGELOG INSTALL README README.map |
23 |
PORTDOCS= AUTHORS CHANGELOG INSTALL README README.map TODO |
25 |
|
24 |
|
26 |
PLIST_SUB= NAGIOSWWWDIR=${NAGIOSWWWDIR} |
25 |
PLIST_SUB= NAGIOSWWWDIR=${NAGIOSWWWDIR} |
27 |
|
26 |
|
28 |
NAGIOSWWWDIR?= www/nagios |
27 |
NAGIOSWWWDIR?= www/nagios |
29 |
|
28 |
|
30 |
post-patch: |
29 |
post-patch: |
31 |
.for i in insert.pl testcolor.cgi testentry.pl |
30 |
.for i in lib/insert.pl cgi/show.cgi cgi/showgraph.cgi cgi/showhost.cgi cgi/showservice.cgi cgi/testcolor.cgi |
32 |
${REINPLACE_CMD} -e 's!/usr/bin/perl!${PERL}!g' -e 's!/usr/local!${PREFIX}!g' \ |
31 |
${REINPLACE_CMD} -e 's!/usr/bin/perl!${PERL}!g' -e 's!/usr/local!${PREFIX}!g' \ |
33 |
-e 's!nagiosgraph\.conf!nagios/nagiosgraph/nagiosgraph.conf!g' ${WRKSRC}/$i |
32 |
-e 's!/etc/nagios/!/usr/local/etc/nagios/!g' ${WRKSRC}/$i |
34 |
.endfor |
|
|
35 |
.for i in show.cgi |
36 |
${REINPLACE_CMD} -e 's!/usr/bin/perl!${PERL}!g' -e 's!/usr/local!${PREFIX}!g' \ |
37 |
-e 's!nagiosgraph/nagiosgraph\.conf!nagios/nagiosgraph/nagiosgraph.conf!g' ${WRKSRC}/$i |
38 |
.endfor |
33 |
.endfor |
39 |
|
34 |
|
|
|
35 |
|
40 |
do-install: |
36 |
do-install: |
41 |
${MKDIR} ${PREFIX}/etc/nagios/nagiosgraph |
37 |
${MKDIR} ${PREFIX}/etc/nagios/nagiosgraph |
42 |
.for i in map nagiosgraph.conf |
38 |
|
43 |
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/etc/nagios/nagiosgraph/${i}.example |
39 |
${INSTALL_DATA} ${WRKSRC}/etc/ngshared.pm ${PREFIX}/etc/nagios/nagiosgraph/ngshared.pm |
|
|
40 |
|
41 |
.for i in hostdb.conf map nagiosgraph.conf servdb.conf |
42 |
${INSTALL_DATA} ${WRKSRC}/etc/$i ${PREFIX}/etc/nagios/nagiosgraph/${i}.example |
44 |
.endfor |
43 |
.endfor |
45 |
|
44 |
|
46 |
${MKDIR} ${PREFIX}/libexec/${PORTNAME} |
45 |
${MKDIR} ${PREFIX}/libexec/${PORTNAME} |
47 |
${INSTALL_SCRIPT} ${WRKSRC}/insert.pl ${PREFIX}/libexec/${PORTNAME} |
46 |
${INSTALL_SCRIPT} ${WRKSRC}/lib/insert.pl ${PREFIX}/libexec/${PORTNAME} |
48 |
|
47 |
|
49 |
${MKDIR} ${PREFIX}/${NAGIOSWWWDIR}/cgi-bin/nagiosgraph |
48 |
${MKDIR} ${PREFIX}/${NAGIOSWWWDIR}/cgi-bin/nagiosgraph |
50 |
.for i in show.cgi testcolor.cgi |
49 |
.for i in cgi/show.cgi cgi/showgraph.cgi cgi/showhost.cgi cgi/showservice.cgi cgi/testcolor.cgi |
51 |
${INSTALL_SCRIPT} ${WRKSRC}/$i ${PREFIX}/${NAGIOSWWWDIR}/cgi-bin/nagiosgraph |
50 |
${INSTALL_SCRIPT} ${WRKSRC}/$i ${PREFIX}/${NAGIOSWWWDIR}/cgi-bin/nagiosgraph |
52 |
.endfor |
51 |
.endfor |
53 |
|
52 |
|
54 |
${MKDIR} ${PREFIX}/${NAGIOSWWWDIR}/stylesheets |
53 |
${MKDIR} ${PREFIX}/${NAGIOSWWWDIR}/stylesheets |
55 |
${INSTALL_DATA} ${WRKSRC}/nagiosgraph.css ${PREFIX}/${NAGIOSWWWDIR}/stylesheets |
54 |
.for i in share/action.gif share/nagiosgraph.css share/nagiosgraph.js |
|
|
55 |
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${NAGIOSWWWDIR}/stylesheets |
56 |
.endfor |
56 |
|
57 |
|
57 |
${MKDIR} ${EXAMPLESDIR} |
58 |
${MKDIR} ${EXAMPLESDIR} |
58 |
${INSTALL_SCRIPT} ${WRKSRC}/testentry.pl ${EXAMPLESDIR} |
59 |
.for i in utils/authz.pl utils/testentry.pl utils/upgrade.pl |
|
|
60 |
${INSTALL_SCRIPT} ${WRKSRC}/$i ${EXAMPLESDIR} |
61 |
.endfor |
59 |
|
62 |
|
60 |
.if !defined(NOPORTDOCS) |
63 |
.if !defined(NOPORTDOCS) |
61 |
${MKDIR} ${DOCSDIR} |
64 |
${MKDIR} ${DOCSDIR} |