Lines 2-11
Link Here
|
2 |
# $FreeBSD: head/net-mgmt/collectd5/Makefile 388844 2015-06-08 16:43:01Z brd $ |
2 |
# $FreeBSD: head/net-mgmt/collectd5/Makefile 388844 2015-06-08 16:43:01Z brd $ |
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/ |
9 |
PKGNAMESUFFIX= 5 |
8 |
PKGNAMESUFFIX= 5 |
10 |
|
9 |
|
11 |
MAINTAINER= ports@bsdserwis.com |
10 |
MAINTAINER= ports@bsdserwis.com |
Lines 24-39
Link Here
|
24 |
OPTIONS_DEFINE= CGI DEBUG GCRYPT VIRT |
23 |
OPTIONS_DEFINE= CGI DEBUG GCRYPT VIRT |
25 |
OPTIONS_GROUP= INPUT OUTPUT |
24 |
OPTIONS_GROUP= INPUT OUTPUT |
26 |
OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP RIEMANN |
25 |
OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP RIEMANN |
27 |
OPTIONS_GROUP_INPUT= CURL DBI JSON MEMCACHEC MODBUS MONGODB MYSQL \ |
26 |
OPTIONS_GROUP_INPUT= CURL IPMI DBI JSON MEMCACHEC MODBUS MONGODB MYSQL \ |
28 |
NUTUPS PERL PGSQL PING PYTHON RABBITMQ REDIS \ |
27 |
NUTUPS OLSRD ONEWIRE OPENLDAP PERL PGSQL PINBA PING \ |
29 |
ROUTEROS SIGROK SNMP STATGRAB TOKYOTYRANT VARNISH \ |
28 |
PYTHON RABBITMQ REDIS ROUTEROS SIGROK SNMP STATGRAB \ |
30 |
XML XMMS |
29 |
STATSD TOKYOTYRANT VARNISH XML XMMS ZOOKEEPER |
31 |
|
30 |
|
32 |
CGI_DESC= Install collection.cgi (requires rrdtool) |
31 |
CGI_DESC= Install collection.cgi (requires rrdtool) |
33 |
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) |
32 |
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) |
34 |
DEBUG_DESC= Enable debugging |
33 |
DEBUG_DESC= Enable debugging |
35 |
DBI_DESC= Enable dbi plugin |
34 |
DBI_DESC= Enable dbi plugin |
36 |
GCRYPT_DESC= Build with libgcrypt |
35 |
GCRYPT_DESC= Build with libgcrypt |
|
|
36 |
IPMI_DESC= Enable OpenIPMI plugin |
37 |
JSON_DESC= Enable JSON plugins |
37 |
JSON_DESC= Enable JSON plugins |
38 |
MEMCACHEC_DESC= Enable memcachec plugin |
38 |
MEMCACHEC_DESC= Enable memcachec plugin |
39 |
MODBUS_DESC= Enable modbus plugin |
39 |
MODBUS_DESC= Enable modbus plugin |
Lines 42-49
Link Here
|
42 |
NOTIFYEMAIL_DESC= Enable notifications via email |
42 |
NOTIFYEMAIL_DESC= Enable notifications via email |
43 |
NOTIFYDESKTOP_DESC= Enable desktop notifications |
43 |
NOTIFYDESKTOP_DESC= Enable desktop notifications |
44 |
NUTUPS_DESC= Enable nut (ups) plugin |
44 |
NUTUPS_DESC= Enable nut (ups) plugin |
|
|
45 |
OLRSD_DESC= Enable olsrd plugin |
46 |
ONEWIRE_DESC= Eanble onewire plugin (via owfs) |
47 |
OPENLDAP_DESC= Enable OpenLDAP plugin |
45 |
PERL_DESC= Enable libperl plugin and binding |
48 |
PERL_DESC= Enable libperl plugin and binding |
46 |
PGSQL_DESC= Enable postgresql-based plugins |
49 |
PGSQL_DESC= Enable postgresql-based plugins |
|
|
50 |
PINBA_DESC= Enable pinba plugin (via protobuf-c) |
47 |
PING_DESC= Enable ping plugin |
51 |
PING_DESC= Enable ping plugin |
48 |
PYTHON_DESC= Enable python-based plugins |
52 |
PYTHON_DESC= Enable python-based plugins |
49 |
RABBITMQ_DESC= Enable rabbitmq-based plugins |
53 |
RABBITMQ_DESC= Enable rabbitmq-based plugins |
Lines 54-64
Link Here
|
54 |
SIGROK_DESC= Enable sigrok plugin |
58 |
SIGROK_DESC= Enable sigrok plugin |
55 |
SNMP_DESC= Enable SNMP plugin |
59 |
SNMP_DESC= Enable SNMP plugin |
56 |
STATGRAB_DESC= Enable statgrab-based plugins (disk, interface, etc) |
60 |
STATGRAB_DESC= Enable statgrab-based plugins (disk, interface, etc) |
|
|
61 |
STATSD_DESC= Enable statsd plugin |
57 |
TOKYOTYRANT_DESC= Enable tokyotyrant plugin |
62 |
TOKYOTYRANT_DESC= Enable tokyotyrant plugin |
58 |
VARNISH_DESC= Enable varnish 3.x cache statistics |
63 |
VARNISH_DESC= Enable varnish 3.x cache statistics (does not build with varnish 4.x) |
59 |
VIRT_DESC= Enable libvirt plugin (requires XML) |
64 |
VIRT_DESC= Enable libvirt plugin (requires XML) |
60 |
XML_DESC= Enable XML plugins |
65 |
XML_DESC= Enable XML plugins |
61 |
XMMS_DESC= Enable xmms plugin |
66 |
XMMS_DESC= Enable xmms plugin |
|
|
67 |
ZOOKEEPER_DESC= Enable zookeeper plugin |
62 |
|
68 |
|
63 |
USE_RC_SUBR= collectd collectdmon |
69 |
USE_RC_SUBR= collectd collectdmon |
64 |
|
70 |
|
Lines 81-97
Link Here
|
81 |
--without-libganglia \ |
87 |
--without-libganglia \ |
82 |
--without-libiptc \ |
88 |
--without-libiptc \ |
83 |
--without-libjvm \ |
89 |
--without-libjvm \ |
|
|
90 |
--without-liblvm2app \ |
84 |
--without-libkstat \ |
91 |
--without-libkstat \ |
|
|
92 |
--without-libldap \ |
93 |
--without-libmnl \ |
85 |
--without-libmodbus \ |
94 |
--without-libmodbus \ |
86 |
--without-libnetlink \ |
95 |
--without-libnetlink \ |
87 |
--without-libnetapp \ |
96 |
--without-libnetapp \ |
88 |
--without-libopenipmi \ |
|
|
89 |
--without-libowcapi \ |
97 |
--without-libowcapi \ |
90 |
--without-libperfstat \ |
98 |
--without-libperfstat \ |
|
|
99 |
--without-librdkafka \ |
91 |
--without-libsensors \ |
100 |
--without-libsensors \ |
|
|
101 |
--without-libvarnish \ |
92 |
--without-lvm \ |
102 |
--without-lvm \ |
93 |
--without-mic \ |
103 |
--without-mic \ |
94 |
--without-oracle |
104 |
--without-oracle \ |
|
|
105 |
--disable-turbostat |
95 |
|
106 |
|
96 |
# NOTE: Plugins without external dependencies |
107 |
# NOTE: Plugins without external dependencies |
97 |
CONFIGURE_ARGS+= \ |
108 |
CONFIGURE_ARGS+= \ |
Lines 104-112
Link Here
|
104 |
--enable-dns \ |
115 |
--enable-dns \ |
105 |
--enable-email \ |
116 |
--enable-email \ |
106 |
--enable-exec \ |
117 |
--enable-exec \ |
|
|
118 |
--enable-fhcount \ |
107 |
--enable-filecount \ |
119 |
--enable-filecount \ |
108 |
--enable-load \ |
120 |
--enable-load \ |
109 |
--enable-logfile \ |
121 |
--enable-logfile \ |
|
|
122 |
--enable-log_logstash \ |
110 |
--enable-match_empty_counter \ |
123 |
--enable-match_empty_counter \ |
111 |
--enable-match_hashed \ |
124 |
--enable-match_hashed \ |
112 |
--enable-match_regex \ |
125 |
--enable-match_regex \ |
Lines 126-131
Link Here
|
126 |
--enable-syslog \ |
139 |
--enable-syslog \ |
127 |
--enable-table \ |
140 |
--enable-table \ |
128 |
--enable-tail \ |
141 |
--enable-tail \ |
|
|
142 |
--enable-tail_csv \ |
129 |
--enable-target_notification \ |
143 |
--enable-target_notification \ |
130 |
--enable-target_replace \ |
144 |
--enable-target_replace \ |
131 |
--enable-target_scale \ |
145 |
--enable-target_scale \ |
Lines 139-145
Link Here
|
139 |
--enable-uptime \ |
153 |
--enable-uptime \ |
140 |
--enable-uuid \ |
154 |
--enable-uuid \ |
141 |
--enable-write_graphite \ |
155 |
--enable-write_graphite \ |
142 |
--enable-zfs_arc |
156 |
--enable-write_log \ |
|
|
157 |
--enable-zfs_arc \ |
143 |
|
158 |
|
144 |
.if ${PORT_OPTIONS:MCGI} |
159 |
.if ${PORT_OPTIONS:MCGI} |
145 |
RUN_DEPENDS+= p5-URI>=0:${PORTSDIR}/net/p5-URI \ |
160 |
RUN_DEPENDS+= p5-URI>=0:${PORTSDIR}/net/p5-URI \ |
Lines 217-222
Link Here
|
217 |
CONFIGURE_ARGS+=--without-libgcrypt |
232 |
CONFIGURE_ARGS+=--without-libgcrypt |
218 |
.endif |
233 |
.endif |
219 |
|
234 |
|
|
|
235 |
.if ${PORT_OPTIONS:MIPMI} |
236 |
LIB_DEPENDS+= libOpenIPMI.so:${PORTSDIR}/sysutils/openipmi |
237 |
CONFIGURE_ARGS+=--enable-ipmi |
238 |
PLIST_SUB+= IPMI="" |
239 |
.else |
240 |
CONFIGURE_ARGS+=--disable-ipmi |
241 |
PLIST_SUB+= IPMI="@comment " |
242 |
.endif |
243 |
|
220 |
.if ${PORT_OPTIONS:MJSON} |
244 |
.if ${PORT_OPTIONS:MJSON} |
221 |
LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl |
245 |
LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl |
222 |
CONFIGURE_ARGS+=--with-libyajl=${LOCALBASE} |
246 |
CONFIGURE_ARGS+=--with-libyajl=${LOCALBASE} |
Lines 235-241
Link Here
|
235 |
|
259 |
|
236 |
.if ${PORT_OPTIONS:MMODBUS} |
260 |
.if ${PORT_OPTIONS:MMODBUS} |
237 |
LIB_DEPENDS+= libmodbus.so:${PORTSDIR}/comms/libmodbus |
261 |
LIB_DEPENDS+= libmodbus.so:${PORTSDIR}/comms/libmodbus |
238 |
CONFIGURE_ARGS+=--enable-modbus |
262 |
CONFIGURE_ARGS+=--with-libmodbus=${LOCALBASE} --enable-modbus |
239 |
PLIST_SUB+= MODBUS="" |
263 |
PLIST_SUB+= MODBUS="" |
240 |
.else |
264 |
.else |
241 |
PLIST_SUB+= MODBUS="@comment " |
265 |
PLIST_SUB+= MODBUS="@comment " |
Lines 290-295
Link Here
|
290 |
PLIST_SUB+= NUTUPS="@comment " |
314 |
PLIST_SUB+= NUTUPS="@comment " |
291 |
.endif |
315 |
.endif |
292 |
|
316 |
|
|
|
317 |
.if ${PORT_OPTIONS:MOLSRD} |
318 |
CONFIGURE_ARGS+=--enable-olsrd |
319 |
PLIST_SUB+= OLSRD="" |
320 |
.else |
321 |
CONFIGURE_ARGS+=--enable-olsrd |
322 |
PLIST_SUB+= OLSRD="@comment " |
323 |
.endif |
324 |
|
325 |
.if ${PORT_OPTIONS:MONEWIRE} |
326 |
LIB_DEPENDS+= libow.so:${PORTSDIR}/comms/owfs |
327 |
CONFIGURE_ARGS+=--with-libowcapi=${LOCALBASE} --enable-onewire |
328 |
PLIST_SUB+= ONEWIRE="" |
329 |
.else |
330 |
CONFIGURE_ARGS+=--disable-onewire |
331 |
PLIST_SUB+= ONEWIRE="@comment " |
332 |
.endif |
333 |
|
334 |
.if ${PORT_OPTIONS:MOPENLDAP} |
335 |
USE_OPENLDAP= yes |
336 |
CONFIGURE_ARGS+=--with-libldap=${LOCALBASE} --enable-openldap |
337 |
PLIST_SUB+= OPENLDAP="" |
338 |
.else |
339 |
CONFIGURE_ARGS+=--disable-openldap |
340 |
PLIST_SUB+= OPENLDAP="@comment " |
341 |
.endif |
342 |
|
293 |
.if ${PORT_OPTIONS:MPERL} |
343 |
.if ${PORT_OPTIONS:MPERL} |
294 |
USES+= perl5 |
344 |
USES+= perl5 |
295 |
CONFIGURE_ARGS+=--with-perl=${PERL} --with-perl-bindings --enable-perl |
345 |
CONFIGURE_ARGS+=--with-perl=${PERL} --with-perl-bindings --enable-perl |
Lines 308-313
Link Here
|
308 |
PLIST_SUB+= PGSQL="@comment " |
358 |
PLIST_SUB+= PGSQL="@comment " |
309 |
.endif |
359 |
.endif |
310 |
|
360 |
|
|
|
361 |
.if ${PORT_OPTIONS:MPINBA} |
362 |
LIB_DEPENDS+= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c |
363 |
CONFIGURE_ARGS+=--enable-pinba |
364 |
PLIST_SUB+= PINBA="" |
365 |
.else |
366 |
CONFIGURE_ARGS+=--disable-pinba |
367 |
PLIST_SUB+= PINBA="@comment " |
368 |
.endif |
369 |
|
311 |
.if ${PORT_OPTIONS:MPING} |
370 |
.if ${PORT_OPTIONS:MPING} |
312 |
LIB_DEPENDS+= liboping.so:${PORTSDIR}/net/liboping |
371 |
LIB_DEPENDS+= liboping.so:${PORTSDIR}/net/liboping |
313 |
CONFIGURE_ARGS+=--with-liboping=${LOCALBASE} --enable-ping |
372 |
CONFIGURE_ARGS+=--with-liboping=${LOCALBASE} --enable-ping |
Lines 338-345
Link Here
|
338 |
.endif |
397 |
.endif |
339 |
|
398 |
|
340 |
.if ${PORT_OPTIONS:MREDIS} |
399 |
.if ${PORT_OPTIONS:MREDIS} |
341 |
LIB_DEPENDS+= libcredis.so:${PORTSDIR}/databases/credis |
400 |
LIB_DEPENDS+= libhiredis.so:${PORTSDIR}/databases/hiredis |
342 |
CONFIGURE_ARGS+=--with-libcredis=${LOCALBASE} \ |
401 |
CONFIGURE_ARGS+=--with-libhiredis=${LOCALBASE} \ |
343 |
--enable-redis \ |
402 |
--enable-redis \ |
344 |
--enable-write_redis |
403 |
--enable-write_redis |
345 |
PLIST_SUB+= REDIS="" |
404 |
PLIST_SUB+= REDIS="" |
Lines 423-428
Link Here
|
423 |
PLIST_SUB+= SNMP="@comment " |
482 |
PLIST_SUB+= SNMP="@comment " |
424 |
.endif |
483 |
.endif |
425 |
|
484 |
|
|
|
485 |
.if ${PORT_OPTIONS:MSTATSD} |
486 |
CONFIGURE_ARGS+=--enable-statsd |
487 |
PLIST_SUB+= STATSD="" |
488 |
.else |
489 |
CONFIGURE_ARGS+=--disable-statsd |
490 |
PLIST_SUB+= STATSD="@comment " |
491 |
.endif |
492 |
|
426 |
.if ${PORT_OPTIONS:MTOKYOTYRANT} |
493 |
.if ${PORT_OPTIONS:MTOKYOTYRANT} |
427 |
LIB_DEPENDS+= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant |
494 |
LIB_DEPENDS+= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant |
428 |
CONFIGURE_ARGS+=--with-libtokyotyrant=${LOCALBASE} --enable-tokyotyrant |
495 |
CONFIGURE_ARGS+=--with-libtokyotyrant=${LOCALBASE} --enable-tokyotyrant |
Lines 433-439
Link Here
|
433 |
.endif |
500 |
.endif |
434 |
|
501 |
|
435 |
.if ${PORT_OPTIONS:MVARNISH} |
502 |
.if ${PORT_OPTIONS:MVARNISH} |
436 |
LIB_DEPENDS+= libvarnishapi.so:${PORTSDIR}/www/varnish |
503 |
BROKEN= "Only libvarnish 3.x support. Does not build with libvarnish4" |
|
|
504 |
LIB_DEPENDS+= libvarnishapi.so:${PORTSDIR}/www/varnish4 |
437 |
CONFIGURE_ARGS+=--with-libvarnish=${LOCALBASE} --enable-varnish |
505 |
CONFIGURE_ARGS+=--with-libvarnish=${LOCALBASE} --enable-varnish |
438 |
PLIST_SUB+= VARNISH="" |
506 |
PLIST_SUB+= VARNISH="" |
439 |
.else |
507 |
.else |
Lines 446-455
Link Here
|
446 |
IGNORE= VIRT requires XML. Either select XML or deselect VIRT. |
514 |
IGNORE= VIRT requires XML. Either select XML or deselect VIRT. |
447 |
.endif |
515 |
.endif |
448 |
LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt |
516 |
LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt |
449 |
CONFIGURE_ARGS+=--enable-libvirt |
517 |
CONFIGURE_ARGS+=--enable-virt |
450 |
PLIST_SUB+= VIRT="" |
518 |
PLIST_SUB+= VIRT="" |
451 |
.else |
519 |
.else |
452 |
CONFIGURE_ARGS+=--without-libvirt --disable-libvirt |
520 |
CONFIGURE_ARGS+=--without-virt --disable-virt |
453 |
PLIST_SUB+= VIRT="@comment " |
521 |
PLIST_SUB+= VIRT="@comment " |
454 |
.endif |
522 |
.endif |
455 |
|
523 |
|
Lines 468-473
Link Here
|
468 |
PLIST_SUB+= XMMS="@comment " |
536 |
PLIST_SUB+= XMMS="@comment " |
469 |
.endif |
537 |
.endif |
470 |
|
538 |
|
|
|
539 |
.if ${PORT_OPTIONS:MZOOKEEPER} |
540 |
LIB_DEPENDS+= libzookeeper_mt.so:${PORTSDIR}/devel/libzookeeper |
541 |
CONFIGURE_ARGS+=--with-libzookeeper=${LOCALBASE} --enable-zookeeper |
542 |
PLIST_SUB+= ZOOKEEPER="" |
543 |
.else |
544 |
CONFIGURE_ARGS+=--without-libzookeeper --disable-zookeeper |
545 |
PLIST_SUB+= ZOOKEEPER="@comment " |
546 |
.endif |
547 |
|
471 |
INSTALL_TARGET=install-strip |
548 |
INSTALL_TARGET=install-strip |
472 |
SHEBANG_FILES= contrib/collection.cgi |
549 |
SHEBANG_FILES= contrib/collection.cgi |
473 |
|
550 |
|