1 |
commit: 7eb7107cf02c65a8bb2947c9379002e067b957af |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 06:53:34 2016 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 06:54:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7eb7107c |
7 |
|
8 |
app-admin/collectd: version bump to 5.5 |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
app-admin/collectd/Manifest | 1 + |
13 |
app-admin/collectd/collectd-5.5.0.ebuild | 399 +++++++++++++++++++++++++++++++ |
14 |
app-admin/collectd/metadata.xml | 112 +++++---- |
15 |
3 files changed, 464 insertions(+), 48 deletions(-) |
16 |
|
17 |
diff --git a/app-admin/collectd/Manifest b/app-admin/collectd/Manifest |
18 |
index 3bb23b2..81e7cd7 100644 |
19 |
--- a/app-admin/collectd/Manifest |
20 |
+++ b/app-admin/collectd/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST collectd-5.4.1.tar.bz2 1521907 SHA256 75452129f271cb0aad28e57f12a49070618bbb7b6a9d64cf869e8766fa2f66e0 SHA512 96289f52d3d1da55c862ae9ee2f57972682d7eab87387e97efa41fb5197599e097abd71aed2fe014e26af37c9ae98471e06dd181c725849976242642ce5c9492 WHIRLPOOL 2ed85b9d6d00c4e7dc6af236b637e282f17c6c0b20c1ba3da9c12ea85c5fdea1add2e29165874c7e9620852e422282d489436a4e245b161902f8926185edec16 |
23 |
+DIST collectd-5.5.0.tar.bz2 1824495 SHA256 847684cf5c10de1dc34145078af3fcf6e0d168ba98c14f1343b1062a4b569e88 SHA512 d2c2840f681c10345e02ad8df0f7c581dcb45bee276589fcd96b3dadd281a79ebb3b9a34a186242ef41285dde7fc505432376138ff4f72c4f60f1b840e640017 WHIRLPOOL 6223ca363984ab3777ca89e2cd5011f059b6ca7f5c66c5e7325d3155ce38ef2829caced3ad27e4d5016c5fdba59bb21b9b47d840ea0c4d164c3674b6ee5062ac |
24 |
|
25 |
diff --git a/app-admin/collectd/collectd-5.5.0.ebuild b/app-admin/collectd/collectd-5.5.0.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..012278f |
28 |
--- /dev/null |
29 |
+++ b/app-admin/collectd/collectd-5.5.0.ebuild |
30 |
@@ -0,0 +1,399 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI="5" |
36 |
+ |
37 |
+GENTOO_DEPEND_ON_PERL="no" |
38 |
+JAVA_PKG_OPT_USE="collectd_plugins_java" |
39 |
+# XXX: 5.4.1-r0 stated 2* but it builds fine against 3.4 |
40 |
+PYTHON_COMPAT=( python2_7 ) |
41 |
+ |
42 |
+inherit autotools eutils fcaps java-pkg-opt-2 linux-info multilib perl-app python-single-r1 systemd user |
43 |
+ |
44 |
+DESCRIPTION="Collects system statistics and provides mechanisms to store the values" |
45 |
+ |
46 |
+HOMEPAGE="http://collectd.org" |
47 |
+SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin perl selinux static-libs" |
53 |
+ |
54 |
+# The plugin lists have to follow here since they extend IUSE |
55 |
+ |
56 |
+# Plugins that to my knowledge cannot be supported (eg. dependencies not in gentoo) |
57 |
+COLLECTD_IMPOSSIBLE_PLUGINS="aquaero mic netapp pinba sigrok write_kafka xmms" |
58 |
+ |
59 |
+# Plugins that still need some work |
60 |
+COLLECTD_UNTESTED_PLUGINS="amqp apple_sensors genericjmx ipvs lpar modbus tape" |
61 |
+ |
62 |
+# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS |
63 |
+COLLECTD_TESTED_PLUGINS="aggregation apache apcups ascent battery bind ceph |
64 |
+ cgroups conntrack contextswitch cpu cpufreq csv curl curl_json curl_xml dbi df |
65 |
+ disk dns drbd email entropy ethstat exec fhcount filecount fscache gmond |
66 |
+ hddtemp interface ipc ipmi iptables irq java load log_logstash logfile lvm |
67 |
+ madwifi match_empty_counter match_hashed match_regex match_timediff match_value |
68 |
+ mbmon md memcachec memcached memory multimeter mysql netlink network nfs nginx |
69 |
+ notify_desktop notify_email ntpd numa nut olsrd onewire openldap openvpn oracle |
70 |
+ perl ping postgresql powerdns processes protocols python redis routeros |
71 |
+ rrdcached rrdtool sensors serial smart snmp statsd swap syslog table tail |
72 |
+ target_notification target_replace target_scale target_set tcpconns teamspeak2 |
73 |
+ ted thermal threshold tokyotyrant turbostat unixsock uptime users uuid varnish |
74 |
+ virt vmem vserver wireless write_graphite write_http write_log write_mongodb |
75 |
+ write_redis write_sensu write_tsdb zfs_arc zookeeper" |
76 |
+ |
77 |
+COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS} ${COLLECTD_UNTESTED_PLUGINS}" |
78 |
+ |
79 |
+COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS} |
80 |
+ |
81 |
+for plugin in ${COLLECTD_ALL_PLUGINS}; do |
82 |
+ IUSE="${IUSE} collectd_plugins_${plugin}" |
83 |
+done |
84 |
+unset plugin |
85 |
+ |
86 |
+# Now come the dependencies. |
87 |
+ |
88 |
+COMMON_DEPEND=" |
89 |
+ dev-libs/libgcrypt:0 |
90 |
+ sys-devel/libtool |
91 |
+ perl? ( dev-lang/perl:=[ithreads] ) |
92 |
+ collectd_plugins_apache? ( net-misc/curl ) |
93 |
+ collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 ) |
94 |
+ collectd_plugins_bind? ( dev-libs/libxml2:= ) |
95 |
+ collectd_plugins_ceph? ( dev-libs/yajl:= ) |
96 |
+ collectd_plugins_curl? ( net-misc/curl ) |
97 |
+ collectd_plugins_curl_json? ( net-misc/curl dev-libs/yajl:= ) |
98 |
+ collectd_plugins_curl_xml? ( net-misc/curl dev-libs/libxml2:= ) |
99 |
+ collectd_plugins_dbi? ( dev-db/libdbi:= ) |
100 |
+ collectd_plugins_dns? ( net-libs/libpcap:= ) |
101 |
+ collectd_plugins_gmond? ( sys-cluster/ganglia ) |
102 |
+ collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 ) |
103 |
+ collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13 ) |
104 |
+ collectd_plugins_log_logstash? ( dev-libs/yajl:= ) |
105 |
+ collectd_plugins_lvm? ( sys-fs/lvm2 ) |
106 |
+ collectd_plugins_memcachec? ( dev-libs/libmemcached:= ) |
107 |
+ collectd_plugins_mysql? ( >=virtual/mysql-5.0 ) |
108 |
+ collectd_plugins_netlink? ( net-libs/libmnl:= ) |
109 |
+ collectd_plugins_nginx? ( net-misc/curl ) |
110 |
+ collectd_plugins_notify_desktop? ( x11-libs/libnotify:= ) |
111 |
+ collectd_plugins_notify_email? ( net-libs/libesmtp dev-libs/openssl:0= ) |
112 |
+ collectd_plugins_nut? ( sys-power/nut ) |
113 |
+ collectd_plugins_onewire? ( sys-fs/owfs ) |
114 |
+ collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic ) |
115 |
+ collectd_plugins_openldap? ( net-nds/openldap ) |
116 |
+ collectd_plugins_perl? ( dev-lang/perl:=[ithreads] ) |
117 |
+ collectd_plugins_ping? ( net-libs/liboping:= ) |
118 |
+ collectd_plugins_postgresql? ( dev-db/postgresql:= ) |
119 |
+ collectd_plugins_python? ( ${PYTHON_DEPS} ) |
120 |
+ collectd_plugins_redis? ( dev-libs/hiredis:= ) |
121 |
+ collectd_plugins_routeros? ( net-libs/librouteros:= ) |
122 |
+ collectd_plugins_rrdcached? ( net-analyzer/rrdtool ) |
123 |
+ collectd_plugins_rrdtool? ( net-analyzer/rrdtool ) |
124 |
+ collectd_plugins_sensors? ( sys-apps/lm_sensors ) |
125 |
+ collectd_plugins_smart? ( dev-libs/libatasmart:= ) |
126 |
+ collectd_plugins_snmp? ( net-analyzer/net-snmp ) |
127 |
+ collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant ) |
128 |
+ collectd_plugins_varnish? ( www-servers/varnish ) |
129 |
+ collectd_plugins_virt? ( app-emulation/libvirt dev-libs/libxml2 ) |
130 |
+ collectd_plugins_write_http? ( net-misc/curl ) |
131 |
+ collectd_plugins_write_mongodb? ( dev-libs/mongo-c-driver:= ) |
132 |
+ collectd_plugins_write_redis? ( dev-libs/hiredis:= ) |
133 |
+ |
134 |
+ kernel_FreeBSD? ( |
135 |
+ collectd_plugins_disk? ( sys-libs/libstatgrab:= ) |
136 |
+ collectd_plugins_interface? ( sys-libs/libstatgrab:= ) |
137 |
+ collectd_plugins_load? ( sys-libs/libstatgrab:= ) |
138 |
+ collectd_plugins_memory? ( sys-libs/libstatgrab:= ) |
139 |
+ collectd_plugins_swap? ( sys-libs/libstatgrab:= ) |
140 |
+ collectd_plugins_users? ( sys-libs/libstatgrab:= ) |
141 |
+ )" |
142 |
+ |
143 |
+DEPEND="${COMMON_DEPEND} |
144 |
+ virtual/pkgconfig |
145 |
+ collectd_plugins_java? ( >=virtual/jdk-1.6 ) |
146 |
+ kernel_linux? ( |
147 |
+ collectd_plugins_vserver? ( sys-kernel/vserver-sources ) |
148 |
+ )" |
149 |
+ |
150 |
+RDEPEND="${COMMON_DEPEND} |
151 |
+ collectd_plugins_java? ( >=virtual/jre-1.6 ) |
152 |
+ collectd_plugins_syslog? ( virtual/logger ) |
153 |
+ selinux? ( sec-policy/selinux-collectd )" |
154 |
+ |
155 |
+REQUIRED_USE=" |
156 |
+ collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} )" |
157 |
+ |
158 |
+PATCHES=( |
159 |
+ "${FILESDIR}/${PN}-5.4.1"-{libocci,lt}.patch |
160 |
+ "${FILESDIR}/${PN}-4.10.3"-werror.patch |
161 |
+) |
162 |
+ |
163 |
+# @FUNCTION: collectd_plugin_kernel_linux |
164 |
+# @DESCRIPTION: |
165 |
+# USAGE: <plug-in name> <kernel_options> <severity> |
166 |
+# kernel_options is a list of kernel configurations options; the check tests whether at least |
167 |
+# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message |
168 |
+# is emitted. |
169 |
+collectd_plugin_kernel_linux() { |
170 |
+ local multi_opt opt |
171 |
+ if has ${1} ${COLLECTD_ALL_PLUGINS}; then |
172 |
+ if use collectd_plugins_${1}; then |
173 |
+ for opt in ${2}; do |
174 |
+ if linux_chkconfig_present ${opt}; then return 0; fi |
175 |
+ done |
176 |
+ multi_opt=${2//\ /\ or\ } |
177 |
+ case ${3} in |
178 |
+ (info) |
179 |
+ elog "The ${1} plug-in can use kernel features that are disabled now; enable ${multi_opt} in your kernel" |
180 |
+ ;; |
181 |
+ (warn) |
182 |
+ ewarn "The ${1} plug-in uses kernel features that are disabled now; enable ${multi_opt} in your kernel" |
183 |
+ ;; |
184 |
+ (error) |
185 |
+ eerror "The ${1} plug-in needs kernel features that are disabled now; enable ${multi_opt} in your kernel" |
186 |
+ ;; |
187 |
+ (*) |
188 |
+ die "function collectd_plugin_kernel_linux called with invalid third argument" |
189 |
+ ;; |
190 |
+ esac |
191 |
+ fi |
192 |
+ fi |
193 |
+} |
194 |
+ |
195 |
+collectd_linux_kernel_checks() { |
196 |
+ linux-info_pkg_setup |
197 |
+ |
198 |
+ # battery.c:/proc/pmu/battery_%i |
199 |
+ # battery.c:/proc/acpi/battery |
200 |
+ collectd_plugin_kernel_linux battery ACPI_BATTERY warn |
201 |
+ |
202 |
+ # cgroups.c:/sys/fs/cgroup/ |
203 |
+ collectd_plugin_kernel_linux cgroups CONFIG_CGROUPS warn |
204 |
+ |
205 |
+ # cpufreq.c:/sys/devices/system/cpu/cpu%d/cpufreq/ |
206 |
+ collectd_plugin_kernel_linux cpufreq SYSFS warn |
207 |
+ collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn |
208 |
+ |
209 |
+ # nfs.c:/proc/net/rpc/nfs |
210 |
+ # nfs.c:/proc/net/rpc/nfsd |
211 |
+ collectd_plugin_kernel_linux nfs NFS_COMMON warn |
212 |
+ |
213 |
+ # serial.c:/proc/tty/driver/serial |
214 |
+ # serial.c:/proc/tty/driver/ttyS |
215 |
+ collectd_plugin_kernel_linux serial SERIAL_CORE warn |
216 |
+ |
217 |
+ # swap.c:/proc/meminfo |
218 |
+ collectd_plugin_kernel_linux swap SWAP warn |
219 |
+ |
220 |
+ # thermal.c:/proc/acpi/thermal_zone |
221 |
+ # thermal.c:/sys/class/thermal |
222 |
+ collectd_plugin_kernel_linux thermal "PROC_FS SYSFS" warn |
223 |
+ collectd_plugin_kernel_linux thermal ACPI_THERMAL warn |
224 |
+ |
225 |
+ # vmem.c:/proc/vmstat |
226 |
+ collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn |
227 |
+ |
228 |
+ # uuid.c:/sys/hypervisor/uuid |
229 |
+ collectd_plugin_kernel_linux uuid SYSFS info |
230 |
+ |
231 |
+ # wireless.c:/proc/net/wireless |
232 |
+ collectd_plugin_kernel_linux wireless "MAC80211 IEEE80211" warn |
233 |
+} |
234 |
+ |
235 |
+pkg_setup() { |
236 |
+ if use kernel_linux; then |
237 |
+ if linux_config_exists; then |
238 |
+ einfo "Checking your linux kernel configuration:" |
239 |
+ collectd_linux_kernel_checks |
240 |
+ else |
241 |
+ elog "Cannot find a linux kernel configuration. Continuing anyway." |
242 |
+ fi |
243 |
+ fi |
244 |
+ |
245 |
+ java-pkg-opt-2_pkg_setup |
246 |
+ use collectd_plugins_python && python-single-r1_pkg_setup |
247 |
+ |
248 |
+ enewgroup collectd |
249 |
+ enewuser collectd -1 -1 /var/lib/collectd collectd |
250 |
+} |
251 |
+ |
252 |
+src_prepare() { |
253 |
+ default |
254 |
+ epatch_user |
255 |
+ |
256 |
+ # There's some strange prefix handling in the default config file, resulting in |
257 |
+ # paths like "/usr/var/..." |
258 |
+ sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die |
259 |
+ |
260 |
+ sed -i -e "s:/etc/collectd/collectd.conf:/etc/collectd.conf:g" contrib/collectd.service || die |
261 |
+ |
262 |
+ # fix installdirs for perl, bug 444360 |
263 |
+ sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die |
264 |
+ |
265 |
+ if use collectd_plugins_java; then |
266 |
+ # Set javac -source and -target flags according to (R)DEPEND. |
267 |
+ sed -i -e "s/\$(JAVAC)/\0 $(java-pkg_javac-args)/g" bindings/java/Makefile.am || die |
268 |
+ fi |
269 |
+ |
270 |
+ rm -r libltdl || die |
271 |
+ |
272 |
+ eautoreconf |
273 |
+} |
274 |
+ |
275 |
+src_configure() { |
276 |
+ # Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here |
277 |
+ # should work independent of the operating system. |
278 |
+ |
279 |
+ local linux_plugins="barometer battery cpu cpufreq disk drbd entropy |
280 |
+ ethstat interface iptables ipvs irq ipc load memory md netlink nfs |
281 |
+ numa processes serial swap tcpconns thermal turbostat users vmem |
282 |
+ vserver wireless zfs_arc" |
283 |
+ |
284 |
+ local libstatgrab_plugins="cpu disk interface load memory swap users" |
285 |
+ local bsd_plugins="cpu tcpconns ${libstatgrab_plugins} zfs_arc" |
286 |
+ |
287 |
+ local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns" |
288 |
+ |
289 |
+ local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}" |
290 |
+ local myos_plugins="" |
291 |
+ if use kernel_linux; then |
292 |
+ einfo "Enabling Linux plugins." |
293 |
+ myos_plugins=${linux_plugins} |
294 |
+ elif use kernel_FreeBSD; then |
295 |
+ einfo "Enabling FreeBSD plugins." |
296 |
+ myos_plugins=${bsd_plugins} |
297 |
+ elif use kernel_Darwin; then |
298 |
+ einfo "Enabling Darwin plugins." |
299 |
+ myos_plugins=${darwin_plugins} |
300 |
+ fi |
301 |
+ |
302 |
+ # Do we debug? |
303 |
+ local myconf="$(use_enable debug)" |
304 |
+ |
305 |
+ local plugin |
306 |
+ |
307 |
+ # Disable what needs to be disabled. |
308 |
+ for plugin in ${COLLECTD_DISABLED_PLUGINS}; do |
309 |
+ myconf+=" --disable-${plugin}" |
310 |
+ done |
311 |
+ |
312 |
+ # Set enable/disable for each single plugin. |
313 |
+ for plugin in ${COLLECTD_ALL_PLUGINS}; do |
314 |
+ if has ${plugin} ${osdependent_plugins}; then |
315 |
+ # plugin is os-dependent ... |
316 |
+ if has ${plugin} ${myos_plugins}; then |
317 |
+ # ... and available in this os |
318 |
+ myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" |
319 |
+ else |
320 |
+ # ... and NOT available in this os |
321 |
+ if use collectd_plugins_${plugin}; then |
322 |
+ ewarn "You try to enable the ${plugin} plugin, but it is not available for this" |
323 |
+ ewarn "kernel. Disabling it automatically." |
324 |
+ fi |
325 |
+ myconf+=" --disable-${plugin}" |
326 |
+ fi |
327 |
+ elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then |
328 |
+ if use collectd_plugins_perl && ! use perl; then |
329 |
+ ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag" |
330 |
+ myconf+= --disable-perl |
331 |
+ else |
332 |
+ myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" |
333 |
+ fi |
334 |
+ else |
335 |
+ myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" |
336 |
+ fi |
337 |
+ done |
338 |
+ |
339 |
+ # JAVA_HOME is set by eclasses. |
340 |
+ if use collectd_plugins_java; then |
341 |
+ myconf+=" --with-java" |
342 |
+ fi |
343 |
+ |
344 |
+ # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens. |
345 |
+ # lots of libs are only needed for plugins, if they are disabled, also disable the lib |
346 |
+ use collectd_plugins_iptables || myconf+=" --with-libiptc=no" |
347 |
+ use collectd_plugins_openldap || myconf+=" --with-libldap=no" |
348 |
+ use collectd_plugins_redis || use collectd_plugins_write_redis || myconf+=" --with-libhiredis=no" |
349 |
+ use collectd_plugins_smart || myconf+=" --with-libatasmart=no" |
350 |
+ use collectd_plugins_virt || myconf+=" --with-libvirt=no" |
351 |
+ |
352 |
+ if use perl; then |
353 |
+ myconf+=" --with-perl-bindings=INSTALLDIRS=vendor" |
354 |
+ else |
355 |
+ myconf+=" --without-perl-bindings" |
356 |
+ fi |
357 |
+ |
358 |
+ # No need for v5upgrade |
359 |
+ myconf+=" --disable-target_v5upgrade" |
360 |
+ |
361 |
+ # Finally, run econf. |
362 |
+ KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl $(use_enable static-libs static) --localstatedir=/var ${myconf} |
363 |
+} |
364 |
+ |
365 |
+src_install() { |
366 |
+ emake DESTDIR="${D}" install |
367 |
+ |
368 |
+ perl_delete_localpod |
369 |
+ |
370 |
+ find "${D}/usr/" -name "*.la" -exec rm -f {} + || die |
371 |
+ |
372 |
+ use collectd_plugins_java && java-pkg_regjar "${ED}"/usr/share/${PN}/java/*.jar |
373 |
+ |
374 |
+ fowners root:collectd /etc/collectd.conf |
375 |
+ fperms u=rw,g=r,o= /etc/collectd.conf |
376 |
+ |
377 |
+ dodoc AUTHORS ChangeLog NEWS README TODO |
378 |
+ |
379 |
+ if use contrib ; then |
380 |
+ insinto /usr/share/doc/${PF} |
381 |
+ doins -r contrib |
382 |
+ fi |
383 |
+ |
384 |
+ keepdir /var/lib/${PN} |
385 |
+ fowners collectd:collectd /var/lib/${PN} |
386 |
+ |
387 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
388 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
389 |
+ systemd_dounit "contrib/${PN}.service" |
390 |
+ |
391 |
+ insinto /etc/logrotate.d |
392 |
+ newins "${FILESDIR}/logrotate" collectd |
393 |
+ |
394 |
+ sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/var/run/collectd/collectd.pid":' "${D}"/etc/collectd.conf || die |
395 |
+ sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/var/run/collectd/collectd-unixsock":' "${D}"/etc/collectd.conf || die |
396 |
+ 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 |
397 |
+ 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 |
398 |
+} |
399 |
+ |
400 |
+collectd_rdeps() { |
401 |
+ if (use collectd_plugins_${1} && ! has_version "${2}"); then |
402 |
+ elog "The ${1} plug-in needs ${2} to be installed locally or remotely to work." |
403 |
+ fi |
404 |
+} |
405 |
+ |
406 |
+pkg_postinst() { |
407 |
+ use collectd_plugins_ping && fcaps cap_net_raw usr/sbin/collectd |
408 |
+ |
409 |
+ collectd_rdeps apcups sys-power/apcupsd |
410 |
+ collectd_rdeps hddtemp app-admin/hddtemp |
411 |
+ collectd_rdeps mbmon sys-apps/xmbmon |
412 |
+ collectd_rdeps memcached ">=net-misc/memcached-1.2.2-r2" |
413 |
+ collectd_rdeps ntpd net-misc/ntp |
414 |
+ collectd_rdeps openvpn ">=net-misc/openvpn-2.0.9" |
415 |
+ collectd_rdeps write_mongodb "dev-db/mongodb" |
416 |
+ |
417 |
+ echo |
418 |
+ elog "collectd is now started as unprivileged user by default." |
419 |
+ elog "You may want to revisit the configuration." |
420 |
+ elog |
421 |
+ |
422 |
+ if use collectd_plugins_email; then |
423 |
+ ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin." |
424 |
+ fi |
425 |
+ if use contrib; then |
426 |
+ elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser," |
427 |
+ elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed." |
428 |
+ fi |
429 |
+} |
430 |
|
431 |
diff --git a/app-admin/collectd/metadata.xml b/app-admin/collectd/metadata.xml |
432 |
index 536b2ec..1f920dd 100644 |
433 |
--- a/app-admin/collectd/metadata.xml |
434 |
+++ b/app-admin/collectd/metadata.xml |
435 |
@@ -15,6 +15,7 @@ |
436 |
<flag name='collectd_plugins_ascent'>Build the ascent input plugin (statistics about a free server for World of Warcraft)</flag> |
437 |
<flag name='collectd_plugins_battery'>Build the battery input plugin (charge, current and voltage of ACPI and PMU based laptop batteries)</flag> |
438 |
<flag name='collectd_plugins_bind'>Build the bind input plugin (name server and resolver statistics)</flag> |
439 |
+ <flag name='collectd_plugins_ceph'>Build the plugin for <pkg>sys-cluster/ceph</pkg></flag> |
440 |
<flag name='collectd_plugins_cgroups'>Build the cgroups CPU accounting collection plugin</flag> |
441 |
<flag name='collectd_plugins_conntrack'>Build the conntrack input plugin (number of nf_conntrack entries)</flag> |
442 |
<flag name='collectd_plugins_contextswitch'>Build the contextswitch input plugin (number of context switches done by the operating system)</flag> |
443 |
@@ -28,88 +29,103 @@ |
444 |
<flag name='collectd_plugins_df'>Build the df input plugin (mountpoint usage)</flag> |
445 |
<flag name='collectd_plugins_disk'>Build the disk input plugin (sectors read/written, number of read/write actions, average completion time of IO-operations)</flag> |
446 |
<flag name='collectd_plugins_dns'>Build the dns input plugin (collects statistics of your DNS traffic on port udp/53)</flag> |
447 |
+ <flag name='collectd_plugins_drbd'>Build the plugin for DRBD statistics</flag> |
448 |
<flag name='collectd_plugins_email'>Build the email input plugin (opens a UNIX domain socket and starts accepting connections on that socket)</flag> |
449 |
<flag name='collectd_plugins_entropy'>Build the entropy input plugin (available entropy on a system)</flag> |
450 |
<flag name='collectd_plugins_ethstat'>Build the ethstat input plugin (performance statistics of Linux ethernet cards)</flag> |
451 |
<flag name='collectd_plugins_exec'>Build the exec input/output plugin (executes scripts / applications and reads values back)</flag> |
452 |
+ <flag name='collectd_plugins_fhcount'>Build the plugin for File handles statistics</flag> |
453 |
<flag name='collectd_plugins_filecount'>Build the filecount input plugin (countd the number of files in a directory and all its subdirectories)</flag> |
454 |
<flag name='collectd_plugins_fscache'>Build the fscache input plugin (information about the caching infrastructure for network file-systems etc)</flag> |
455 |
<flag name='collectd_plugins_gmond'>Build the gmond input plugin (receive data from gmond, the client daemon of the Ganglia project)</flag> |
456 |
<flag name='collectd_plugins_hddtemp'>Build the hddtemp input plugin (temperature of hard disks)</flag> |
457 |
<flag name='collectd_plugins_interface'>Build the interface input plugin (information about traffic, packets and errors of interfaces)</flag> |
458 |
- <flag name='collectd_plugins_ipmi'>Build the ipmi input plugin (read hardware sensors from servers using the Intelligent Platform Management Interface (IPMI))</flag> |
459 |
- <flag name='collectd_plugins_iptables'>Build the iptables input plugin (statistics from a ip_tables based packet filter)</flag> |
460 |
- <flag name='collectd_plugins_irq'>Build the irq input plugin (number of times each interrupt has been handled by the os)</flag> |
461 |
- <flag name='collectd_plugins_java'>Build the java input plugin (embeds a JVM into collectd for writing plugins)</flag> |
462 |
- <flag name='collectd_plugins_libvirt'>Build the libvirt input plugin (statistics about virtualized guests on a system)</flag> |
463 |
- <flag name='collectd_plugins_load'>Build the load input plugin (system load)</flag> |
464 |
+ <flag name='collectd_plugins_ipc'>Build the plugin for IPC statistics</flag> |
465 |
+ <flag name='collectd_plugins_ipmi'>Build the ipmi input plugin (read hardware sensors from servers using the Intelligent Platform Management Interface (IPMI))</flag> |
466 |
+ <flag name='collectd_plugins_iptables'>Build the iptables input plugin (statistics from a ip_tables based packet filter)</flag> |
467 |
+ <flag name='collectd_plugins_irq'>Build the irq input plugin (number of times each interrupt has been handled by the os)</flag> |
468 |
+ <flag name='collectd_plugins_java'>Build the java input plugin (embeds a JVM into collectd for writing plugins)</flag> |
469 |
+ <flag name='collectd_plugins_libvirt'>Build the libvirt input plugin (statistics about virtualized guests on a system)</flag> |
470 |
+ <flag name='collectd_plugins_load'>Build the load input plugin (system load)</flag> |
471 |
+ <flag name='collectd_plugins_log_logstash'>Build the plugin for Logstash json_event compatible logging</flag> |
472 |
<flag name='collectd_plugins_logfile'>Build the logfile output plugin (writes log messages to a text file)</flag> |
473 |
<flag name='collectd_plugins_lvm'>Build the LVM input plugin</flag> |
474 |
- <flag name='collectd_plugins_madwifi'>Build the madwifi input plugin (information about Atheros wireless LAN chipsets)</flag> |
475 |
+ <flag name='collectd_plugins_madwifi'>Build the madwifi input plugin (information about Atheros wireless LAN chipsets)</flag> |
476 |
<flag name='collectd_plugins_match_empty_counter'>Build the match_empty_counter filter plugin</flag> |
477 |
<flag name='collectd_plugins_match_hashed'>Build the match_hashed filter plugin</flag> |
478 |
<flag name='collectd_plugins_match_regex'>Build the match_regex filter plugin</flag> |
479 |
<flag name='collectd_plugins_match_timediff'>Build the match_timediff filter plugin</flag> |
480 |
<flag name='collectd_plugins_match_value'>Build the match_value filter plugin</flag> |
481 |
- <flag name='collectd_plugins_mbmon'>Build the mbmon input plugin (information from mainboard sensors)</flag> |
482 |
- <flag name='collectd_plugins_md'>Build the md input plugin (disk states in Linux md devices)</flag> |
483 |
+ <flag name='collectd_plugins_mbmon'>Build the mbmon input plugin (information from mainboard sensors)</flag> |
484 |
+ <flag name='collectd_plugins_md'>Build the md input plugin (disk states in Linux md devices)</flag> |
485 |
<flag name='collectd_plugins_memcachec'>Build the memcachec input plugin (connects to a memcached server)</flag> |
486 |
- <flag name='collectd_plugins_memcached'>Build the memcached input plugin (connects to a memcached daemon)</flag> |
487 |
- <flag name='collectd_plugins_memory'>Build the memory input plugin (physical memory utilization)</flag> |
488 |
- <flag name='collectd_plugins_multimeter'>Build the multimeter input plugin (reads a voltage or current from a multimeter connected to a serial bus)</flag> |
489 |
- <flag name='collectd_plugins_mysql'>Build the mysql input plugin (connects to an MySQL-database and issues a SHOW STATUS command)</flag> |
490 |
- <flag name='collectd_plugins_netlink'>Build the netlink input plugin (opens a netlink socket to the Linux kernel for getting statistics)</flag> |
491 |
- <flag name='collectd_plugins_network'>Build the network input/output plugin (communicates with other instances of collectd)</flag> |
492 |
- <flag name='collectd_plugins_nfs'>Build the nfs input plugin (usage of the Network File System)</flag> |
493 |
- <flag name='collectd_plugins_nginx'>Build the nginx input plugin (number of requests handled by the nginx daemon)</flag> |
494 |
+ <flag name='collectd_plugins_memcached'>Build the memcached input plugin (connects to a memcached daemon)</flag> |
495 |
+ <flag name='collectd_plugins_memory'>Build the memory input plugin (physical memory utilization)</flag> |
496 |
+ <flag name='collectd_plugins_multimeter'>Build the multimeter input plugin (reads a voltage or current from a multimeter connected to a serial bus)</flag> |
497 |
+ <flag name='collectd_plugins_mysql'>Build the mysql input plugin (connects to an MySQL-database and issues a SHOW STATUS command)</flag> |
498 |
+ <flag name='collectd_plugins_netlink'>Build the netlink input plugin (opens a netlink socket to the Linux kernel for getting statistics)</flag> |
499 |
+ <flag name='collectd_plugins_network'>Build the network input/output plugin (communicates with other instances of collectd)</flag> |
500 |
+ <flag name='collectd_plugins_nfs'>Build the nfs input plugin (usage of the Network File System)</flag> |
501 |
+ <flag name='collectd_plugins_nginx'>Build the nginx input plugin (number of requests handled by the nginx daemon)</flag> |
502 |
<flag name='collectd_plugins_notify_desktop'>Build the notify_desktop output plugin (uses libnotify to display notifications to the user)</flag> |
503 |
<flag name='collectd_plugins_notify_email'>Build the notify_email output plugin (uses libESMTP to send notifications to a configured email address)</flag> |
504 |
- <flag name='collectd_plugins_ntpd'>Build the ntpd input plugin (queries an NTP server)</flag> |
505 |
- <flag name='collectd_plugins_numa'>Build the numa input plugin (statistics of the Linux Non-Uniform Memory Access (NUMA) subsystem)</flag> |
506 |
- <flag name='collectd_plugins_nut'>Build the nut input plugin (collects UPS statistics using the Network UPS Tools)</flag> |
507 |
- <flag name='collectd_plugins_oracle'>Build the oracle input plugin (SQL-queries one or more Oracle database systems)</flag> |
508 |
+ <flag name='collectd_plugins_ntpd'>Build the ntpd input plugin (queries an NTP server)</flag> |
509 |
+ <flag name='collectd_plugins_numa'>Build the numa input plugin (statistics of the Linux Non-Uniform Memory Access (NUMA) subsystem)</flag> |
510 |
+ <flag name='collectd_plugins_nut'>Build the nut input plugin (collects UPS statistics using the Network UPS Tools)</flag> |
511 |
<flag name='collectd_plugins_olsrd'>Build the olsrd input plugin (reads information about the Optimized Link State Routing daemon)</flag> |
512 |
- <flag name='collectd_plugins_onewire'>Build the onewire input plugin (collects temperature information from sensors)</flag> |
513 |
- <flag name='collectd_plugins_openvpn'>Build the openvpn input plugin (reads the status file printed by OpenVPN)</flag> |
514 |
- <flag name='collectd_plugins_perl'>Build the perl language binding plugin (embeds a Perl interpreter into collectd for writing plugins)</flag> |
515 |
- <flag name='collectd_plugins_ping'>Build the ping input plugin (measures network latency)</flag> |
516 |
- <flag name='collectd_plugins_postgresql'>Build the postgresql input plugin (connects to and executes SQL statements on a PostgreSQL database)</flag> |
517 |
- <flag name='collectd_plugins_powerdns'>Build the powerdns input plugin (connects to a local PowerDNS instance)</flag> |
518 |
- <flag name='collectd_plugins_processes'>Build the processes input plugin (statistics about processes)</flag> |
519 |
- <flag name='collectd_plugins_protocols'>Build the protocols input plugin (network protocols)</flag> |
520 |
- <flag name='collectd_plugins_python'>Build the python language binding plugin (embeds a Python interpreter into collectd for writing plugins)</flag> |
521 |
- <flag name='collectd_plugins_rrdcached'>Build the rrdcached input/output plugin (connects to rrdcached and submits updates for RRD files)</flag> |
522 |
- <flag name='collectd_plugins_rrdtool'>Build the rrdtool output plugin (writes values to RRD-files)</flag> |
523 |
+ <flag name='collectd_plugins_onewire'>Build the onewire input plugin (collects temperature information from sensors)</flag> |
524 |
+ <flag name='collectd_plugins_openldap'>Build the plugin for OpenLDAP statistics</flag> |
525 |
+ <flag name='collectd_plugins_openvpn'>Build the openvpn input plugin (reads the status file printed by OpenVPN)</flag> |
526 |
+ <flag name='collectd_plugins_oracle'>Build the oracle input plugin (SQL-queries one or more Oracle database systems)</flag> |
527 |
+ <flag name='collectd_plugins_perl'>Build the perl language binding plugin (embeds a Perl interpreter into collectd for writing plugins)</flag> |
528 |
+ <flag name='collectd_plugins_ping'>Build the ping input plugin (measures network latency)</flag> |
529 |
+ <flag name='collectd_plugins_postgresql'>Build the postgresql input plugin (connects to and executes SQL statements on a PostgreSQL database)</flag> |
530 |
+ <flag name='collectd_plugins_powerdns'>Build the powerdns input plugin (connects to a local PowerDNS instance)</flag> |
531 |
+ <flag name='collectd_plugins_processes'>Build the processes input plugin (statistics about processes)</flag> |
532 |
+ <flag name='collectd_plugins_protocols'>Build the protocols input plugin (network protocols)</flag> |
533 |
+ <flag name='collectd_plugins_python'>Build the python language binding plugin (embeds a Python interpreter into collectd for writing plugins)</flag> |
534 |
+ <flag name='collectd_plugins_redis'>Build the Redis input plugin</flag> |
535 |
<flag name='collectd_plugins_routeros'>Build the routeros input plugin (collect information on devices running RouterOS)</flag> |
536 |
- <flag name='collectd_plugins_sensors'>Build the sensors input plugin (uses lm-sensors to read hardware sensors)</flag> |
537 |
- <flag name='collectd_plugins_serial'>Build the serial input plugin (collects the traffic on serial interfaces)</flag> |
538 |
- <flag name='collectd_plugins_snmp'>Build the snmp input plugin (read values from network devices using SNMP)</flag> |
539 |
+ <flag name='collectd_plugins_rrdcached'>Build the rrdcached input/output plugin (connects to rrdcached and submits updates for RRD files)</flag> |
540 |
+ <flag name='collectd_plugins_rrdtool'>Build the rrdtool output plugin (writes values to RRD-files)</flag> |
541 |
+ <flag name='collectd_plugins_sensors'>Build the sensors input plugin (uses lm-sensors to read hardware sensors)</flag> |
542 |
+ <flag name='collectd_plugins_serial'>Build the serial input plugin (collects the traffic on serial interfaces)</flag> |
543 |
+ <flag name='collectd_plugins_smart'>Build the plugin for SMART statistics</flag> |
544 |
+ <flag name='collectd_plugins_snmp'>Build the snmp input plugin (read values from network devices using SNMP)</flag> |
545 |
<flag name='collectd_plugins_statsd'>Build the statsd input plugin (accepts statsd-type metrics from a UDP socket)</flag> |
546 |
- <flag name='collectd_plugins_swap'>Build the swap input plugin (amount of memory currently written to swap)</flag> |
547 |
+ <flag name='collectd_plugins_swap'>Build the swap input plugin (amount of memory currently written to swap)</flag> |
548 |
<flag name='collectd_plugins_syslog'>Build the syslog output plugin (receives messages from collectd and dispatches them to syslog)</flag> |
549 |
- <flag name='collectd_plugins_table'>Build the table input plugin (parses table-like structured plain text)</flag> |
550 |
- <flag name='collectd_plugins_tail'>Build the tail input plugin (follows logfiles as e.g. tail -f)</flag> |
551 |
+ <flag name='collectd_plugins_table'>Build the table input plugin (parses table-like structured plain text)</flag> |
552 |
+ <flag name='collectd_plugins_tail'>Build the tail input plugin (follows logfiles as e.g. tail -f)</flag> |
553 |
<flag name='collectd_plugins_target_notification'>Build the target_notification filter plugin</flag> |
554 |
<flag name='collectd_plugins_target_replace'>Build the target_replace filter plugin</flag> |
555 |
<flag name='collectd_plugins_target_scale'>Build the target_scale filter plugin</flag> |
556 |
<flag name='collectd_plugins_target_set'>Build the target_set filter plugin</flag> |
557 |
- <flag name='collectd_plugins_tcpconns'>Build the tcpconns input plugin (number of TCP connections to or from a specified port)</flag> |
558 |
- <flag name='collectd_plugins_teamspeak2'>Build the teamspeak2 input plugin (collects traffic statistics from a teamspeak2 instance)</flag> |
559 |
- <flag name='collectd_plugins_ted'>Build the ted input plugin (connects to The Energy Detective and reads the current power over connected power lines)</flag> |
560 |
+ <flag name='collectd_plugins_tcpconns'>Build the tcpconns input plugin (number of TCP connections to or from a specified port)</flag> |
561 |
+ <flag name='collectd_plugins_teamspeak2'>Build the teamspeak2 input plugin (collects traffic statistics from a teamspeak2 instance)</flag> |
562 |
+ <flag name='collectd_plugins_ted'>Build the ted input plugin (connects to The Energy Detective and reads the current power over connected power lines)</flag> |
563 |
<flag name='collectd_plugins_thermal'>Build the thermal input plugin (ACPI thermal zone information)</flag> |
564 |
<flag name='collectd_plugins_threshold'>Build the threshold plugin (checks values against configured thresholds and creates notifications if values are out of bounds)</flag> |
565 |
- <flag name='collectd_plugins_tokyotyrant'>Build the tokyotyrant input plugin (number of records and file size from a running Tokyo Tyrant server)</flag> |
566 |
- <flag name='collectd_plugins_uptime'>Build the uptime input plugin (system uptime)</flag> |
567 |
+ <flag name='collectd_plugins_tokyotyrant'>Build the tokyotyrant input plugin (number of records and file size from a running Tokyo Tyrant server)</flag> |
568 |
+ <flag name='collectd_plugins_turbostat'>Build the plugin for Advanced statistic on Intel cpu states</flag> |
569 |
<flag name='collectd_plugins_unixsock'>Build the unixsock output plugin (opens a UNIX domain socket and accepts connections)</flag> |
570 |
- <flag name='collectd_plugins_users'>Build the users input plugin (number of users currently logged in)</flag> |
571 |
+ <flag name='collectd_plugins_uptime'>Build the uptime input plugin (system uptime)</flag> |
572 |
+ <flag name='collectd_plugins_users'>Build the users input plugin (number of users currently logged in)</flag> |
573 |
<flag name='collectd_plugins_uuid'>Build the uuid plugin (tries hard to determine the UUID of the system it is running on)</flag> |
574 |
- <flag name='collectd_plugins_varnish'>Build the varnish input plugin</flag> |
575 |
- <flag name='collectd_plugins_vmem'>Build the vmem input plugin (information about the virtual memory subsystem)</flag> |
576 |
- <flag name='collectd_plugins_vserver'>Build the vserver input plugin (virtual servers running on a system)</flag> |
577 |
- <flag name='collectd_plugins_wireless'>Build the wireless input plugin (signal quality, signal power and signal-to-noise ratio for wireless LAN cards)</flag> |
578 |
+ <flag name='collectd_plugins_varnish'>Build the varnish input plugin</flag> |
579 |
+ <flag name='collectd_plugins_virt'>Build the libvirt input plugin (statistics about virtualized guests on a system)</flag> |
580 |
+ <flag name='collectd_plugins_vmem'>Build the vmem input plugin (information about the virtual memory subsystem)</flag> |
581 |
+ <flag name='collectd_plugins_vserver'>Build the vserver input plugin (virtual servers running on a system)</flag> |
582 |
+ <flag name='collectd_plugins_wireless'>Build the wireless input plugin (signal quality, signal power and signal-to-noise ratio for wireless LAN cards)</flag> |
583 |
<flag name='collectd_plugins_write_graphite'>Build the write_graphite output plugin (sends the values collected by collectd to Carbon, the storage layer of the Graphite time-series database)</flag> |
584 |
<flag name='collectd_plugins_write_http'>Build the write_http output plugin (sends the values collected by collectd to a web-server)</flag> |
585 |
+ <flag name='collectd_plugins_write_log'>Build the Log output plugin</flag> |
586 |
<flag name='collectd_plugins_write_mongodb'>Build the write_mongodb output plugin (sends the values collected by collectd to a MongoDB)</flag> |
587 |
+ <flag name='collectd_plugins_write_redis'>Build the Redis output plugin</flag> |
588 |
+ <flag name='collectd_plugins_write_sensu'>Build the Sensu output plugin</flag> |
589 |
+ <flag name='collectd_plugins_write_tsdb'>Build the TSDB output plugin</flag> |
590 |
+ <flag name='collectd_plugins_zfs_arc'>Build the plugin for ZFS ARC statistics</flag> |
591 |
+ <flag name='collectd_plugins_zookeeper'>Build the plugin for Zookeeper statistics</flag> |
592 |
<flag name='contrib'>Install user-contributed files in the doc directory</flag> |
593 |
</use> |
594 |
</pkgmetadata> |