Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/collectd5/Makefile
# Created by: Matt Peterson <matt@peterson.org> | # Created by: Matt Peterson <matt@peterson.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= collectd | PORTNAME= collectd | ||||
PORTVERSION= 5.5.2 | PORTVERSION= 5.6.0 | ||||
CATEGORIES= net-mgmt | CATEGORIES= net-mgmt | ||||
MASTER_SITES= https://collectd.org/files/ \ | MASTER_SITES= https://collectd.org/files/ \ | ||||
http://collectd.org/files/ | http://collectd.org/files/ | ||||
PKGNAMESUFFIX= 5 | PKGNAMESUFFIX= 5 | ||||
MAINTAINER= ports@bsdserwis.com | MAINTAINER= ports@bsdserwis.com | ||||
COMMENT= Systems & network statistics collection daemon | COMMENT= Systems & network statistics collection daemon | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
# Only autoreconf stage and sigrok plugin need GLIB: | # Only autoreconf stage and sigrok plugin need GLIB: | ||||
BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/glib-2.0.m4:devel/glib20 | BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/glib-2.0.m4:devel/glib20 | ||||
LIB_DEPENDS= libltdl.so:devel/libltdl | LIB_DEPENDS= libltdl.so:devel/libltdl | ||||
USES= autoreconf gmake libtool pkgconfig shebangfix tar:bzip2 | USES= autoreconf gmake libtool pkgconfig shebangfix tar:bzip2 | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
OPTIONS_DEFINE= CGI DEBUG GCRYPT LOGSTASH VIRT | OPTIONS_DEFINE= CGI DEBUG GCRYPT LOGSTASH VIRT | ||||
OPTIONS_GROUP= INPUT OUTPUT | OPTIONS_GROUP= INPUT OUTPUT | ||||
OPTIONS_GROUP_OUTPUT= KAFKA MONGODB NOTIFYDESKTOP NOTIFYEMAIL RIEMANN RRDTOOL \ | OPTIONS_GROUP_OUTPUT= KAFKA MONGODB NOTIFYDESKTOP NOTIFYEMAIL RIEMANN RRDTOOL \ | ||||
TSDB | TSDB | ||||
OPTIONS_GROUP_INPUT= CURL CURL_JSON CURL_XML DBI IPMI JSON MEMCACHEC \ | OPTIONS_GROUP_INPUT= CHRONY CURL CURL_JSON CURL_XML DBI IPMI JSON \ | ||||
MODBUS MYSQL NUTUPS OLSRD ONEWIRE OPENLDAP \ | MEMCACHEC MODBUS MQTT MYSQL NUTUPS OLSRD ONEWIRE OPENLDAP \ | ||||
PERL PGSQL PINBA PING PYTHON RABBITMQ REDIS ROUTEROS \ | PERL PGSQL PINBA PING PYTHON RABBITMQ REDIS ROUTEROS \ | ||||
SIGROK SNMP STATSD TOKYOTYRANT VARNISH XML \ | SIGROK SNMP STATSD TOKYOTYRANT VARNISH XML \ | ||||
XMMS ZOOKEEPER | XMMS ZOOKEEPER | ||||
CGI_DESC= Install collection.cgi (requires rrdtool) | CGI_DESC= Install collection.cgi (requires rrdtool) | ||||
CHRONY_DESC= Enable chronyd plugin | |||||
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) | CURL_DESC= Enable curl-based plugins (apache, nginx, etc) | ||||
CURL_JSON_DESC= Enable curl_json plugin (implies curl and json) | CURL_JSON_DESC= Enable curl_json plugin (implies curl and json) | ||||
CURL_XML_DESC= Enable ascent, bind, curl_xml plugins (implies curl and xml) | CURL_XML_DESC= Enable ascent, bind, curl_xml plugins (implies curl and xml) | ||||
DBI_DESC= Enable dbi plugin | DBI_DESC= Enable dbi plugin | ||||
DEBUG_DESC= Enable debugging | DEBUG_DESC= Enable debugging | ||||
GCRYPT_DESC= Build with libgcrypt | GCRYPT_DESC= Build with libgcrypt | ||||
IPMI_DESC= Enable OpenIPMI plugin | IPMI_DESC= Enable OpenIPMI plugin | ||||
JSON_DESC= Enable JSON plugins | JSON_DESC= Enable JSON plugins | ||||
KAFKA_DESC= Enable write_kafka plugin | KAFKA_DESC= Enable write_kafka plugin | ||||
LOGSTASH_DESC= Enable log_logstash plugin (requires json) | LOGSTASH_DESC= Enable log_logstash plugin (requires json) | ||||
MEMCACHEC_DESC= Enable memcachec plugin | MEMCACHEC_DESC= Enable memcachec plugin | ||||
MODBUS_DESC= Enable modbus plugin | MODBUS_DESC= Enable modbus plugin | ||||
MONGODB_DESC= Enable write_mongodb plugin (BROKEN) | MONGODB_DESC= Enable write_mongodb plugin (BROKEN) | ||||
MQTT_DESC= Enable MQTT broker metrics | |||||
MYSQL_DESC= Enable mysql-based plugins | MYSQL_DESC= Enable mysql-based plugins | ||||
NOTIFYDESKTOP_DESC= Enable desktop notifications | NOTIFYDESKTOP_DESC= Enable desktop notifications | ||||
NOTIFYEMAIL_DESC= Enable notifications via email | NOTIFYEMAIL_DESC= Enable notifications via email | ||||
NUTUPS_DESC= Enable nut (ups) plugin | NUTUPS_DESC= Enable nut (ups) plugin | ||||
OLSRD_DESC= Enable olsrd plugin | OLSRD_DESC= Enable olsrd plugin | ||||
ONEWIRE_DESC= Eanble onewire plugin (via owfs) | ONEWIRE_DESC= Eanble onewire plugin (via owfs) | ||||
OPENLDAP_DESC= Enable OpenLDAP plugin | OPENLDAP_DESC= Enable OpenLDAP plugin | ||||
PERL_DESC= Enable libperl plugin and binding | PERL_DESC= Enable libperl plugin and binding | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | CONFIGURE_ARGS= --localstatedir=/var \ | ||||
--disable-turbostat | --disable-turbostat | ||||
CGI_RUN_DEPENDS= p5-URI>=0:net/p5-URI \ | CGI_RUN_DEPENDS= p5-URI>=0:net/p5-URI \ | ||||
p5-CGI>=0:www/p5-CGI \ | p5-CGI>=0:www/p5-CGI \ | ||||
p5-Data-Dumper>=0:devel/p5-Data-Dumper \ | p5-Data-Dumper>=0:devel/p5-Data-Dumper \ | ||||
p5-HTML-Parser>=0:www/p5-HTML-Parser | p5-HTML-Parser>=0:www/p5-HTML-Parser | ||||
CGI_IMPLIES= RRDTOOL | CGI_IMPLIES= RRDTOOL | ||||
CHRONY_CONFIGURE_ENABLE= chrony | |||||
CURL_LIB_DEPENDS= libcurl.so:ftp/curl | CURL_LIB_DEPENDS= libcurl.so:ftp/curl | ||||
CURL_CONFIGURE_ENABLE= apache curl nginx write_http | CURL_CONFIGURE_ENABLE= apache curl nginx write_http | ||||
CURL_CONFIGURE_WITH= libcurl=${LOCALBASE} | CURL_CONFIGURE_WITH= libcurl=${LOCALBASE} | ||||
CURL_JSON_IMPLIES= CURL JSON | CURL_JSON_IMPLIES= CURL JSON | ||||
CURL_JSON_CONFIGURE_ENABLE= curl_json | CURL_JSON_CONFIGURE_ENABLE= curl_json | ||||
CURL_XML_IMPLIES= CURL XML | CURL_XML_IMPLIES= CURL XML | ||||
Show All 31 Lines | |||||
MODBUS_CONFIGURE_WITH= libmodbus=use_pkgconfig | MODBUS_CONFIGURE_WITH= libmodbus=use_pkgconfig | ||||
MONGODB_LIB_DEPENDS= libmongoc-1.0.so:devel/mongo-c-driver | MONGODB_LIB_DEPENDS= libmongoc-1.0.so:devel/mongo-c-driver | ||||
MONGODB_LIB_DEPENDS+= libbson-1.0.so:devel/libbson | MONGODB_LIB_DEPENDS+= libbson-1.0.so:devel/libbson | ||||
MONGODB_CONFIGURE_ENABLE= write_mongodb | MONGODB_CONFIGURE_ENABLE= write_mongodb | ||||
MONGODB_CONFIGURE_WITH= libmongoc=${LOCALBASE} | MONGODB_CONFIGURE_WITH= libmongoc=${LOCALBASE} | ||||
MONGODB_BROKEN= fails to configure with write_mongodb option | MONGODB_BROKEN= fails to configure with write_mongodb option | ||||
MQTT_LIB_DEPENDS= libmosquitto.so:net/mosquitto | |||||
MQTT_CONFIGURE_ENABLE= mqtt | |||||
MQTT_CONFIGURE_WITH= libmosquitto=${LOCALBASE} | |||||
MYSQL_USE= mysql=yes | MYSQL_USE= mysql=yes | ||||
MYSQL_CONFIGURE_ENABLE= mysql | MYSQL_CONFIGURE_ENABLE= mysql | ||||
MYSQL_CONFIGURE_WITH= libmysql=${LOCALBASE} | MYSQL_CONFIGURE_WITH= libmysql=${LOCALBASE} | ||||
NOTIFYDESKTOP_LIB_DEPENDS= libnotify.so:devel/libnotify | NOTIFYDESKTOP_LIB_DEPENDS= libnotify.so:devel/libnotify | ||||
NOTIFYDESKTOP_CONFIGURE_ENABLE= notify_desktop | NOTIFYDESKTOP_CONFIGURE_ENABLE= notify_desktop | ||||
NOTIFYDESKTOP_CONFIGURE_WITH= libnotify=${LOCALBASE} | NOTIFYDESKTOP_CONFIGURE_WITH= libnotify=${LOCALBASE} | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
# NOTE: Plugins without external dependencies | # NOTE: Plugins without external dependencies | ||||
CONFIGURE_ARGS+=--enable-aggregation \ | CONFIGURE_ARGS+=--enable-aggregation \ | ||||
--enable-apcups \ | --enable-apcups \ | ||||
--enable-contextswitch \ | --enable-contextswitch \ | ||||
--enable-cpu \ | --enable-cpu \ | ||||
--enable-csv \ | --enable-csv \ | ||||
--enable-df \ | --enable-df \ | ||||
--enable-disk \ | |||||
--enable-dns \ | --enable-dns \ | ||||
--enable-email \ | --enable-email \ | ||||
--enable-exec \ | --enable-exec \ | ||||
--enable-filecount \ | --enable-filecount \ | ||||
--enable-interface \ | --enable-interface \ | ||||
--enable-load \ | --enable-load \ | ||||
--enable-logfile \ | --enable-logfile \ | ||||
--enable-match_empty_counter \ | --enable-match_empty_counter \ | ||||
Show All 27 Lines | CONFIGURE_ARGS+=--enable-aggregation \ | ||||
--enable-threshold \ | --enable-threshold \ | ||||
--enable-unixsock \ | --enable-unixsock \ | ||||
--enable-uptime \ | --enable-uptime \ | ||||
--enable-users \ | --enable-users \ | ||||
--enable-uuid \ | --enable-uuid \ | ||||
--enable-write_graphite \ | --enable-write_graphite \ | ||||
--enable-write_log \ | --enable-write_log \ | ||||
--enable-zfs_arc \ | --enable-zfs_arc \ | ||||
.include <bsd.port.options.mk> | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 | |||||
PLIST_SUB+= DISK="@comment " | |||||
.else | |||||
CONFIGURE_ARGS+=--enable-disk | |||||
PLIST_SUB+= DISK="@comment " | |||||
.endif | |||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
SHEBANG_FILES= contrib/collection.cgi | SHEBANG_FILES= contrib/collection.cgi | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} 's/-Werror//' \ | @${REINPLACE_CMD} 's/-Werror//' \ | ||||
${WRKSRC}/configure.ac ${WRKSRC}/src/Makefile.am \ | ${WRKSRC}/configure.ac ${WRKSRC}/src/Makefile.am \ | ||||
${WRKSRC}/src/libcollectdclient/Makefile.am | ${WRKSRC}/src/libcollectdclient/Makefile.am | ||||
Show All 24 Lines |