# -*- 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
github.setup balleman netmrg 0.20 netmrg-
description An RRDtool frontend for network monitoring, reporting, and graphing \
that generates day/week/month MRTG style graphs.
long_description ${description}
master_sites macports_distfiles
checksums md5 47bec3b8a4d3a5c06c70925ee8d280be
depends_lib path:bin/mysql_config5:mysql5 \
configure.args --with-mysql_config=${prefix}/lib/mysql5/bin/mysql_config \
--with-snmp-lib-dir=/usr/lib \
--with-rrdtool=${prefix}/bin
reinplace "s|mysql/mysql.h|${prefix}/include/mysql5/mysql/mysql.h|g" \
${worksrcpath}/src/include/db.h
reinplace "s|<socket></socket>|<socket>${prefix}/var/run/mysql5/mysqld.sock</socket>|g" \
${worksrcpath}/etc/netmrg.xml.in
reinplace "s|<version>1.0</version>|<version>1.2</version>|g" \
${worksrcpath}/etc/netmrg.xml.in
xinstall -m 755 -d ${destroot}${prefix}/var/log/netmrg
destroot.keepdirs ${destroot}${prefix}/var/log/netmrg
system "chown -R www:www ${destroot}${prefix}/var/lib/netmrg/rrd/"
system "chown -R www:www ${destroot}${prefix}/var/log/netmrg"
******************************************************************
**** Complete the NetMRG Installation ****
******************************************************************
Full information at http://wiki.netmrg.net/wiki/Users_Manual.
sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db
sudo ${prefix}/share/mysql5/mysql/mysql.server start