Lines 2-11
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= collectd |
4 |
PORTNAME= collectd |
5 |
PORTVERSION= 5.4.2 |
5 |
PORTVERSION= 5.5.0 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= net-mgmt |
6 |
CATEGORIES= net-mgmt |
8 |
MASTER_SITES= http://collectd.org/files/ |
7 |
MASTER_SITES= https://collectd.org/files/ \ |
|
|
8 |
http://collectd.org/files/ |
9 |
PKGNAMESUFFIX= 5 |
9 |
PKGNAMESUFFIX= 5 |
10 |
|
10 |
|
11 |
MAINTAINER= ports@bsdserwis.com |
11 |
MAINTAINER= ports@bsdserwis.com |
Lines 21-33
Link Here
|
21 |
USES= autoreconf gmake libtool pkgconfig shebangfix tar:bzip2 |
21 |
USES= autoreconf gmake libtool pkgconfig shebangfix tar:bzip2 |
22 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
23 |
|
23 |
|
24 |
OPTIONS_DEFINE= CGI DEBUG GCRYPT VIRT |
24 |
OPTIONS_DEFINE= CGI DEBUG GCRYPT LOGSTASH VIRT |
25 |
OPTIONS_GROUP= INPUT OUTPUT |
25 |
OPTIONS_GROUP= INPUT OUTPUT |
26 |
OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP RIEMANN |
26 |
OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP RIEMANN |
27 |
OPTIONS_GROUP_INPUT= CURL DBI JSON MEMCACHEC MODBUS MONGODB MYSQL \ |
27 |
OPTIONS_GROUP_INPUT= CURL DBI IPMI JSON MEMCACHEC MODBUS MONGODB MYSQL \ |
28 |
NUTUPS PERL PGSQL PING PYTHON RABBITMQ REDIS \ |
28 |
NUTUPS OLSRD ONEWIRE OPENLDAP PERL PGSQL PINBA PING \ |
29 |
ROUTEROS SIGROK SNMP STATGRAB TOKYOTYRANT VARNISH \ |
29 |
PYTHON RABBITMQ REDIS ROUTEROS SIGROK SNMP STATGRAB \ |
30 |
XML XMMS |
30 |
STATSD TOKYOTYRANT VARNISH XML XMMS ZOOKEEPER |
31 |
|
31 |
|
32 |
CGI_DESC= Install collection.cgi (requires rrdtool) |
32 |
CGI_DESC= Install collection.cgi (requires rrdtool) |
33 |
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) |
33 |
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) |
Lines 34-40
Link Here
|
34 |
DEBUG_DESC= Enable debugging |
34 |
DEBUG_DESC= Enable debugging |
35 |
DBI_DESC= Enable dbi plugin |
35 |
DBI_DESC= Enable dbi plugin |
36 |
GCRYPT_DESC= Build with libgcrypt |
36 |
GCRYPT_DESC= Build with libgcrypt |
|
|
37 |
IPMI_DESC= Enable OpenIPMI plugin |
37 |
JSON_DESC= Enable JSON plugins |
38 |
JSON_DESC= Enable JSON plugins |
|
|
39 |
LOGSTASH_DESC= Enable log_logstash plugin (requires json) |
38 |
MEMCACHEC_DESC= Enable memcachec plugin |
40 |
MEMCACHEC_DESC= Enable memcachec plugin |
39 |
MODBUS_DESC= Enable modbus plugin |
41 |
MODBUS_DESC= Enable modbus plugin |
40 |
MONGODB_DESC= Enable MongoDB-based plugins |
42 |
MONGODB_DESC= Enable MongoDB-based plugins |
Lines 42-49
Link Here
|
42 |
NOTIFYEMAIL_DESC= Enable notifications via email |
44 |
NOTIFYEMAIL_DESC= Enable notifications via email |
43 |
NOTIFYDESKTOP_DESC= Enable desktop notifications |
45 |
NOTIFYDESKTOP_DESC= Enable desktop notifications |
44 |
NUTUPS_DESC= Enable nut (ups) plugin |
46 |
NUTUPS_DESC= Enable nut (ups) plugin |
|
|
47 |
OLSRD_DESC= Enable olsrd plugin |
48 |
ONEWIRE_DESC= Eanble onewire plugin (via owfs) |
49 |
OPENLDAP_DESC= Enable OpenLDAP plugin |
45 |
PERL_DESC= Enable libperl plugin and binding |
50 |
PERL_DESC= Enable libperl plugin and binding |
46 |
PGSQL_DESC= Enable postgresql-based plugins |
51 |
PGSQL_DESC= Enable postgresql-based plugins |
|
|
52 |
PINBA_DESC= Enable pinba plugin (via protobuf-c) |
47 |
PING_DESC= Enable ping plugin |
53 |
PING_DESC= Enable ping plugin |
48 |
PYTHON_DESC= Enable python-based plugins |
54 |
PYTHON_DESC= Enable python-based plugins |
49 |
RABBITMQ_DESC= Enable rabbitmq-based plugins |
55 |
RABBITMQ_DESC= Enable rabbitmq-based plugins |
Lines 54-64
Link Here
|
54 |
SIGROK_DESC= Enable sigrok plugin |
60 |
SIGROK_DESC= Enable sigrok plugin |
55 |
SNMP_DESC= Enable SNMP plugin |
61 |
SNMP_DESC= Enable SNMP plugin |
56 |
STATGRAB_DESC= Enable statgrab-based plugins (disk, interface, etc) |
62 |
STATGRAB_DESC= Enable statgrab-based plugins (disk, interface, etc) |
|
|
63 |
STATSD_DESC= Enable statsd plugin |
57 |
TOKYOTYRANT_DESC= Enable tokyotyrant plugin |
64 |
TOKYOTYRANT_DESC= Enable tokyotyrant plugin |
58 |
VARNISH_DESC= Enable varnish 3.x cache statistics |
65 |
VARNISH_DESC= Enable varnish 4.x cache statistics |
59 |
VIRT_DESC= Enable libvirt plugin (requires XML) |
66 |
VIRT_DESC= Enable libvirt plugin (requires XML) |
60 |
XML_DESC= Enable XML plugins |
67 |
XML_DESC= Enable XML plugins |
61 |
XMMS_DESC= Enable xmms plugin |
68 |
XMMS_DESC= Enable xmms plugin |
|
|
69 |
ZOOKEEPER_DESC= Enable zookeeper plugin |
62 |
|
70 |
|
63 |
USE_RC_SUBR= collectd collectdmon |
71 |
USE_RC_SUBR= collectd collectdmon |
64 |
|
72 |
|
Lines 81-97
Link Here
|
81 |
--without-libganglia \ |
89 |
--without-libganglia \ |
82 |
--without-libiptc \ |
90 |
--without-libiptc \ |
83 |
--without-libjvm \ |
91 |
--without-libjvm \ |
|
|
92 |
--without-liblvm2app \ |
84 |
--without-libkstat \ |
93 |
--without-libkstat \ |
|
|
94 |
--without-libldap \ |
95 |
--without-libmnl \ |
85 |
--without-libmodbus \ |
96 |
--without-libmodbus \ |
86 |
--without-libnetlink \ |
97 |
--without-libnetlink \ |
87 |
--without-libnetapp \ |
98 |
--without-libnetapp \ |
88 |
--without-libopenipmi \ |
|
|
89 |
--without-libowcapi \ |
99 |
--without-libowcapi \ |
90 |
--without-libperfstat \ |
100 |
--without-libperfstat \ |
|
|
101 |
--without-librdkafka \ |
91 |
--without-libsensors \ |
102 |
--without-libsensors \ |
|
|
103 |
--without-libvarnish \ |
92 |
--without-lvm \ |
104 |
--without-lvm \ |
93 |
--without-mic \ |
105 |
--without-mic \ |
94 |
--without-oracle |
106 |
--without-oracle \ |
|
|
107 |
--disable-turbostat |
95 |
|
108 |
|
96 |
# NOTE: Plugins without external dependencies |
109 |
# NOTE: Plugins without external dependencies |
97 |
CONFIGURE_ARGS+= \ |
110 |
CONFIGURE_ARGS+= \ |
Lines 104-109
Link Here
|
104 |
--enable-dns \ |
117 |
--enable-dns \ |
105 |
--enable-email \ |
118 |
--enable-email \ |
106 |
--enable-exec \ |
119 |
--enable-exec \ |
|
|
120 |
--enable-fhcount \ |
107 |
--enable-filecount \ |
121 |
--enable-filecount \ |
108 |
--enable-load \ |
122 |
--enable-load \ |
109 |
--enable-logfile \ |
123 |
--enable-logfile \ |
Lines 126-131
Link Here
|
126 |
--enable-syslog \ |
140 |
--enable-syslog \ |
127 |
--enable-table \ |
141 |
--enable-table \ |
128 |
--enable-tail \ |
142 |
--enable-tail \ |
|
|
143 |
--enable-tail_csv \ |
129 |
--enable-target_notification \ |
144 |
--enable-target_notification \ |
130 |
--enable-target_replace \ |
145 |
--enable-target_replace \ |
131 |
--enable-target_scale \ |
146 |
--enable-target_scale \ |
Lines 139-145
Link Here
|
139 |
--enable-uptime \ |
154 |
--enable-uptime \ |
140 |
--enable-uuid \ |
155 |
--enable-uuid \ |
141 |
--enable-write_graphite \ |
156 |
--enable-write_graphite \ |
142 |
--enable-zfs_arc |
157 |
--enable-write_log \ |
|
|
158 |
--enable-zfs_arc \ |
143 |
|
159 |
|
144 |
.if ${PORT_OPTIONS:MCGI} |
160 |
.if ${PORT_OPTIONS:MCGI} |
145 |
RUN_DEPENDS+= p5-URI>=0:${PORTSDIR}/net/p5-URI \ |
161 |
RUN_DEPENDS+= p5-URI>=0:${PORTSDIR}/net/p5-URI \ |
Lines 217-222
Link Here
|
217 |
CONFIGURE_ARGS+=--without-libgcrypt |
233 |
CONFIGURE_ARGS+=--without-libgcrypt |
218 |
.endif |
234 |
.endif |
219 |
|
235 |
|
|
|
236 |
.if ${PORT_OPTIONS:MIPMI} |
237 |
LIB_DEPENDS+= libOpenIPMI.so:${PORTSDIR}/sysutils/openipmi |
238 |
CONFIGURE_ARGS+=--enable-ipmi |
239 |
PLIST_SUB+= IPMI="" |
240 |
.else |
241 |
CONFIGURE_ARGS+=--disable-ipmi |
242 |
PLIST_SUB+= IPMI="@comment " |
243 |
.endif |
244 |
|
220 |
.if ${PORT_OPTIONS:MJSON} |
245 |
.if ${PORT_OPTIONS:MJSON} |
221 |
LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl |
246 |
LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl |
222 |
CONFIGURE_ARGS+=--with-libyajl=${LOCALBASE} |
247 |
CONFIGURE_ARGS+=--with-libyajl=${LOCALBASE} |
Lines 224-229
Link Here
|
224 |
CONFIGURE_ARGS+=--without-libyajl |
249 |
CONFIGURE_ARGS+=--without-libyajl |
225 |
.endif |
250 |
.endif |
226 |
|
251 |
|
|
|
252 |
.if ${PORT_OPTIONS:MLOGSTASH} |
253 |
CONFIGURE_ARGS+=--enable-log_logstash |
254 |
PLIST_SUB+= LOGSTASH="" |
255 |
.if empty(PORT_OPTIONS:MJSON) |
256 |
IGNORE= LOGSTASH requires JSON. Either select JSON or deselect LOGSTASH |
257 |
.endif |
258 |
.else |
259 |
PLIST_SUB+= LOGSTASH="@comment " |
260 |
.endif |
261 |
|
227 |
.if ${PORT_OPTIONS:MMEMCACHEC} |
262 |
.if ${PORT_OPTIONS:MMEMCACHEC} |
228 |
LIB_DEPENDS+= libmemcached.so:${PORTSDIR}/databases/libmemcached |
263 |
LIB_DEPENDS+= libmemcached.so:${PORTSDIR}/databases/libmemcached |
229 |
CONFIGURE_ARGS+=--with-libmemcached=${LOCALBASE} --enable-memcachec |
264 |
CONFIGURE_ARGS+=--with-libmemcached=${LOCALBASE} --enable-memcachec |
Lines 235-241
Link Here
|
235 |
|
270 |
|
236 |
.if ${PORT_OPTIONS:MMODBUS} |
271 |
.if ${PORT_OPTIONS:MMODBUS} |
237 |
LIB_DEPENDS+= libmodbus.so:${PORTSDIR}/comms/libmodbus |
272 |
LIB_DEPENDS+= libmodbus.so:${PORTSDIR}/comms/libmodbus |
238 |
CONFIGURE_ARGS+=--enable-modbus |
273 |
CONFIGURE_ARGS+=--with-libmodbus=${LOCALBASE} --enable-modbus |
239 |
PLIST_SUB+= MODBUS="" |
274 |
PLIST_SUB+= MODBUS="" |
240 |
.else |
275 |
.else |
241 |
PLIST_SUB+= MODBUS="@comment " |
276 |
PLIST_SUB+= MODBUS="@comment " |
Lines 290-295
Link Here
|
290 |
PLIST_SUB+= NUTUPS="@comment " |
325 |
PLIST_SUB+= NUTUPS="@comment " |
291 |
.endif |
326 |
.endif |
292 |
|
327 |
|
|
|
328 |
.if ${PORT_OPTIONS:MOLSRD} |
329 |
CONFIGURE_ARGS+=--enable-olsrd |
330 |
PLIST_SUB+= OLSRD="" |
331 |
.else |
332 |
CONFIGURE_ARGS+=--enable-olsrd |
333 |
PLIST_SUB+= OLSRD="@comment " |
334 |
.endif |
335 |
|
336 |
.if ${PORT_OPTIONS:MONEWIRE} |
337 |
LIB_DEPENDS+= libow.so:${PORTSDIR}/comms/owfs |
338 |
CONFIGURE_ARGS+=--with-libowcapi=${LOCALBASE} --enable-onewire |
339 |
PLIST_SUB+= ONEWIRE="" |
340 |
.else |
341 |
CONFIGURE_ARGS+=--disable-onewire |
342 |
PLIST_SUB+= ONEWIRE="@comment " |
343 |
.endif |
344 |
|
345 |
.if ${PORT_OPTIONS:MOPENLDAP} |
346 |
USE_OPENLDAP= yes |
347 |
CONFIGURE_ARGS+=--with-libldap=${LOCALBASE} --enable-openldap |
348 |
PLIST_SUB+= OPENLDAP="" |
349 |
.else |
350 |
CONFIGURE_ARGS+=--disable-openldap |
351 |
PLIST_SUB+= OPENLDAP="@comment " |
352 |
.endif |
353 |
|
293 |
.if ${PORT_OPTIONS:MPERL} |
354 |
.if ${PORT_OPTIONS:MPERL} |
294 |
USES+= perl5 |
355 |
USES+= perl5 |
295 |
CONFIGURE_ARGS+=--with-perl=${PERL} --with-perl-bindings --enable-perl |
356 |
CONFIGURE_ARGS+=--with-perl=${PERL} --with-perl-bindings --enable-perl |
Lines 308-313
Link Here
|
308 |
PLIST_SUB+= PGSQL="@comment " |
369 |
PLIST_SUB+= PGSQL="@comment " |
309 |
.endif |
370 |
.endif |
310 |
|
371 |
|
|
|
372 |
.if ${PORT_OPTIONS:MPINBA} |
373 |
LIB_DEPENDS+= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c |
374 |
CONFIGURE_ARGS+=--enable-pinba |
375 |
PLIST_SUB+= PINBA="" |
376 |
.else |
377 |
CONFIGURE_ARGS+=--disable-pinba |
378 |
PLIST_SUB+= PINBA="@comment " |
379 |
.endif |
380 |
|
311 |
.if ${PORT_OPTIONS:MPING} |
381 |
.if ${PORT_OPTIONS:MPING} |
312 |
LIB_DEPENDS+= liboping.so:${PORTSDIR}/net/liboping |
382 |
LIB_DEPENDS+= liboping.so:${PORTSDIR}/net/liboping |
313 |
CONFIGURE_ARGS+=--with-liboping=${LOCALBASE} --enable-ping |
383 |
CONFIGURE_ARGS+=--with-liboping=${LOCALBASE} --enable-ping |
Lines 338-345
Link Here
|
338 |
.endif |
408 |
.endif |
339 |
|
409 |
|
340 |
.if ${PORT_OPTIONS:MREDIS} |
410 |
.if ${PORT_OPTIONS:MREDIS} |
341 |
LIB_DEPENDS+= libcredis.so:${PORTSDIR}/databases/credis |
411 |
LIB_DEPENDS+= libhiredis.so:${PORTSDIR}/databases/hiredis |
342 |
CONFIGURE_ARGS+=--with-libcredis=${LOCALBASE} \ |
412 |
CONFIGURE_ARGS+=--with-libhiredis=${LOCALBASE} \ |
343 |
--enable-redis \ |
413 |
--enable-redis \ |
344 |
--enable-write_redis |
414 |
--enable-write_redis |
345 |
PLIST_SUB+= REDIS="" |
415 |
PLIST_SUB+= REDIS="" |
Lines 382-388
Link Here
|
382 |
.endif |
452 |
.endif |
383 |
|
453 |
|
384 |
.if ${PORT_OPTIONS:MSTATGRAB} |
454 |
.if ${PORT_OPTIONS:MSTATGRAB} |
385 |
USES+= pkgconfig |
|
|
386 |
LIB_DEPENDS+= libstatgrab.so:${PORTSDIR}/devel/libstatgrab |
455 |
LIB_DEPENDS+= libstatgrab.so:${PORTSDIR}/devel/libstatgrab |
387 |
LIBS+= `pkg-config --libs libstatgrab` |
456 |
LIBS+= `pkg-config --libs libstatgrab` |
388 |
CONFIGURE_ARGS+=--with-libstatgrab=${LOCALBASE} \ |
457 |
CONFIGURE_ARGS+=--with-libstatgrab=${LOCALBASE} \ |
Lines 408-413
Link Here
|
408 |
USE_GNOME+= glib20 |
477 |
USE_GNOME+= glib20 |
409 |
LIB_DEPENDS+= libsigrok.so:${PORTSDIR}/devel/libsigrok |
478 |
LIB_DEPENDS+= libsigrok.so:${PORTSDIR}/devel/libsigrok |
410 |
CONFIGURE_ARGS+=--with-libsigrok --enable-sigrok |
479 |
CONFIGURE_ARGS+=--with-libsigrok --enable-sigrok |
|
|
480 |
CFLAGS+= `pkg-config --cflags glib-2.0` |
411 |
PLIST_SUB+= SIGROK="" |
481 |
PLIST_SUB+= SIGROK="" |
412 |
.else |
482 |
.else |
413 |
CONFIGURE_ARGS+=--disable-sigrok |
483 |
CONFIGURE_ARGS+=--disable-sigrok |
Lines 423-428
Link Here
|
423 |
PLIST_SUB+= SNMP="@comment " |
493 |
PLIST_SUB+= SNMP="@comment " |
424 |
.endif |
494 |
.endif |
425 |
|
495 |
|
|
|
496 |
.if ${PORT_OPTIONS:MSTATSD} |
497 |
CONFIGURE_ARGS+=--enable-statsd |
498 |
PLIST_SUB+= STATSD="" |
499 |
.else |
500 |
CONFIGURE_ARGS+=--disable-statsd |
501 |
PLIST_SUB+= STATSD="@comment " |
502 |
.endif |
503 |
|
426 |
.if ${PORT_OPTIONS:MTOKYOTYRANT} |
504 |
.if ${PORT_OPTIONS:MTOKYOTYRANT} |
427 |
LIB_DEPENDS+= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant |
505 |
LIB_DEPENDS+= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant |
428 |
CONFIGURE_ARGS+=--with-libtokyotyrant=${LOCALBASE} --enable-tokyotyrant |
506 |
CONFIGURE_ARGS+=--with-libtokyotyrant=${LOCALBASE} --enable-tokyotyrant |
Lines 433-439
Link Here
|
433 |
.endif |
511 |
.endif |
434 |
|
512 |
|
435 |
.if ${PORT_OPTIONS:MVARNISH} |
513 |
.if ${PORT_OPTIONS:MVARNISH} |
436 |
LIB_DEPENDS+= libvarnishapi.so:${PORTSDIR}/www/varnish |
514 |
LIB_DEPENDS+= libvarnishapi.so:${PORTSDIR}/www/varnish4 |
437 |
CONFIGURE_ARGS+=--with-libvarnish=${LOCALBASE} --enable-varnish |
515 |
CONFIGURE_ARGS+=--with-libvarnish=${LOCALBASE} --enable-varnish |
438 |
PLIST_SUB+= VARNISH="" |
516 |
PLIST_SUB+= VARNISH="" |
439 |
.else |
517 |
.else |
Lines 446-455
Link Here
|
446 |
IGNORE= VIRT requires XML. Either select XML or deselect VIRT. |
524 |
IGNORE= VIRT requires XML. Either select XML or deselect VIRT. |
447 |
.endif |
525 |
.endif |
448 |
LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt |
526 |
LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt |
449 |
CONFIGURE_ARGS+=--enable-libvirt |
527 |
CONFIGURE_ARGS+=--enable-virt |
450 |
PLIST_SUB+= VIRT="" |
528 |
PLIST_SUB+= VIRT="" |
451 |
.else |
529 |
.else |
452 |
CONFIGURE_ARGS+=--without-libvirt --disable-libvirt |
530 |
CONFIGURE_ARGS+=--without-virt --disable-virt |
453 |
PLIST_SUB+= VIRT="@comment " |
531 |
PLIST_SUB+= VIRT="@comment " |
454 |
.endif |
532 |
.endif |
455 |
|
533 |
|
Lines 468-473
Link Here
|
468 |
PLIST_SUB+= XMMS="@comment " |
546 |
PLIST_SUB+= XMMS="@comment " |
469 |
.endif |
547 |
.endif |
470 |
|
548 |
|
|
|
549 |
.if ${PORT_OPTIONS:MZOOKEEPER} |
550 |
LIB_DEPENDS+= libzookeeper_mt.so:${PORTSDIR}/devel/libzookeeper |
551 |
CONFIGURE_ARGS+=--with-libzookeeper=${LOCALBASE} --enable-zookeeper |
552 |
PLIST_SUB+= ZOOKEEPER="" |
553 |
.else |
554 |
CONFIGURE_ARGS+=--without-libzookeeper --disable-zookeeper |
555 |
PLIST_SUB+= ZOOKEEPER="@comment " |
556 |
.endif |
557 |
|
471 |
INSTALL_TARGET=install-strip |
558 |
INSTALL_TARGET=install-strip |
472 |
SHEBANG_FILES= contrib/collection.cgi |
559 |
SHEBANG_FILES= contrib/collection.cgi |
473 |
|
560 |
|