diff options
Diffstat (limited to 'recipes/mrtg/mrtg.inc')
-rw-r--r-- | recipes/mrtg/mrtg.inc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes/mrtg/mrtg.inc b/recipes/mrtg/mrtg.inc new file mode 100644 index 0000000000..afe4398665 --- /dev/null +++ b/recipes/mrtg/mrtg.inc @@ -0,0 +1,40 @@ +DESCRIPTION = "The Multi Router Traffic Grapher" +SECTION = "net" +DEPENDS = "gd perl-native" +RDEPENDS = " \ + gd \ + net-snmp-server \ + perl \ + perl-module-carp-heavy \ + perl-module-findbin \ + perl-module-getopt-long \ + perl-module-io \ + perl-module-io-socket \ + perl-module-locale \ + perl-module-math-bigfloat \ + perl-module-math-bigint \ + perl-module-overload \ + perl-module-pod-text \ + perl-module-universal \ + " +LICENSE = "GPL" + +PR = "r0" + +SRC_URI = "http://oss.oetiker.ch/mrtg/pub/mrtg-${PV}.tar.gz;name=mrtg-${PV}" + +inherit autotools + +do_configure_prepend() { + export long_long_format_specifier="%lld" +} + +do_install_append() { + for file in ${bindir}/mrtg ${bindir}/indexmaker ${bindir}/cfgmaker ${bindir}/mrtg-traffic-sum; do + sed -ri "s,${STAGING_BINDIR_NATIVE},${bindir}," ${D}/$file + done + install -d ${D}/etc/mrtg + install -d ${D}/var/db/mrtg +} + +FILES_${PN} += "${libdir}/mrtg2 ${datadir}/mrtg2 ${sysconfdir}/mrtg ${localstatedir}/db/mrtg"
\ No newline at end of file |