View | Details | Raw Unified | Return to bug 142994
Collapse All | Expand All

(-)net-mgmt/nagiosgraph/Makefile (-15 / +18 lines)
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}
(-)net-mgmt/nagiosgraph/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (nagiosgraph-0.9.0.tgz) = 4450d5d3f28d4ba379fc225e8aee893e
1
MD5 (nagiosgraph-1.4.0.tar.gz) = d7bece0637df1ab2e94463d2c575b3e3
2
SHA256 (nagiosgraph-0.9.0.tgz) = d93957c6f1435f9a10191e07c3fb6b42203a68f9537d9d9509879b9e5fa8dfff
2
SHA256 (nagiosgraph-1.4.0.tar.gz) = 1cb8b77d269201f271d18e4739ea12d927d8e5bf63449ace71c17e07a23f5fb6
3
SIZE (nagiosgraph-0.9.0.tgz) = 20149
3
SIZE (nagiosgraph-1.4.0.tar.gz) = 61820
(-)net-mgmt/nagiosgraph/pkg-plist (-6 / +16 lines)
Lines 1-15 Link Here
1
etc/nagios/nagiosgraph/hostdb.conf.example
1
etc/nagios/nagiosgraph/map.example
2
etc/nagios/nagiosgraph/map.example
2
etc/nagios/nagiosgraph/nagiosgraph.conf.example
3
etc/nagios/nagiosgraph/nagiosgraph.conf.example
4
etc/nagios/nagiosgraph/ngshared.pm
5
etc/nagios/nagiosgraph/servdb.conf.example
3
libexec/nagiosgraph/insert.pl
6
libexec/nagiosgraph/insert.pl
4
%%EXAMPLESDIR%%/testentry.pl
7
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/authz.pl
8
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/testentry.pl
9
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/upgrade.pl
5
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/show.cgi
10
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/show.cgi
11
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/showgraph.cgi
12
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/showhost.cgi
13
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/showservice.cgi
6
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/testcolor.cgi
14
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/testcolor.cgi
15
%%NAGIOSWWWDIR%%/stylesheets/action.gif
7
%%NAGIOSWWWDIR%%/stylesheets/nagiosgraph.css
16
%%NAGIOSWWWDIR%%/stylesheets/nagiosgraph.css
8
@dirrm etc/nagios/nagiosgraph
17
%%NAGIOSWWWDIR%%/stylesheets/nagiosgraph.js
9
@dirrmtry etc/nagios
18
@dirrmtry %%NAGIOSWWWDIR%%/stylesheets
10
@dirrm libexec/nagiosgraph
11
@dirrm %%EXAMPLESDIR%%
12
@dirrm %%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph
19
@dirrm %%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph
13
@dirrmtry %%NAGIOSWWWDIR%%/cgi-bin
20
@dirrmtry %%NAGIOSWWWDIR%%/cgi-bin
14
@dirrmtry %%NAGIOSWWWDIR%%/stylesheets
15
@dirrmtry %%NAGIOSWWWDIR%%
21
@dirrmtry %%NAGIOSWWWDIR%%
22
@dirrm libexec/nagiosgraph
23
@dirrm etc/nagios/nagiosgraph
24
@dirrmtry etc/nagios
25
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
(-)net-mgmt/nagiosgraph/pkg-plist-out (+32 lines)
Line 0 Link Here
1
etc/nagios/nagiosgraph/hostdb.conf.example
2
etc/nagios/nagiosgraph/map.example
3
etc/nagios/nagiosgraph/nagiosgraph.conf.example
4
etc/nagios/nagiosgraph/ngshared.pm
5
etc/nagios/nagiosgraph/servdb.conf.example
6
libexec/nagiosgraph/insert.pl
7
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
8
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
9
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
10
%%PORTDOCS%%%%DOCSDIR%%/README
11
%%PORTDOCS%%%%DOCSDIR%%/README.map
12
%%PORTDOCS%%%%DOCSDIR%%/TODO
13
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/authz.pl
14
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/testentry.pl
15
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/upgrade.pl
16
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/show.cgi
17
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/showgraph.cgi
18
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/showhost.cgi
19
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/showservice.cgi
20
%%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph/testcolor.cgi
21
%%NAGIOSWWWDIR%%/stylesheets/action.gif
22
%%NAGIOSWWWDIR%%/stylesheets/nagiosgraph.css
23
%%NAGIOSWWWDIR%%/stylesheets/nagiosgraph.js
24
@dirrmtry %%NAGIOSWWWDIR%%/stylesheets
25
@dirrm %%NAGIOSWWWDIR%%/cgi-bin/nagiosgraph
26
@dirrmtry %%NAGIOSWWWDIR%%/cgi-bin
27
@dirrmtry %%NAGIOSWWWDIR%%
28
@dirrm libexec/nagiosgraph
29
@dirrm etc/nagios/nagiosgraph
30
@dirrmtry etc/nagios
31
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
32
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 142994