# -*- 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
description Network Resource Grapher
long_description NRG is an RRDtool front-end tool to monitor traffic and load \
on network links or any other resource utilization source. It \
automatically creates and maintains web pages and RRDtool databases, \
while providing short and long-term graph web pages just like MRTG.
# website no longer exists
homepage http://ginseng.hep.wisc.edu/NRG/
master_sites ftp://noc.hep.wisc.edu/src/nrg/ \
ftp://noc.hep.wisc.edu/pub/src/nrg/
checksums rmd160 1192ce02d14447abdcff994671693eeb4ca67e28 \
sha256 ef851705f9ebd2bf55892823f258c7cffc079ae0276df4f40860c520262971c2
depends_lib port:perl${perl5.major} \
port:p${perl5.major}-time-hires \
patchfiles patch-nrg-discover-tcp.in.diff \
patch-roverpingd-send.c.diff
configure.perl ${perl5.bin}
configure.pre_args --prefix=${prefix}/var/${name}
configure.args --bindir=${prefix}/bin \
--sysconfdir=${prefix}/etc/${name} \
--datadir=${prefix}/share \
--build=powerpc-unknown-freebsd \
configure.args-delete --build=powerpc-unknown-freebsd
configure.args-append --build=i386-unknown-freebsd
variant pingd_server description {pingd daemon to graph network latency with NRG} {
startupitem.executable "${prefix}/bin/pingd"
destroot.target install.pingd install
# Maintain empty directories
destroot.keepdirs ${destroot}${prefix}/var/${name}/archive