Ticket #44836: Portfile

File Portfile, 2.1 KB (added by jul_bsd@…, 10 years ago)
Line 
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
4PortSystem    1.0
5
6name               pnp4nagios
7version            0.6.24
8categories         net www
9license            GPL-2
10maintainers        yahoo.fr:jul_bsd openmaintainer
11platforms          darwin
12
13description         addon to nagios which analyzes performance data provided by plugins and stores them automatically into RRD-databases
14long_description    ${description}
15homepage            http://docs.pnp4nagios.org/
16master_sites        sourceforge:project/pnp4nagios/PNP-0.6
17
18checksums           rmd160  50a5e9cffd43cacb38626b263866f94f522408d1 \
19                    sha256  87412ef01257c6096aa5c84fdb47db950b851c596e1306180be8ba45401793cf
20
21## + php >= 4.3 + php-zlib(natif php5) php-gd
22depends_run         path:bin/nagios:nagios path:bin/perl:perl5.16 port:rrdtool \
23                    port:php55-gd
24
25configure.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
31destroot.asroot     yes
32destroot.target     install install-webconf install-config
33
34pre-destroot {
35    ## disable strip
36    reinplace "s|\$(MAKE) strip-post-install||" ${worksrcpath}/src/Makefile
37}
38
39post-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
46post-activate {
47    if ![file exists ${prefix}/etc/${name}/npcd.cfg ] {
48        copy ${prefix}/share/examples/${name}/npcd.cfg ${prefix}/etc/${name}/
49    }
50}
51
52notes "
53"
54
55livecheck.type    regex
56livecheck.url     ${homepage}
57livecheck.regex   "PNP4Nagios-(\\d+\.\\d+\.\\d+) is out now"
58