1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name pnp4nagios |
---|
7 | version 0.6.24 |
---|
8 | categories net www |
---|
9 | license GPL-2 |
---|
10 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
11 | platforms darwin |
---|
12 | |
---|
13 | description addon to nagios which analyzes performance data provided by plugins and stores them automatically into RRD-databases |
---|
14 | long_description ${description} |
---|
15 | homepage http://docs.pnp4nagios.org/ |
---|
16 | master_sites sourceforge:project/pnp4nagios/PNP-0.6 |
---|
17 | |
---|
18 | checksums rmd160 50a5e9cffd43cacb38626b263866f94f522408d1 \ |
---|
19 | sha256 87412ef01257c6096aa5c84fdb47db950b851c596e1306180be8ba45401793cf |
---|
20 | |
---|
21 | ## + php >= 4.3 + php-zlib(natif php5) php-gd |
---|
22 | depends_run path:bin/nagios:nagios path:bin/perl:perl5.16 port:rrdtool \ |
---|
23 | port:php55-gd |
---|
24 | |
---|
25 | configure.args --datarootdir=${prefix}/share/${name} --sysconfdir=${prefix}/etc/${name} \ |
---|
26 | --mandir=${prefix}/share/man |
---|
27 | |
---|
28 | ## "symbols referenced by indirect symbol table entries that can't be stripped in" http://trac.macports.org/ticket/13474 |
---|
29 | #destroot.post_args-append STRIP='' |
---|
30 | |
---|
31 | destroot.asroot yes |
---|
32 | destroot.target install install-webconf install-config |
---|
33 | |
---|
34 | pre-destroot { |
---|
35 | ## disable strip |
---|
36 | reinplace "s|\$(MAKE) strip-post-install||" ${worksrcpath}/src/Makefile |
---|
37 | } |
---|
38 | |
---|
39 | post-destroot { |
---|
40 | xinstall -d ${destroot}${prefix}/share/examples/${name} |
---|
41 | move ${destroot}/etc/httpd/conf.d/pnp4nagios.conf ${destroot}${prefix}/share/examples/${name}/apache-pnp4nagios.conf |
---|
42 | move ${destroot}${prefix}/etc/${name}/npcd.cfg ${destroot}${prefix}/share/examples/${name}/ |
---|
43 | move ${destroot}${prefix}/man/man8/npcd.8 ${destroot}${prefix}/share/man/man8/ |
---|
44 | } |
---|
45 | |
---|
46 | post-activate { |
---|
47 | if ![file exists ${prefix}/etc/${name}/npcd.cfg ] { |
---|
48 | copy ${prefix}/share/examples/${name}/npcd.cfg ${prefix}/etc/${name}/ |
---|
49 | } |
---|
50 | } |
---|
51 | |
---|
52 | notes " |
---|
53 | " |
---|
54 | |
---|
55 | livecheck.type regex |
---|
56 | livecheck.url ${homepage} |
---|
57 | livecheck.regex "PNP4Nagios-(\\d+\.\\d+\.\\d+) is out now" |
---|
58 | |
---|