1 |
commit: 22f46fe622caf5664a5615e3ede9bcaebd79955f |
2 |
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 27 01:52:21 2013 +0000 |
4 |
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 27 01:52:21 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=commit;h=22f46fe6 |
7 |
|
8 |
Bump cacti-spine to the 0.8.8b release. |
9 |
|
10 |
--- |
11 |
net-analyzer/cacti-spine/Manifest | 1 + |
12 |
net-analyzer/cacti-spine/cacti-spine-0.8.8b.ebuild | 65 ++++++++++++++++++++++ |
13 |
.../files/cacti-spine-0.8.8b-fix-ac-macro.patch | 12 ++++ |
14 |
3 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/cacti-spine/Manifest b/net-analyzer/cacti-spine/Manifest |
17 |
index 53d6666..b9595c5 100644 |
18 |
--- a/net-analyzer/cacti-spine/Manifest |
19 |
+++ b/net-analyzer/cacti-spine/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cacti-spine-0.8.8a.tar.gz 623853 SHA256 2226070cd386a4955063a87e99df2fa861988a604a95f39bb8db2a301774b3ee SHA512 c6eb9492869488a5114cbfa2d372b1acb4bd1b0cecda2297f4b06cb1fe2fb95879b532923c230c72c9b50fbcfbf8f1d655c42075902c9f3a3ac4ee02d2e1913c WHIRLPOOL 080653346b698acff442c7d311ac805e6de410754a33dae698f6bd9328d3843734754fcf2eb417a870b1ac3d1effa5e830bec0d512b5f180da83b7c46ec2a74f |
22 |
+DIST cacti-spine-0.8.8b.tar.gz 631603 SHA256 fc5d512c1de46db2b48422856e8c6a5816d110083d0bbbf7f9d660f0829912a6 SHA512 22be23012fbe165ea7d7097bbca1dda472bbe521f126e28e03f2faf394e67e050d95d88a878688b615dcdca2ec2b2166fdd48567503f1564f093797634a1809a WHIRLPOOL 86c065989fc58e926f4e76ec842dcaa276f4a8fc65ddbb0a7b2752cb6a52778464520b80a48fb612cece56600f03b5512ca5f01b97e9b58eb7f12cc6c62f49bb |
23 |
|
24 |
diff --git a/net-analyzer/cacti-spine/cacti-spine-0.8.8b.ebuild b/net-analyzer/cacti-spine/cacti-spine-0.8.8b.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..e626be8 |
27 |
--- /dev/null |
28 |
+++ b/net-analyzer/cacti-spine/cacti-spine-0.8.8b.ebuild |
29 |
@@ -0,0 +1,65 @@ |
30 |
+# Copyright 1999-2013 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/cacti-spine-0.8.8a.ebuild,v 1.1 2013/04/27 15:09:23 pva Exp $ |
33 |
+ |
34 |
+EAPI="4" |
35 |
+inherit autotools eutils |
36 |
+ |
37 |
+UPSTREAM_PATCHES="" |
38 |
+ |
39 |
+MY_P=${PN}-${PV/_p/-} |
40 |
+ |
41 |
+DESCRIPTION="Spine is a fast poller for Cacti (formerly known as Cactid)" |
42 |
+HOMEPAGE="http://cacti.net/spine_info.php" |
43 |
+SRC_URI="http://www.cacti.net/downloads/spine/${MY_P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="LGPL-2.1" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
48 |
+IUSE="" |
49 |
+ |
50 |
+DEPEND="net-analyzer/net-snmp |
51 |
+ dev-libs/openssl |
52 |
+ virtual/mysql" |
53 |
+RDEPEND="${DEPEND} |
54 |
+ >net-analyzer/cacti-0.8.8" |
55 |
+ |
56 |
+if [[ -n ${UPSTREAM_PATCHES} ]]; then |
57 |
+ for i in ${UPSTREAM_PATCHES}; do |
58 |
+ SRC_URI="${SRC_URI} http://www.cacti.net/downloads/spine/patches/${PV}/${i}.patch" |
59 |
+ done |
60 |
+fi |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ # Patch configure.ac to replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS |
64 |
+ epatch "${FILESDIR}/${P}-fix-ac-macro.patch" |
65 |
+ |
66 |
+ if [[ -n ${UPSTREAM_PATCHES} ]]; then |
67 |
+ for i in ${UPSTREAM_PATCHES} ; do |
68 |
+ EPATCH_OPTS="-p1 -N" epatch "${DISTDIR}"/${i}.patch |
69 |
+ done |
70 |
+ fi |
71 |
+ |
72 |
+ sed -i -e 's/^bin_PROGRAMS/sbin_PROGRAMS/' Makefile.am |
73 |
+ AT_M4DIR="config" eautoreconf |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ dosbin spine || die |
78 |
+ insinto /etc/ |
79 |
+ insopts -m0640 -o root |
80 |
+ newins spine.conf{.dist,} || die |
81 |
+ dodoc ChangeLog README || die |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ elog "Please see the cacti's site for installation instructions:" |
86 |
+ elog |
87 |
+ elog "http://cacti.net/spine_install.php" |
88 |
+ echo |
89 |
+ ewarn "/etc/spine.conf should be readable by webserver, thus after you" |
90 |
+ ewarn "decide on webserver do not forget to run the following command:" |
91 |
+ ewarn |
92 |
+ ewarn " # chown root:<wwwgroup> /etc/spine.conf" |
93 |
+ echo |
94 |
+} |
95 |
|
96 |
diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8b-fix-ac-macro.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8b-fix-ac-macro.patch |
97 |
new file mode 100644 |
98 |
index 0000000..81fb6db |
99 |
--- /dev/null |
100 |
+++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8b-fix-ac-macro.patch |
101 |
@@ -0,0 +1,12 @@ |
102 |
+diff -ur cacti-spine-0.8.8b-orig/configure.ac cacti-spine-0.8.8b/configure.ac |
103 |
+--- cacti-spine-0.8.8b-orig/configure.ac 2013-08-27 01:45:32.400120526 +0000 |
104 |
++++ cacti-spine-0.8.8b/configure.ac 2013-08-27 01:45:42.350084943 +0000 |
105 |
+@@ -10,7 +10,7 @@ |
106 |
+ AC_LANG(C) |
107 |
+ |
108 |
+ AM_INIT_AUTOMAKE(spine, 0.8.8b) |
109 |
+-AM_CONFIG_HEADER(config/config.h) |
110 |
++AC_CONFIG_HEADERS(config/config.h) |
111 |
+ |
112 |
+ # static libraries |
113 |
+ AC_ARG_WITH(static, |