1 |
commit: a142ccd01505a4c49d17d8272b0c15fad04a2a90 |
2 |
Author: Andreas K. Huettel (dilfridge) <mail <AT> akhuettel <DOT> de> |
3 |
AuthorDate: Tue Mar 29 22:18:41 2011 +0000 |
4 |
Commit: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 29 22:18:41 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dilfridge.git;a=commit;h=a142ccd0 |
7 |
|
8 |
[app-admin/collectd] Resync with tree |
9 |
|
10 |
(Portage version: 2.1.9.44/git/Linux x86_64, signed Manifest commit with key B6C5F7DE) |
11 |
|
12 |
--- |
13 |
app-admin/collectd/ChangeLog | 7 + |
14 |
app-admin/collectd/Manifest | 37 ++- |
15 |
app-admin/collectd/collectd-4.10.2-r3.ebuild | 315 ++++++++++++++++++++ |
16 |
.../files/collectd-4.10.2-libnotify-0.7.patch | 27 ++ |
17 |
.../collectd/files/collectd-4.10.2-nohal.patch | 23 ++ |
18 |
app-admin/collectd/files/collectd.initd | 4 +- |
19 |
6 files changed, 394 insertions(+), 19 deletions(-) |
20 |
|
21 |
diff --git a/app-admin/collectd/ChangeLog b/app-admin/collectd/ChangeLog |
22 |
index 52ffcee..92300f1 100644 |
23 |
--- a/app-admin/collectd/ChangeLog |
24 |
+++ b/app-admin/collectd/ChangeLog |
25 |
@@ -2,6 +2,13 @@ |
26 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
27 |
# $Header: $ |
28 |
|
29 |
+*collectd-4.10.2-r3 (29 Mar 2011) |
30 |
+ |
31 |
+ 29 Mar 2011; Andreas K. Huettel <dilfridge@g.o> |
32 |
+ +collectd-4.10.2-r3.ebuild, +files/collectd-4.10.2-libnotify-0.7.patch, |
33 |
+ +files/collectd-4.10.2-nohal.patch, files/collectd.initd: |
34 |
+ Resync with tree |
35 |
+ |
36 |
28 Jan 2011; Andreas K. Huettel <dilfridge@g.o> |
37 |
collectd-4.10.2-r2.ebuild: |
38 |
Added hints about new configuration |
39 |
|
40 |
diff --git a/app-admin/collectd/Manifest b/app-admin/collectd/Manifest |
41 |
index 0075774..604795f 100644 |
42 |
--- a/app-admin/collectd/Manifest |
43 |
+++ b/app-admin/collectd/Manifest |
44 |
@@ -1,34 +1,37 @@ |
45 |
-----BEGIN PGP SIGNED MESSAGE----- |
46 |
-Hash: SHA1 |
47 |
+Hash: SHA512 |
48 |
|
49 |
AUX collectd-4.10.1-libiptc.patch 534 RMD160 dd6c016797ec4e6e5c7c67bbbeddd50d1c59badc SHA1 253efd36642f7ab1253bcc307e0f4d0e1a4d8e21 SHA256 f6c63e0cb686e4d7a655b9ff0b69e8ba75a9cf40c2ae79c6ec97c1e7377d2f4e |
50 |
AUX collectd-4.10.1-libperl.patch 917 RMD160 2feb20abbf7fd036e34957c190689f1e668ff321 SHA1 1c8312b576faa6a855f4f615995b007b108325ba SHA256 26e3c74392166a2438d7106e94953f871aedfe3b643c866afc8865c1ef7534c7 |
51 |
AUX collectd-4.10.1-noowniptc.patch 837 RMD160 433d936a3c8d22af289ab9ecc00a9843ab4634e3 SHA1 c08eb253a5297c9ec69b1923dc2ed173343e0ce8 SHA256 fac80da197b0df38b2544edf7008eed544eac06817d5ead86dea2baf46ee009d |
52 |
+AUX collectd-4.10.2-libnotify-0.7.patch 823 RMD160 f3a0febc8487be06ad1cc5ffc61206ad97b2ba37 SHA1 fae5913db9fe0c9243bad1aa9610f0759c1e0abb SHA256 b7a4baca65b4c68ca46ac95a269071c356ca4674ebfda50e872f665cf2422fe8 |
53 |
AUX collectd-4.10.2-libocci.patch 720 RMD160 c90872f76a771076efe500c78dc3e3a5545f8f51 SHA1 40197f33a565ea37774f577c036b1c75ef447cae SHA256 2338b8405e46d67bc71ebe4d4f8cba8658047a352cb7b0c3c0f4b15109a9c98b |
54 |
+AUX collectd-4.10.2-nohal.patch 888 RMD160 a7d5969f3119f44eeb1b163d13bfd86c727854f3 SHA1 275e928e2bbad3b01d7e129793922d48348334fa SHA256 d1b8fccc96289c42e6aa33187bfca250ae0152a44d5cfba41ccf9e941a6aa799 |
55 |
AUX collectd.confd 633 RMD160 46f81e3f73d577c3f59df404012e33c419188acc SHA1 85f569035bbb6ff7d3e03a4b85c35ccb126c29a4 SHA256 30e41d63f3af1d736d86903046e5aac8f8a548714bab0acbbca0ffd6c16ed430 |
56 |
-AUX collectd.initd 1475 RMD160 47950563900702075f1d429c70a9b00bd19addc1 SHA1 ce61a9ea693a749ba6fe14e9d0bda9124a142f8f SHA256 4f51375e2d8b1543bcbf5c72257a45ed5a10edfe29b95d819a9087de307bbfda |
57 |
+AUX collectd.initd 1475 RMD160 13141c68cd0d22ca5ea84ca70187b835c1831783 SHA1 fca53c6ad12139176033c992fc361a4cf3879245 SHA256 3a322c53b199661eafdf11af192cffd9a1ed54d618a0fd29bcbab9e214b1071d |
58 |
AUX logrotate 115 RMD160 bc70b0fbacde2021a96851f781e096597b161f8c SHA1 4c9f65faab5a43b142fe7f34163ca6d07b8ed704 SHA256 eb359631805b6bfb9f2a9ae5ed21be8f8b3b6f1ffeed8d506231043c9a77262c |
59 |
DIST collectd-4.10.2.tar.bz2 1419603 RMD160 13db504beb5cd560d60014183b67ce768fe4293e SHA1 8d83dd2d68ac4c0871774af99079564880abb5ef SHA256 17cd6741c360cb2544f00fbe902ec3e9aa0d04a7ab6a744e3e8ea5615bb794be |
60 |
EBUILD collectd-4.10.2-r1.ebuild 10640 RMD160 fbb7533f826bada4ba457d42e4e2f648852389d3 SHA1 c68a33cf1c5382bdfdf6910405683e2993e6af65 SHA256 fff8f6c361a5e731dacfa65aa6679c8ea25b35956a5e8d68a686b9c13b11f82e |
61 |
EBUILD collectd-4.10.2-r2.ebuild 11168 RMD160 17cdc2cf5c63248bc78f36f83e1f415e8ecc0a1c SHA1 35d8baabcedbf9939744a36f27016dc64e7e1d43 SHA256 d2341b470bf93465e3a322edfe2d7ba810a8b9ea8041cf13034ebda20494a3bb |
62 |
+EBUILD collectd-4.10.2-r3.ebuild 11214 RMD160 09dbcb98d4c40d3bf7647ecc694a546c7a245763 SHA1 432001d9d8b610cb4c5c22c4aef66f8ec274c4d3 SHA256 afcc4a0f5a34937b92a0384954def40d3635be8853703770fdd7f16e42be5814 |
63 |
EBUILD collectd-4.10.2.ebuild 10592 RMD160 16570e9e090eecb4c9c69d4b331d529f6074d188 SHA1 e2c9c909abaa0436eced0cfbb62dd1b3359036dd SHA256 eac5dcbebcefa18d510466047055d1578d760245a2b5e69632db786cb350c357 |
64 |
-MISC ChangeLog 5267 RMD160 b39d57319b957326a7f468f7cf239430db2a5ce4 SHA1 be62152f134131672b5b63fca357f0d912ac8dfd SHA256 e89a5da15de98baa26e02a5cd1432e4986793c94d6ab3c866021b3427c5b862c |
65 |
+MISC ChangeLog 5513 RMD160 30025630f16b089f90e04479204c2620c425801d SHA1 cf8d6d65d944bb23268df27a0157e3024057a623 SHA256 5950778c0a30ea45a7cf53ccc10b202f000dc25acf96d15d9061f5c283ee77ed |
66 |
MISC metadata.xml 11374 RMD160 d55c891c2b22898dd8d4f09e635bddbd61988ea9 SHA1 f725b0c3a45c6c3098dd84b29b39dc7a95a0267f SHA256 f849d03105461a54bce4e59f96530a8ab9471ab8620efee506076ef4e546eb88 |
67 |
MISC notes.txt 1607 RMD160 298719e43ddce700a2eba689061e9e11344da408 SHA1 070967029632603b999c1088e9cded260df4014a SHA256 18c9c548d062e9b2dd71f4786ae985fa7b9bac7706d34f359c6d4518ac6b956f |
68 |
-----BEGIN PGP SIGNATURE----- |
69 |
-Version: GnuPG v2.0.16 (GNU/Linux) |
70 |
+Version: GnuPG v2.0.17 (GNU/Linux) |
71 |
|
72 |
-iQIcBAEBAgAGBQJNQzUuAAoJENwGBM22xffesTsP/2lsIhwcUFC9sRqzofONpnd3 |
73 |
-HMMr9rWH1uTioat8QEBzHI3oPUV4XT3oyNY36Z0w0YCJhgZ2CRLaQU+YPV3jKmE/ |
74 |
-qp/sR/1lg+Xr0Nv6LHKRjPuadEaVicFCV4kbEs2FMWiOwV2IC7N5TwvAhLL7FEUB |
75 |
-tYYxS0mJDZjVYKVU+ImgsismBRDMCNj1uQlDTcHyubCUNhpSfIGftYWdU2VrYONA |
76 |
-1orIMjlYK0vyeL9XMSUVu0eGap9zYSQwIHKse6pT4rCdh/0E6SDztGhEOe4g90xt |
77 |
-eW+UHbH3UXcr3pcYzB6EVJsj/lpz4Z+nhC5XmcxEhxzGhqwfQ/8ymmIpOz66BBtQ |
78 |
-KVPbs+8lznnIec1Sc5QO8DpbheTl1kszx5prAviYI5adXKIlgQeY3X/OIHidzVes |
79 |
-1WXbksqkPJkmFaR3Vz2Ox2E54nvZTj2BehECZ/e/Db6VV2p/RiqyZ7sNqCRhg5Lp |
80 |
-2vrjyonsZ3CYCMoZ/pr7lpG1BT/tj8mwLFHXUjIpmR5I1jIF51nWcxCPdbs4OHf0 |
81 |
-7Ix0Bh2xM06qE6+xTFkc41vw8BdOQQmnp8FLR9AVUG83gsawml6/AArk006ivx8s |
82 |
-eJS/6fOKiqK5BySICprKF9h8D8Wl5DVOZiWHbbo3WeuRI1l4pVQ8OgOJQcvv2WZV |
83 |
-Gm8HHM/4q8xo/UnEN/0Q |
84 |
-=k5sz |
85 |
+iQIcBAEBCgAGBQJNklrBAAoJENwGBM22xffejPsP/iHLy1wVewtyftX0eTO2yuUw |
86 |
+Gn0VL4qzyM7Rp6nj8Dq0ECXjqBIL/tGzKsTegZZqPIhf39xESiR7jRI6mxRODEjH |
87 |
+F1hlSXbbchOKEtzJAHJtUKo92s3FG397p6Br9J1wX6mF8yxE68tADMPWkswZkUCS |
88 |
+cl5tu/zCdci2LTEDa8JxJodzlUXcVbndfD1Hg3oK2WtupvyjCaEhqX8/RuA9/h21 |
89 |
+NPrT7VY1MpFqb23YYwb4EPnBUbXImjcJPi2Sg3KAMmrugpmOz1umh7uSz0RaYrAw |
90 |
+BocIaqx1bwV27akQsoRQPrwF7EXqAHCJvZ90dHU3No0WhXalbocQYIEY1OhVgzSt |
91 |
+KQUPB0HnKVSrlzw1pGab1og0Bojg6XXDtPPz9snc0/LrzOw7CDVLF+ZNPUoYVyat |
92 |
++CuE3ilyng+OK7JQv3R5ND1DtP6AhrccLpgtjNbgZ7Km336zmHv8b6T7uFq7IS+f |
93 |
+o8rPKHOoepxLyI2OAHBrJWBI+bQT8+qrMCtz4uqIMJfUZ3uhnmCGr0KmbnK1ggOO |
94 |
+ouIt3hDy9p3do96PXTXjKBV3HAD1BWk3J6RYhkEDPxrk7u5hldsFVU97LtsRheHF |
95 |
+sDPuwkA9z42ahBwUOASDaoUGHnMETmh66GKTQlvvoSLcP2lG3D2G69XS7j0RTsoZ |
96 |
+UsF86E6jwykTqCsclTmX |
97 |
+=mpbB |
98 |
-----END PGP SIGNATURE----- |
99 |
|
100 |
diff --git a/app-admin/collectd/collectd-4.10.2-r3.ebuild b/app-admin/collectd/collectd-4.10.2-r3.ebuild |
101 |
new file mode 100644 |
102 |
index 0000000..0a92c7d |
103 |
--- /dev/null |
104 |
+++ b/app-admin/collectd/collectd-4.10.2-r3.ebuild |
105 |
@@ -0,0 +1,315 @@ |
106 |
+# Copyright 1999-2011 Gentoo Foundation |
107 |
+# Distributed under the terms of the GNU General Public License v2 |
108 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/collectd/collectd-4.10.2-r3.ebuild,v 1.1 2011/02/07 21:21:52 dilfridge Exp $ |
109 |
+ |
110 |
+EAPI="2" |
111 |
+ |
112 |
+inherit eutils base linux-info perl-app autotools |
113 |
+ |
114 |
+DESCRIPTION="A small daemon which collects system performance statistics - with a near-infinite number of plugins" |
115 |
+HOMEPAGE="http://collectd.org" |
116 |
+SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" |
117 |
+ |
118 |
+LICENSE="GPL-2" |
119 |
+SLOT="0" |
120 |
+KEYWORDS="~amd64 ~x86" |
121 |
+IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin" |
122 |
+ |
123 |
+# The plugin lists have to follow here since they extend IUSE |
124 |
+ |
125 |
+# Plugins that to my knowledge cannot be supported (eg. dependencies not in gentoo) |
126 |
+COLLECTD_IMPOSSIBLE_PLUGINS="netapp pinba xmms" |
127 |
+ |
128 |
+# Plugins that still need some work |
129 |
+COLLECTD_UNTESTED_PLUGINS="ipvs apple_sensors routeros tape zfs_arc nut modbus" |
130 |
+ |
131 |
+# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS |
132 |
+COLLECTD_TESTED_PLUGINS="apache apcups ascent battery bind conntrack contextswitch |
133 |
+ cpu cpufreq curl curl_json curl_xml dbi df disk dns email entropy exec filecount fscache gmond |
134 |
+ hddtemp interface ipmi iptables irq java libvirt load madwifi mbmon memcachec |
135 |
+ memcached memory multimeter mysql netlink network nfs nginx ntpd olsrd |
136 |
+ onewire openvpn perl ping postgresql powerdns processes protocols python |
137 |
+ rrdcached sensors serial snmp swap table tail tcpconns teamspeak2 ted thermal |
138 |
+ tokyotyrant uptime users vmem vserver wireless csv exec logfile network |
139 |
+ notify_desktop notify_email oracle perl python rrdcached rrdtool syslog unixsock write_http |
140 |
+ match_empty_counter match_hashed match_regex match_timediff match_value |
141 |
+ target_notification target_replace target_scale target_set uuid" |
142 |
+ |
143 |
+COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS} ${COLLECTD_UNTESTED_PLUGINS}" |
144 |
+ |
145 |
+COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS} |
146 |
+ |
147 |
+for plugin in ${COLLECTD_ALL_PLUGINS}; do |
148 |
+ IUSE="${IUSE} collectd_plugins_${plugin}" |
149 |
+done |
150 |
+unset plugin |
151 |
+ |
152 |
+# Now come the dependencies. |
153 |
+ |
154 |
+COMMON_DEPEND=" |
155 |
+ collectd_plugins_apache? ( net-misc/curl ) |
156 |
+ collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 ) |
157 |
+ collectd_plugins_bind? ( dev-libs/libxml2 ) |
158 |
+ collectd_plugins_curl? ( net-misc/curl ) |
159 |
+ collectd_plugins_curl_json? ( net-misc/curl dev-libs/yajl ) |
160 |
+ collectd_plugins_curl_xml? ( net-misc/curl dev-libs/libxml2 ) |
161 |
+ collectd_plugins_dbi? ( dev-db/libdbi ) |
162 |
+ collectd_plugins_dns? ( net-libs/libpcap ) |
163 |
+ collectd_plugins_gmond? ( sys-cluster/ganglia ) |
164 |
+ collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 ) |
165 |
+ collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.9.1-r2 ) |
166 |
+ collectd_plugins_java? ( virtual/jre dev-java/java-config-wrapper ) |
167 |
+ collectd_plugins_libvirt? ( app-emulation/libvirt dev-libs/libxml2 ) |
168 |
+ collectd_plugins_memcachec? ( dev-libs/libmemcached ) |
169 |
+ collectd_plugins_mysql? ( >=virtual/mysql-5.0 ) |
170 |
+ collectd_plugins_netlink? ( >=sys-apps/iproute2-2.6.34 ) |
171 |
+ collectd_plugins_network? ( dev-libs/libgcrypt ) |
172 |
+ collectd_plugins_nginx? ( net-misc/curl ) |
173 |
+ collectd_plugins_notify_desktop? ( x11-libs/libnotify ) |
174 |
+ collectd_plugins_notify_email? ( >=net-libs/libesmtp-1.0.4 dev-libs/openssl ) |
175 |
+ collectd_plugins_onewire? ( sys-fs/owfs ) |
176 |
+ collectd_plugins_oracle? ( >=dev-db/oracle-instantclient-basic-11.2.0.1.0 ) |
177 |
+ collectd_plugins_perl? ( dev-lang/perl[ithreads] ( || ( sys-devel/libperl[ithreads] >=sys-devel/libperl-5.10 ) ) ) |
178 |
+ collectd_plugins_ping? ( net-libs/liboping ) |
179 |
+ collectd_plugins_postgresql? ( >=dev-db/postgresql-base-8.2 ) |
180 |
+ collectd_plugins_python? ( =dev-lang/python-2* ) |
181 |
+ collectd_plugins_rrdcached? ( >=net-analyzer/rrdtool-1.4 ) |
182 |
+ collectd_plugins_rrdtool? ( >=net-analyzer/rrdtool-1.2.27 ) |
183 |
+ collectd_plugins_sensors? ( sys-apps/lm_sensors ) |
184 |
+ collectd_plugins_snmp? ( net-analyzer/net-snmp ) |
185 |
+ collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant ) |
186 |
+ collectd_plugins_write_http? ( net-misc/curl ) |
187 |
+ |
188 |
+ kernel_FreeBSD? ( |
189 |
+ collectd_plugins_disk? ( >=sys-libs/libstatgrab-0.16 ) |
190 |
+ collectd_plugins_interface? ( >=sys-libs/libstatgrab-0.16 ) |
191 |
+ collectd_plugins_load? ( >=sys-libs/libstatgrab-0.16 ) |
192 |
+ collectd_plugins_memory? ( >=sys-libs/libstatgrab-0.16 ) |
193 |
+ collectd_plugins_swap? ( >=sys-libs/libstatgrab-0.16 ) |
194 |
+ collectd_plugins_users? ( >=sys-libs/libstatgrab-0.16 ) |
195 |
+ )" |
196 |
+ |
197 |
+DEPEND="${COMMON_DEPEND} |
198 |
+ dev-util/pkgconfig |
199 |
+ kernel_linux? ( |
200 |
+ collectd_plugins_vserver? ( sys-kernel/vserver-sources ) |
201 |
+ )" |
202 |
+ |
203 |
+RDEPEND="${COMMON_DEPEND} |
204 |
+ collectd_plugins_syslog? ( virtual/logger )" |
205 |
+ |
206 |
+PATCHES=( |
207 |
+ "${FILESDIR}/${PN}-4.10.1"-{libperl,libiptc,noowniptc}.patch |
208 |
+ "${FILESDIR}/${P}"-{libocci,libnotify-0.7,nohal}.patch |
209 |
+ ) |
210 |
+ |
211 |
+# @FUNCTION: collectd_plugin_kernel_linux |
212 |
+# @DESCRIPTION: |
213 |
+# USAGE: <plug-in name> <kernel_options> <severity> |
214 |
+# kernel_options is a list of kernel configurations options; the check tests whether at least |
215 |
+# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message |
216 |
+# is emitted. |
217 |
+collectd_plugin_kernel_linux() { |
218 |
+ local multi_opt opt |
219 |
+ if has ${1} ${COLLECTD_ALL_PLUGINS}; then |
220 |
+ if use collectd_plugins_${1}; then |
221 |
+ for opt in ${2}; do |
222 |
+ if linux_chkconfig_present ${opt}; then return 0; fi |
223 |
+ done |
224 |
+ multi_opt=${2//\ /\ or\ } |
225 |
+ case ${3} in |
226 |
+ (info) |
227 |
+ elog "The ${1} plug-in can use kernel features that are disabled now; enable ${multi_opt} in your kernel" |
228 |
+ ;; |
229 |
+ (warn) |
230 |
+ ewarn "The ${1} plug-in uses kernel features that are disabled now; enable ${multi_opt} in your kernel" |
231 |
+ ;; |
232 |
+ (error) |
233 |
+ eerror "The ${1} plug-in needs kernel features that are disabled now; enable ${multi_opt} in your kernel" |
234 |
+ ;; |
235 |
+ (*) |
236 |
+ die "function collectd_plugin_kernel_linux called with invalid third argument" |
237 |
+ ;; |
238 |
+ esac |
239 |
+ fi |
240 |
+ fi |
241 |
+} |
242 |
+ |
243 |
+collectd_linux_kernel_checks() { |
244 |
+ linux-info_pkg_setup |
245 |
+ |
246 |
+ # battery.c:/proc/pmu/battery_%i |
247 |
+ # battery.c:/proc/acpi/battery |
248 |
+ collectd_plugin_kernel_linux battery ACPI_BATTERY warn |
249 |
+ |
250 |
+ # cpufreq.c:/sys/devices/system/cpu/cpu%d/cpufreq/ |
251 |
+ collectd_plugin_kernel_linux cpufreq SYSFS warn |
252 |
+ collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn |
253 |
+ |
254 |
+ # nfs.c:/proc/net/rpc/nfs |
255 |
+ # nfs.c:/proc/net/rpc/nfsd |
256 |
+ collectd_plugin_kernel_linux nfs NFS_COMMON warn |
257 |
+ |
258 |
+ # serial.c:/proc/tty/driver/serial |
259 |
+ # serial.c:/proc/tty/driver/ttyS |
260 |
+ collectd_plugin_kernel_linux serial SERIAL_CORE warn |
261 |
+ |
262 |
+ # swap.c:/proc/meminfo |
263 |
+ collectd_plugin_kernel_linux swap SWAP warn |
264 |
+ |
265 |
+ # thermal.c:/proc/acpi/thermal_zone |
266 |
+ # thermal.c:/sys/class/thermal |
267 |
+ collectd_plugin_kernel_linux thermal "PROC_FS SYSFS" warn |
268 |
+ collectd_plugin_kernel_linux thermal ACPI_THERMAL warn |
269 |
+ |
270 |
+ # vmem.c:/proc/vmstat |
271 |
+ collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn |
272 |
+ |
273 |
+ # uuid.c:/sys/hypervisor/uuid |
274 |
+ collectd_plugin_kernel_linux uuid SYSFS info |
275 |
+ |
276 |
+ # wireless.c:/proc/net/wireless |
277 |
+ collectd_plugin_kernel_linux wireless "MAC80211 IEEE80211" warn |
278 |
+} |
279 |
+ |
280 |
+pkg_setup() { |
281 |
+ if use kernel_linux; then |
282 |
+ if linux_config_exists; then |
283 |
+ einfo "Checking your linux kernel configuration:" |
284 |
+ collectd_linux_kernel_checks |
285 |
+ else |
286 |
+ elog "Cannot find a linux kernel configuration. Continuing anyway." |
287 |
+ fi |
288 |
+ fi |
289 |
+ |
290 |
+ enewgroup collectd |
291 |
+} |
292 |
+ |
293 |
+src_prepare() { |
294 |
+ base_src_prepare |
295 |
+ |
296 |
+ # There's some strange prefix handling in the default config file, resulting in |
297 |
+ # paths like "/usr/var/..." |
298 |
+ sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die |
299 |
+ |
300 |
+ eautoreconf |
301 |
+} |
302 |
+ |
303 |
+src_configure() { |
304 |
+ # Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here |
305 |
+ # should work independent of the operating system. |
306 |
+ |
307 |
+ local linux_plugins="battery cpu cpufreq disk entropy interface iptables ipvs irq load |
308 |
+ memory netlink nfs processes serial swap tcpconns thermal users vmem vserver |
309 |
+ wireless" |
310 |
+ |
311 |
+ local libstatgrab_plugins="cpu disk interface load memory swap users" |
312 |
+ local bsd_plugins="cpu tcpconns ${libstatgrab_plugins}" |
313 |
+ |
314 |
+ local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns" |
315 |
+ |
316 |
+ local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}" |
317 |
+ local myos_plugins="" |
318 |
+ if use kernel_linux; then |
319 |
+ einfo "Enabling Linux plugins." |
320 |
+ myos_plugins=${linux_plugins} |
321 |
+ elif use kernel_FreeBSD; then |
322 |
+ einfo "Enabling FreeBSD plugins." |
323 |
+ myos_plugins=${bsd_plugins} |
324 |
+ elif use kernel_Darwin; then |
325 |
+ einfo "Enabling Darwin plugins." |
326 |
+ myos_plugins=${darwin_plugins} |
327 |
+ fi |
328 |
+ |
329 |
+ # Do we debug? |
330 |
+ local myconf="$(use_enable debug)" |
331 |
+ |
332 |
+ local plugin |
333 |
+ |
334 |
+ # Disable what needs to be disabled. |
335 |
+ for plugin in ${COLLECTD_DISABLED_PLUGINS}; do |
336 |
+ myconf+=" --disable-${plugin}" |
337 |
+ done |
338 |
+ |
339 |
+ # Set enable/disable for each single plugin. |
340 |
+ for plugin in ${COLLECTD_ALL_PLUGINS}; do |
341 |
+ if has ${plugin} ${osdependent_plugins}; then |
342 |
+ # plugin is os-dependent ... |
343 |
+ if has ${plugin} ${myos_plugins}; then |
344 |
+ # ... and available in this os |
345 |
+ myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" |
346 |
+ else |
347 |
+ # ... and NOT available in this os |
348 |
+ if use collectd_plugins_${plugin}; then |
349 |
+ ewarn "You try to enable the ${plugin} plugin, but it is not available for this" |
350 |
+ ewarn "kernel. Disabling it automatically." |
351 |
+ fi |
352 |
+ myconf+=" --disable-${plugin}" |
353 |
+ fi |
354 |
+ else |
355 |
+ myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" |
356 |
+ fi |
357 |
+ done |
358 |
+ |
359 |
+ # Need JAVA_HOME for java. |
360 |
+ if use collectd_plugins_java; then |
361 |
+ myconf+=" --with-java=$(java-config -g JAVA_HOME)" |
362 |
+ fi |
363 |
+ |
364 |
+ # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens. |
365 |
+ if ! use collectd_plugins_iptables; then |
366 |
+ myconf+=" --with-libiptc=no" |
367 |
+ fi |
368 |
+ |
369 |
+ # Finally, run econf. |
370 |
+ KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl --disable-static --localstatedir=/var ${myconf} |
371 |
+} |
372 |
+ |
373 |
+src_install() { |
374 |
+ emake DESTDIR="${D}" install || die |
375 |
+ |
376 |
+ fixlocalpod |
377 |
+ |
378 |
+ find "${D}/usr/" -name "*.la" -exec rm -f {} + |
379 |
+ |
380 |
+ dodoc AUTHORS ChangeLog NEWS README TODO || die |
381 |
+ |
382 |
+ if use contrib ; then |
383 |
+ insinto /usr/share/doc/${PF} |
384 |
+ doins -r contrib || die |
385 |
+ fi |
386 |
+ |
387 |
+ keepdir /var/lib/${PN} || die |
388 |
+ |
389 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} || die |
390 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} || die |
391 |
+ |
392 |
+ insinto /etc/logrotate.d |
393 |
+ newins "${FILESDIR}/logrotate" collectd || die |
394 |
+ |
395 |
+ sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die |
396 |
+ sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die |
397 |
+} |
398 |
+ |
399 |
+collectd_rdeps() { |
400 |
+ if (use collectd_plugins_${1} && ! has_version "${2}"); then |
401 |
+ elog "The ${1} plug-in needs ${2} to be installed locally or remotely to work." |
402 |
+ fi |
403 |
+} |
404 |
+ |
405 |
+pkg_postinst() { |
406 |
+ collectd_rdeps apcups sys-power/apcupsd |
407 |
+ collectd_rdeps hddtemp app-admin/hddtemp |
408 |
+ collectd_rdeps mbmon sys-apps/xmbmon |
409 |
+ collectd_rdeps memcached ">=net-misc/memcached-1.2.2-r2" |
410 |
+ collectd_rdeps ntpd net-misc/ntp |
411 |
+ collectd_rdeps openvpn ">=net-misc/openvpn-2.0.9" |
412 |
+ |
413 |
+ if use collectd_plugins_email; then |
414 |
+ ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin." |
415 |
+ fi |
416 |
+ if use contrib; then |
417 |
+ elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser," |
418 |
+ elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed." |
419 |
+ fi |
420 |
+} |
421 |
|
422 |
diff --git a/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch b/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch |
423 |
new file mode 100644 |
424 |
index 0000000..92b01b1 |
425 |
--- /dev/null |
426 |
+++ b/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch |
427 |
@@ -0,0 +1,27 @@ |
428 |
+--- src/notify_desktop.c |
429 |
++++ src/notify_desktop.c |
430 |
+@@ -31,6 +31,10 @@ |
431 |
+ #include <glib.h> |
432 |
+ #include <libnotify/notify.h> |
433 |
+ |
434 |
++#ifndef NOTIFY_CHECK_VERSION |
435 |
++#define NOTIFY_CHECK_VERSION(x,y,z) 0 |
436 |
++#endif |
437 |
++ |
438 |
+ #define log_info(...) INFO ("notify_desktop: " __VA_ARGS__) |
439 |
+ #define log_warn(...) WARNING ("notify_desktop: " __VA_ARGS__) |
440 |
+ #define log_err(...) ERROR ("notify_desktop: " __VA_ARGS__) |
441 |
+@@ -95,7 +99,12 @@ |
442 |
+ : (NOTIF_WARNING == n->severity) ? "WARNING" |
443 |
+ : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN"); |
444 |
+ |
445 |
+- notification = notify_notification_new (summary, n->message, NULL, NULL); |
446 |
++ notification = notify_notification_new (summary, n->message, NULL |
447 |
++#if NOTIFY_CHECK_VERSION (0, 7, 0) |
448 |
++ ); |
449 |
++#else |
450 |
++ , NULL); |
451 |
++#endif |
452 |
+ if (NULL == notification) { |
453 |
+ log_err ("Failed to create a new notification."); |
454 |
+ return -1; |
455 |
|
456 |
diff --git a/app-admin/collectd/files/collectd-4.10.2-nohal.patch b/app-admin/collectd/files/collectd-4.10.2-nohal.patch |
457 |
new file mode 100644 |
458 |
index 0000000..a82a3bc |
459 |
--- /dev/null |
460 |
+++ b/app-admin/collectd/files/collectd-4.10.2-nohal.patch |
461 |
@@ -0,0 +1,23 @@ |
462 |
+diff -ruN collectd-4.10.2.orig/configure.in collectd-4.10.2/configure.in |
463 |
+--- collectd-4.10.2.orig/configure.in 2010-11-27 11:10:38.000000000 +0100 |
464 |
++++ collectd-4.10.2/configure.in 2011-02-07 21:55:22.000000000 +0100 |
465 |
+@@ -1109,18 +1109,7 @@ |
466 |
+ AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes") |
467 |
+ |
468 |
+ dnl Check for HAL (hardware abstraction library) |
469 |
+-with_libhal="yes" |
470 |
+-AC_CHECK_LIB(hal,libhal_device_property_exists, |
471 |
+- [AC_DEFINE(HAVE_LIBHAL, 1, [Define to 1 if you have 'hal' library])], |
472 |
+- [with_libhal="no"]) |
473 |
+-if test "x$with_libhal" = "xyes"; then |
474 |
+- if test "x$PKG_CONFIG" != "x"; then |
475 |
+- BUILD_WITH_LIBHAL_CFLAGS="`pkg-config --cflags hal`" |
476 |
+- BUILD_WITH_LIBHAL_LIBS="`pkg-config --libs hal`" |
477 |
+- AC_SUBST(BUILD_WITH_LIBHAL_CFLAGS) |
478 |
+- AC_SUBST(BUILD_WITH_LIBHAL_LIBS) |
479 |
+- fi |
480 |
+-fi |
481 |
++with_libhal="no" |
482 |
+ |
483 |
+ m4_divert_once([HELP_WITH], [ |
484 |
+ collectd additional packages:]) |
485 |
|
486 |
diff --git a/app-admin/collectd/files/collectd.initd b/app-admin/collectd/files/collectd.initd |
487 |
index 8417941..6633348 100644 |
488 |
--- a/app-admin/collectd/files/collectd.initd |
489 |
+++ b/app-admin/collectd/files/collectd.initd |
490 |
@@ -1,7 +1,7 @@ |
491 |
#!/sbin/runscript |
492 |
-# Copyright 1999-2010 Gentoo Foundation |
493 |
+# Copyright 1999-2011 Gentoo Foundation |
494 |
# Distributed under the terms of the GNU General Public License v2 |
495 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/collectd/files/collectd.initd,v 1.2 2010/10/10 19:13:04 dilfridge Exp $ |
496 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/collectd/files/collectd.initd,v 1.3 2010/12/16 17:33:45 dilfridge Exp $ |
497 |
|
498 |
: ${COLLECTD_PIDFILE:='/var/run/collectd.pid'} |
499 |
: ${COLLECTD_CFGFILE:='/etc/collectd.conf'} |