# -*- 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

PortSystem          1.0

name                ganglia-web
version             3.7.2
revision            1
categories          net
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Web front end for Ganglia.
long_description    Web front end for the Ganglia monitoring system for \
                    high-performance computing systems such as clusters and Grids.
platforms           darwin
homepage            http://ganglia.info/
master_sites        sourceforge:project/ganglia/${name}/${version}

checksums           rmd160  2abd57780260ea795a702a877dac63de4dfa669c \
                    sha256  98820187c98d24d3645b92d31060623de696dad331a361a19874898339523628

depends_lib         port:ganglia

depends_run         port:apache2

variant apache22 description "use apache22 instead of apache2" {
    # remove after 2020-05-01
    ui_error "Please do not install this variant since Apache 2.2 is obsolete."
    return -code error
}

patchfiles          patch-Makefile.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
}

use_configure       no

build {}

livecheck.type      regex
livecheck.url       http://ganglia.info/?page_id=66
livecheck.regex     "ganglia-web/\">(\[\\d.\]+)"