1 |
commit: 636198c593fc9532c6a4ac3bbdcc66cb65625988 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 24 06:00:28 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 24 06:00:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=636198c5 |
7 |
|
8 |
net-analyzer/cacti-spine: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
net-analyzer/cacti-spine/Manifest | 1 + |
13 |
net-analyzer/cacti-spine/cacti-spine-0.8.8g.ebuild | 50 ++++++++++++++++++++++ |
14 |
.../files/cacti-spine-0.8.8g-fix-ac-macro.patch | 11 +++++ |
15 |
.../files/cacti-spine-0.8.8g-net-snmp.patch | 19 ++++++++ |
16 |
.../files/cacti-spine-0.8.8g-parallel-make.patch | 9 ++++ |
17 |
5 files changed, 90 insertions(+) |
18 |
|
19 |
diff --git a/net-analyzer/cacti-spine/Manifest b/net-analyzer/cacti-spine/Manifest |
20 |
index f93518e..6024bed 100644 |
21 |
--- a/net-analyzer/cacti-spine/Manifest |
22 |
+++ b/net-analyzer/cacti-spine/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST cacti-spine-0.8.8e.tar.gz 757042 SHA256 e014488acffd4dd3a88306c3809e93a89c8538a050c2a58a9666e4c04c004b92 SHA512 165e93d4cce3378e911aec41fcd68fb541d82d849ebf3e2e28e0ddb65027ff2eb77d488acbaa133244091cd02adb58d8f74ea5abc36abed07af9ea72bc104f40 WHIRLPOOL 59442f54fbb8956a945404f374eba848bc21b60d53dacb025132a91dc077115aa65ee30959ba81fb521beb9732c1c5944adb1c555a36ad6ea72898172404970c |
25 |
DIST cacti-spine-0.8.8f.tar.gz 757078 SHA256 d0599239187f2f5a29f82b809e6941447f18bb7b170cd42e67455633b195e3c7 SHA512 8c5e1713bb1d41227cef6047e5348ef33b90b5591976cf24390abbf1e5c68de6714f785d9517ca9aed21b42b6b8772512af176b9f62bf18d6d74d949a6359a22 WHIRLPOOL 70545057f80d5cc5940059179bc3b72eabf48ff61c5eed5b0b344e995eb1411e3a89359e8c0b6bc3850b029233597d581ece59a99c6653ac7cfd028ef2e24232 |
26 |
+DIST cacti-spine-0.8.8g.tar.gz 805321 SHA256 f7d60d5663f6fe8f730363763f31d110589c725e482c943f0f8287359a6db533 SHA512 24d208b4779e5d04e0206e950c0d49d0453937b3da4a3e3bdbb1a075bdf22db3c6bb6789bab92f6c22a67c39745a36fc98cb28371423469b87a5936b3afb3ba3 WHIRLPOOL d1106b59748ac166c0b44ffdad285c3efefb03fec98318704e16022bf788168603884ee1b4bd22d9ef5fb962c5a60bfda241c6675b987fe9c02c7c4068213ad2 |
27 |
|
28 |
diff --git a/net-analyzer/cacti-spine/cacti-spine-0.8.8g.ebuild b/net-analyzer/cacti-spine/cacti-spine-0.8.8g.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..75f9d64 |
31 |
--- /dev/null |
32 |
+++ b/net-analyzer/cacti-spine/cacti-spine-0.8.8g.ebuild |
33 |
@@ -0,0 +1,50 @@ |
34 |
+# Copyright 1999-2015 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=5 |
39 |
+inherit autotools eutils |
40 |
+ |
41 |
+MY_P=${PN}-${PV/_p/-} |
42 |
+ |
43 |
+DESCRIPTION="Spine is a fast poller for Cacti (formerly known as Cactid)" |
44 |
+HOMEPAGE="http://cacti.net/spine_info.php" |
45 |
+SRC_URI="http://www.cacti.net/downloads/spine/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="LGPL-2.1" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
50 |
+ |
51 |
+CDEPEND=" |
52 |
+ dev-libs/openssl:* |
53 |
+ net-analyzer/net-snmp |
54 |
+ virtual/mysql |
55 |
+" |
56 |
+DEPEND=" |
57 |
+ ${CDEPEND} |
58 |
+ sys-apps/help2man |
59 |
+" |
60 |
+RDEPEND=" |
61 |
+ ${CDEPEND} |
62 |
+ >net-analyzer/cacti-0.8.8 |
63 |
+" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ epatch \ |
67 |
+ "${FILESDIR}"/${PN}-0.8.8g-fix-ac-macro.patch \ |
68 |
+ "${FILESDIR}"/${PN}-0.8.8d-mysql.patch \ |
69 |
+ "${FILESDIR}"/${PN}-0.8.8d-ping.patch \ |
70 |
+ "${FILESDIR}"/${PN}-0.8.8g-net-snmp.patch \ |
71 |
+ "${FILESDIR}"/${PN}-0.8.8g-parallel-make.patch |
72 |
+ |
73 |
+ sed -i -e 's/^bin_PROGRAMS/sbin_PROGRAMS/' Makefile.am |
74 |
+ AT_M4DIR="config" eautoreconf |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ dosbin spine |
79 |
+ insinto /etc/ |
80 |
+ insopts -m0640 -o root |
81 |
+ newins spine.conf{.dist,} |
82 |
+ dodoc ChangeLog README |
83 |
+} |
84 |
|
85 |
diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-fix-ac-macro.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-fix-ac-macro.patch |
86 |
new file mode 100644 |
87 |
index 0000000..fa12f1e |
88 |
--- /dev/null |
89 |
+++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-fix-ac-macro.patch |
90 |
@@ -0,0 +1,11 @@ |
91 |
+--- a/configure.ac |
92 |
++++ b/configure.ac |
93 |
+@@ -10,7 +10,7 @@ |
94 |
+ AC_LANG(C) |
95 |
+ |
96 |
+ AM_INIT_AUTOMAKE(spine, 0.8.8g) |
97 |
+-AM_CONFIG_HEADER(config/config.h) |
98 |
++AC_CONFIG_HEADERS(config/config.h) |
99 |
+ |
100 |
+ # static libraries |
101 |
+ AC_ARG_WITH(static, |
102 |
|
103 |
diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-net-snmp.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-net-snmp.patch |
104 |
new file mode 100644 |
105 |
index 0000000..5ee62e2 |
106 |
--- /dev/null |
107 |
+++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-net-snmp.patch |
108 |
@@ -0,0 +1,19 @@ |
109 |
+--- a/configure.ac |
110 |
++++ b/configure.ac |
111 |
+@@ -251,14 +251,14 @@ |
112 |
+ |
113 |
+ # Net-SNMP includes v3 support and insists on crypto unless compiled --without-openssl |
114 |
+ AC_MSG_CHECKING([if Net-SNMP needs crypto support]) |
115 |
+-AC_TRY_COMPILE([#include <net-snmp-config.h>], [exit(NETSNMP_USE_OPENSSL != 1);], |
116 |
++AC_TRY_COMPILE([#include <net-snmp/net-snmp-config.h>], [exit(NETSNMP_USE_OPENSSL != 1);], |
117 |
+ [ AC_MSG_RESULT(yes) |
118 |
+ SNMP_SSL=yes |
119 |
+ ], |
120 |
+ AC_MSG_RESULT(no) |
121 |
+ ) |
122 |
+ |
123 |
+-AC_TRY_COMPILE([ #include <net-snmp-config.h> |
124 |
++AC_TRY_COMPILE([ #include <net-snmp/net-snmp-config.h> |
125 |
+ #include <net-snmp/utilities.h> |
126 |
+ #include <net-snmp/net-snmp-includes.h> |
127 |
+ #include <net-snmp/config_api.h> |
128 |
|
129 |
diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-parallel-make.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-parallel-make.patch |
130 |
new file mode 100644 |
131 |
index 0000000..e7983ed |
132 |
--- /dev/null |
133 |
+++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8g-parallel-make.patch |
134 |
@@ -0,0 +1,9 @@ |
135 |
+--- a/Makefile.am |
136 |
++++ b/Makefile.am |
137 |
+@@ -9,5 +9,5 @@ |
138 |
+ |
139 |
+ man_MANS = spine.1 |
140 |
+ |
141 |
+-spine.1: spine.c |
142 |
++spine.1: $(sbin_PROGRAMS) |
143 |
+ $(HELP2MAN) --output=$@ --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine |