1 |
commit: 487dc79c786f658aca1d8e80ea8ea3188f8af69e |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 9 05:44:21 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 9 05:44:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=487dc79c |
7 |
|
8 |
net-analyzer/mrtg: Fix LIBDIR in Perl scripts (bug #643812 by Kostas Kavourakis). |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
net-analyzer/mrtg/mrtg-2.17.4-r2.ebuild | 49 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 49 insertions(+) |
14 |
|
15 |
diff --git a/net-analyzer/mrtg/mrtg-2.17.4-r2.ebuild b/net-analyzer/mrtg/mrtg-2.17.4-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..2c1ed33d946 |
18 |
--- /dev/null |
19 |
+++ b/net-analyzer/mrtg/mrtg-2.17.4-r2.ebuild |
20 |
@@ -0,0 +1,49 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit multilib |
26 |
+ |
27 |
+DESCRIPTION="A tool to monitor the traffic load on network-links" |
28 |
+HOMEPAGE="http://oss.oetiker.ch/mrtg/" |
29 |
+SRC_URI="${HOMEPAGE}pub/${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="GPL-2" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
34 |
+IUSE="selinux" |
35 |
+ |
36 |
+DEPEND=" |
37 |
+ >=dev-perl/SNMP_Session-1.13-r2 |
38 |
+ >=dev-perl/Socket6-0.23 |
39 |
+ dev-lang/perl |
40 |
+ media-libs/gd[png] |
41 |
+" |
42 |
+RDEPEND=" |
43 |
+ ${DEPEND} |
44 |
+ selinux? ( sec-policy/selinux-mrtg ) |
45 |
+" |
46 |
+PATCHES=( |
47 |
+ "${FILESDIR}"/${P}-socket6.patch |
48 |
+) |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ rm ./lib/mrtg2/{SNMP_{Session,util},BER}.pm || die |
52 |
+ |
53 |
+ sed -i \ |
54 |
+ -e 's|main::SL}lib${main::SL|main::SL}'"$(get_libdir)"'${main::SL|g' \ |
55 |
+ $(find bin -type f) contrib/cfgmaker_dlci/cfgmaker_dlci || die |
56 |
+ |
57 |
+ default |
58 |
+} |
59 |
+ |
60 |
+src_install () { |
61 |
+ keepdir /var/lib/mrtg |
62 |
+ |
63 |
+ default |
64 |
+ |
65 |
+ mv "${ED}"/usr/share/doc/{mrtg2,${PF}} || die |
66 |
+ |
67 |
+ newinitd "${FILESDIR}/mrtg.rc" ${PN} |
68 |
+ newconfd "${FILESDIR}/mrtg.confd" ${PN} |
69 |
+} |