summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-10 03:03:36 +0000
committerSam James <sam@gentoo.org>2021-12-10 03:48:52 +0000
commitd9918612810808a9cdd39c0418ce2ffaa3ecefb8 (patch)
treec1e4bf75536c8c77ae52ed2acf70d5568ce34f4e /net-analyzer
parentnet-misc/geoipupdate: add 4.8.0 (diff)
downloadgentoo-d9918612810808a9cdd39c0418ce2ffaa3ecefb8.tar.gz
gentoo-d9918612810808a9cdd39c0418ce2ffaa3ecefb8.tar.bz2
gentoo-d9918612810808a9cdd39c0418ce2ffaa3ecefb8.zip
net-analyzer/mrtg: add 2.17.8
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/mrtg/Manifest1
-rw-r--r--net-analyzer/mrtg/mrtg-2.17.8.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-analyzer/mrtg/Manifest b/net-analyzer/mrtg/Manifest
index 5e45e92440e8..9e4a593387c0 100644
--- a/net-analyzer/mrtg/Manifest
+++ b/net-analyzer/mrtg/Manifest
@@ -1 +1,2 @@
DIST mrtg-2.17.7.tar.gz 1098650 BLAKE2B f8191296fc163b950792b8ecee773cfe643a7390d49444ce8b5012b2dbd932093cb4f71745ba2c86bda579fbcd3c73a4f9cebc1fa4e7f791a7b4461ae92ac191 SHA512 b25ab38416213bc5128612724530f36f4a855bb66a65f8bbe4bdafef05d2688eed68f5c3df1e13193102507a4114e71ec226ad32dd6b4d3ae2e2291320d8e768
+DIST mrtg-2.17.8.tar.gz 1102598 BLAKE2B d5d513de641087f6daa207f154bbcca0196ccc8cba79a03ad6916c9c0065980745be3746953063127fc017d57e235ff67252531380fc9f68c9e5c3332d5230ce SHA512 c1dbeb5ce065b2b071d18e1eec1100d56eb7c4c654562de530139acee27ad57614354b74e3d0777cb6d4470a58ed6acae0f1af9c6f7115bf329132a68b6e0aaa
diff --git a/net-analyzer/mrtg/mrtg-2.17.8.ebuild b/net-analyzer/mrtg/mrtg-2.17.8.ebuild
new file mode 100644
index 000000000000..ad7a69595c27
--- /dev/null
+++ b/net-analyzer/mrtg/mrtg-2.17.8.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A tool to monitor the traffic load on network-links"
+HOMEPAGE="https://oss.oetiker.ch/mrtg/"
+SRC_URI="https://oss.oetiker.ch/mrtg/pub/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="selinux"
+
+DEPEND="
+ >=dev-perl/SNMP_Session-1.13-r2
+ >=dev-perl/Socket6-0.23
+ dev-lang/perl
+ media-libs/gd[png]
+"
+RDEPEND="
+ ${DEPEND}
+ selinux? ( sec-policy/selinux-mrtg )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.17.4-socket6.patch
+)
+
+src_prepare() {
+ rm ./lib/mrtg2/{SNMP_{Session,util},BER}.pm || die
+
+ sed -i \
+ -e 's|main::SL}lib${main::SL|main::SL}'"$(get_libdir)"'${main::SL|g' \
+ $(find bin -type f) contrib/cfgmaker_dlci/cfgmaker_dlci || die
+
+ default
+}
+
+src_install() {
+ keepdir /var/lib/mrtg
+
+ default
+
+ mv "${ED}"/usr/share/doc/{mrtg2,${PF}} || die
+
+ newinitd "${FILESDIR}/mrtg.rc" ${PN}
+ newconfd "${FILESDIR}/mrtg.confd" ${PN}
+}