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.4.2 | PORTVERSION= 5.5.0 | ||||
PORTREVISION= 3 | |||||
CATEGORIES= net-mgmt | CATEGORIES= net-mgmt | ||||
MASTER_SITES= http://collectd.org/files/ | MASTER_SITES= https://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:${PORTSDIR}/devel/glib20 | BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/glib-2.0.m4:${PORTSDIR}/devel/glib20 | ||||
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl | LIB_DEPENDS= libltdl.so:${PORTSDIR}/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 VIRT | OPTIONS_DEFINE= CGI DEBUG GCRYPT VIRT LOGSTASH | ||||
feld: alpha sort this | |||||
junovitchAuthorUnsubmitted Done Inline ActionsToo easy. Will address in next revision. junovitch: Too easy. Will address in next revision. | |||||
Not Done Inline ActionsDone. junovitch: Done. | |||||
OPTIONS_GROUP= INPUT OUTPUT | OPTIONS_GROUP= INPUT OUTPUT | ||||
OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP RIEMANN | OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP RIEMANN | ||||
OPTIONS_GROUP_INPUT= CURL DBI JSON MEMCACHEC MODBUS MONGODB MYSQL \ | OPTIONS_GROUP_INPUT= CURL IPMI DBI JSON MEMCACHEC MODBUS MONGODB MYSQL \ | ||||
NUTUPS PERL PGSQL PING PYTHON RABBITMQ REDIS \ | NUTUPS OLSRD ONEWIRE OPENLDAP PERL PGSQL PINBA PING \ | ||||
ROUTEROS SIGROK SNMP STATGRAB TOKYOTYRANT VARNISH \ | PYTHON RABBITMQ REDIS ROUTEROS SIGROK SNMP STATGRAB \ | ||||
XML XMMS | STATSD TOKYOTYRANT VARNISH XML XMMS ZOOKEEPER | ||||
Not Done Inline ActionsAlso updated for alphabetical ordering here. junovitch: Also updated for alphabetical ordering here. | |||||
CGI_DESC= Install collection.cgi (requires rrdtool) | CGI_DESC= Install collection.cgi (requires rrdtool) | ||||
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) | CURL_DESC= Enable curl-based plugins (apache, nginx, etc) | ||||
DEBUG_DESC= Enable debugging | DEBUG_DESC= Enable debugging | ||||
DBI_DESC= Enable dbi plugin | DBI_DESC= Enable dbi plugin | ||||
GCRYPT_DESC= Build with libgcrypt | GCRYPT_DESC= Build with libgcrypt | ||||
IPMI_DESC= Enable OpenIPMI plugin | |||||
JSON_DESC= Enable JSON plugins | JSON_DESC= Enable JSON plugins | ||||
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 MongoDB-based plugins | MONGODB_DESC= Enable MongoDB-based plugins | ||||
MYSQL_DESC= Enable mysql-based plugins | MYSQL_DESC= Enable mysql-based plugins | ||||
NOTIFYEMAIL_DESC= Enable notifications via email | NOTIFYEMAIL_DESC= Enable notifications via email | ||||
NOTIFYDESKTOP_DESC= Enable desktop notifications | NOTIFYDESKTOP_DESC= Enable desktop notifications | ||||
NUTUPS_DESC= Enable nut (ups) plugin | NUTUPS_DESC= Enable nut (ups) plugin | ||||
OLSRD_DESC= Enable olsrd plugin | |||||
ONEWIRE_DESC= Eanble onewire plugin (via owfs) | |||||
OPENLDAP_DESC= Enable OpenLDAP plugin | |||||
PERL_DESC= Enable libperl plugin and binding | PERL_DESC= Enable libperl plugin and binding | ||||
PGSQL_DESC= Enable postgresql-based plugins | PGSQL_DESC= Enable postgresql-based plugins | ||||
PINBA_DESC= Enable pinba plugin (via protobuf-c) | |||||
PING_DESC= Enable ping plugin | PING_DESC= Enable ping plugin | ||||
PYTHON_DESC= Enable python-based plugins | PYTHON_DESC= Enable python-based plugins | ||||
RABBITMQ_DESC= Enable rabbitmq-based plugins | RABBITMQ_DESC= Enable rabbitmq-based plugins | ||||
REDIS_DESC= Enable redis-based plugins | REDIS_DESC= Enable redis-based plugins | ||||
RIEMANN_DESC= Enable write_riemann plugin (via protobuf-c) | RIEMANN_DESC= Enable write_riemann plugin (via protobuf-c) | ||||
ROUTEROS_DESC= Enable routeros plugin | ROUTEROS_DESC= Enable routeros plugin | ||||
RRDTOOL_DESC= Enable rrdtool plugin (also rrdcached plugin) | RRDTOOL_DESC= Enable rrdtool plugin (also rrdcached plugin) | ||||
SIGROK_DESC= Enable sigrok plugin | SIGROK_DESC= Enable sigrok plugin | ||||
SNMP_DESC= Enable SNMP plugin | SNMP_DESC= Enable SNMP plugin | ||||
STATGRAB_DESC= Enable statgrab-based plugins (disk, interface, etc) | STATGRAB_DESC= Enable statgrab-based plugins (disk, interface, etc) | ||||
STATSD_DESC= Enable statsd plugin | |||||
TOKYOTYRANT_DESC= Enable tokyotyrant plugin | TOKYOTYRANT_DESC= Enable tokyotyrant plugin | ||||
VARNISH_DESC= Enable varnish 3.x cache statistics | VARNISH_DESC= Enable varnish 3.x cache statistics (does not build with varnish 4.x) | ||||
feldUnsubmitted Done Inline Actionscollectd 5.5 does now support varnish 4.x. A few changes need to happen to the port to allow it to build successfully, though. If you could get this working that would be cool. feld: collectd 5.5 does now support varnish 4.x. A few changes need to happen to the port to allow it… | |||||
junovitchAuthorUnsubmitted Done Inline ActionsIt would be cool. I'll look into it to see if they can coexist or must be enabled independently. junovitch: It would be cool. I'll look into it to see if they can coexist or must be enabled… | |||||
VIRT_DESC= Enable libvirt plugin (requires XML) | VIRT_DESC= Enable libvirt plugin (requires XML) | ||||
XML_DESC= Enable XML plugins | XML_DESC= Enable XML plugins | ||||
XMMS_DESC= Enable xmms plugin | XMMS_DESC= Enable xmms plugin | ||||
ZOOKEEPER_DESC= Enable zookeeper plugin | |||||
USE_RC_SUBR= collectd collectdmon | USE_RC_SUBR= collectd collectdmon | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CONFLICTS= collectd-4.[0-9]* | CONFLICTS= collectd-4.[0-9]* | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LIBS+= -L${LOCALBASE}/lib | LIBS+= -L${LOCALBASE}/lib | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
# NOTE: Plugins without dependencies are defined further down. | # NOTE: Plugins without dependencies are defined further down. | ||||
CONFIGURE_ARGS= --localstatedir=/var \ | CONFIGURE_ARGS= --localstatedir=/var \ | ||||
--disable-all-plugins \ | --disable-all-plugins \ | ||||
--disable-static \ | --disable-static \ | ||||
--without-amqp \ | --without-amqp \ | ||||
--without-java \ | --without-java \ | ||||
--without-libaquaero5 \ | --without-libaquaero5 \ | ||||
--without-libganglia \ | --without-libganglia \ | ||||
--without-libiptc \ | --without-libiptc \ | ||||
--without-libjvm \ | --without-libjvm \ | ||||
--without-liblvm2app \ | |||||
--without-libkstat \ | --without-libkstat \ | ||||
--without-libldap \ | |||||
--without-libmnl \ | |||||
--without-libmodbus \ | --without-libmodbus \ | ||||
--without-libnetlink \ | --without-libnetlink \ | ||||
--without-libnetapp \ | --without-libnetapp \ | ||||
--without-libopenipmi \ | |||||
--without-libowcapi \ | --without-libowcapi \ | ||||
--without-libperfstat \ | --without-libperfstat \ | ||||
--without-librdkafka \ | |||||
--without-libsensors \ | --without-libsensors \ | ||||
--without-libvarnish \ | |||||
--without-lvm \ | --without-lvm \ | ||||
--without-mic \ | --without-mic \ | ||||
--without-oracle | --without-oracle \ | ||||
--disable-turbostat | |||||
# NOTE: Plugins without external dependencies | # NOTE: Plugins without external dependencies | ||||
CONFIGURE_ARGS+= \ | CONFIGURE_ARGS+= \ | ||||
--enable-aggregation \ | --enable-aggregation \ | ||||
--enable-apcups \ | --enable-apcups \ | ||||
--enable-contextswitch \ | --enable-contextswitch \ | ||||
--enable-cpu \ | --enable-cpu \ | ||||
--enable-csv \ | --enable-csv \ | ||||
--enable-df \ | --enable-df \ | ||||
--enable-dns \ | --enable-dns \ | ||||
--enable-email \ | --enable-email \ | ||||
--enable-exec \ | --enable-exec \ | ||||
--enable-fhcount \ | |||||
--enable-filecount \ | --enable-filecount \ | ||||
--enable-load \ | --enable-load \ | ||||
--enable-logfile \ | --enable-logfile \ | ||||
--enable-match_empty_counter \ | --enable-match_empty_counter \ | ||||
--enable-match_hashed \ | --enable-match_hashed \ | ||||
--enable-match_regex \ | --enable-match_regex \ | ||||
--enable-match_timediff \ | --enable-match_timediff \ | ||||
--enable-match_value \ | --enable-match_value \ | ||||
--enable-mbmon \ | --enable-mbmon \ | ||||
--enable-memcached \ | --enable-memcached \ | ||||
--enable-memory \ | --enable-memory \ | ||||
--enable-network \ | --enable-network \ | ||||
--enable-ntpd \ | --enable-ntpd \ | ||||
--enable-openvpn \ | --enable-openvpn \ | ||||
--enable-powerdns \ | --enable-powerdns \ | ||||
--enable-pf \ | --enable-pf \ | ||||
--enable-processes \ | --enable-processes \ | ||||
--enable-statsd \ | --enable-statsd \ | ||||
--enable-swap \ | --enable-swap \ | ||||
--enable-syslog \ | --enable-syslog \ | ||||
--enable-table \ | --enable-table \ | ||||
--enable-tail \ | --enable-tail \ | ||||
--enable-tail_csv \ | |||||
--enable-target_notification \ | --enable-target_notification \ | ||||
--enable-target_replace \ | --enable-target_replace \ | ||||
--enable-target_scale \ | --enable-target_scale \ | ||||
--enable-target_set \ | --enable-target_set \ | ||||
--enable-target_v5upgrade \ | --enable-target_v5upgrade \ | ||||
--enable-tcpconns \ | --enable-tcpconns \ | ||||
--enable-teamspeak2 \ | --enable-teamspeak2 \ | ||||
--enable-ted \ | --enable-ted \ | ||||
--enable-threshold \ | --enable-threshold \ | ||||
--enable-unixsock \ | --enable-unixsock \ | ||||
--enable-uptime \ | --enable-uptime \ | ||||
--enable-uuid \ | --enable-uuid \ | ||||
--enable-write_graphite \ | --enable-write_graphite \ | ||||
--enable-zfs_arc | --enable-write_log \ | ||||
--enable-zfs_arc \ | |||||
.if ${PORT_OPTIONS:MCGI} | .if ${PORT_OPTIONS:MCGI} | ||||
RUN_DEPENDS+= p5-URI>=0:${PORTSDIR}/net/p5-URI \ | RUN_DEPENDS+= p5-URI>=0:${PORTSDIR}/net/p5-URI \ | ||||
p5-CGI>=0:${PORTSDIR}/www/p5-CGI \ | p5-CGI>=0:${PORTSDIR}/www/p5-CGI \ | ||||
p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \ | p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \ | ||||
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser | p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser | ||||
PLIST_SUB+= CGI="" | PLIST_SUB+= CGI="" | ||||
.if empty(PORT_OPTIONS:MRRDTOOL) | .if empty(PORT_OPTIONS:MRRDTOOL) | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
.if ${PORT_OPTIONS:MGCRYPT} | .if ${PORT_OPTIONS:MGCRYPT} | ||||
LIB_DEPENDS+= libgcrypt.so:${PORTSDIR}/security/libgcrypt | LIB_DEPENDS+= libgcrypt.so:${PORTSDIR}/security/libgcrypt | ||||
CONFIGURE_ARGS+=--with-libgcrypt=${LOCALBASE} | CONFIGURE_ARGS+=--with-libgcrypt=${LOCALBASE} | ||||
LIBS+= -lgcrypt | LIBS+= -lgcrypt | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libgcrypt | CONFIGURE_ARGS+=--without-libgcrypt | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MIPMI} | |||||
LIB_DEPENDS+= libOpenIPMI.so:${PORTSDIR}/sysutils/openipmi | |||||
CONFIGURE_ARGS+=--enable-ipmi | |||||
PLIST_SUB+= IPMI="" | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-ipmi | |||||
PLIST_SUB+= IPMI="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MJSON} | .if ${PORT_OPTIONS:MJSON} | ||||
LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl | LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl | ||||
CONFIGURE_ARGS+=--with-libyajl=${LOCALBASE} | CONFIGURE_ARGS+=--with-libyajl=${LOCALBASE} | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libyajl | CONFIGURE_ARGS+=--without-libyajl | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MLOGSTASH} | |||||
CONFIGURE_ARGS+=--enable-log_logstash | |||||
PLIST_SUB+= LOGSTASH="" | |||||
.if empty(PORT_OPTIONS:MJSON) | |||||
IGNORE= LOGSTASH requires JSON. Either select JSON or deselect LOGSTASH | |||||
.endif | |||||
.else | |||||
PLIST_SUB+= LOGSTASH="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MMEMCACHEC} | .if ${PORT_OPTIONS:MMEMCACHEC} | ||||
LIB_DEPENDS+= libmemcached.so:${PORTSDIR}/databases/libmemcached | LIB_DEPENDS+= libmemcached.so:${PORTSDIR}/databases/libmemcached | ||||
CONFIGURE_ARGS+=--with-libmemcached=${LOCALBASE} --enable-memcachec | CONFIGURE_ARGS+=--with-libmemcached=${LOCALBASE} --enable-memcachec | ||||
PLIST_SUB+= MEMCACHEC="" | PLIST_SUB+= MEMCACHEC="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libmemcached | CONFIGURE_ARGS+=--without-libmemcached | ||||
PLIST_SUB+= MEMCACHEC="@comment " | PLIST_SUB+= MEMCACHEC="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MMODBUS} | .if ${PORT_OPTIONS:MMODBUS} | ||||
LIB_DEPENDS+= libmodbus.so:${PORTSDIR}/comms/libmodbus | LIB_DEPENDS+= libmodbus.so:${PORTSDIR}/comms/libmodbus | ||||
CONFIGURE_ARGS+=--enable-modbus | CONFIGURE_ARGS+=--with-libmodbus=${LOCALBASE} --enable-modbus | ||||
PLIST_SUB+= MODBUS="" | PLIST_SUB+= MODBUS="" | ||||
.else | .else | ||||
PLIST_SUB+= MODBUS="@comment " | PLIST_SUB+= MODBUS="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MMONGODB} | .if ${PORT_OPTIONS:MMONGODB} | ||||
LIB_DEPENDS+= libmongoc.so:${PORTSDIR}/devel/mongo-c-driver | LIB_DEPENDS+= libmongoc.so:${PORTSDIR}/devel/mongo-c-driver | ||||
CONFIGURE_ARGS+=--with-libmongoc=${LOCALBASE} \ | CONFIGURE_ARGS+=--with-libmongoc=${LOCALBASE} \ | ||||
Show All 38 Lines | |||||
LIB_DEPENDS+= libupsclient.so:${PORTSDIR}/sysutils/nut | LIB_DEPENDS+= libupsclient.so:${PORTSDIR}/sysutils/nut | ||||
CONFIGURE_ARGS+=--with-upsclient=${LOCALBASE} --enable-nut | CONFIGURE_ARGS+=--with-upsclient=${LOCALBASE} --enable-nut | ||||
PLIST_SUB+= NUTUPS="" | PLIST_SUB+= NUTUPS="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libupsclient --disable-nut | CONFIGURE_ARGS+=--without-libupsclient --disable-nut | ||||
PLIST_SUB+= NUTUPS="@comment " | PLIST_SUB+= NUTUPS="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MOLSRD} | |||||
CONFIGURE_ARGS+=--enable-olsrd | |||||
PLIST_SUB+= OLSRD="" | |||||
.else | |||||
CONFIGURE_ARGS+=--enable-olsrd | |||||
PLIST_SUB+= OLSRD="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MONEWIRE} | |||||
LIB_DEPENDS+= libow.so:${PORTSDIR}/comms/owfs | |||||
CONFIGURE_ARGS+=--with-libowcapi=${LOCALBASE} --enable-onewire | |||||
PLIST_SUB+= ONEWIRE="" | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-onewire | |||||
PLIST_SUB+= ONEWIRE="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MOPENLDAP} | |||||
USE_OPENLDAP= yes | |||||
CONFIGURE_ARGS+=--with-libldap=${LOCALBASE} --enable-openldap | |||||
PLIST_SUB+= OPENLDAP="" | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-openldap | |||||
PLIST_SUB+= OPENLDAP="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPERL} | .if ${PORT_OPTIONS:MPERL} | ||||
USES+= perl5 | USES+= perl5 | ||||
CONFIGURE_ARGS+=--with-perl=${PERL} --with-perl-bindings --enable-perl | CONFIGURE_ARGS+=--with-perl=${PERL} --with-perl-bindings --enable-perl | ||||
PLIST_SUB+= PERL="" | PLIST_SUB+= PERL="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-perl --without-perl-bindings --disable-perl | CONFIGURE_ARGS+=--without-perl --without-perl-bindings --disable-perl | ||||
PLIST_SUB+= PERL="@comment " | PLIST_SUB+= PERL="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MPGSQL} | .if ${PORT_OPTIONS:MPGSQL} | ||||
USES+= pgsql | USES+= pgsql | ||||
CONFIGURE_ARGS+=--with-postgresql=${LOCALBASE} --enable-postgresql --with-libpq | CONFIGURE_ARGS+=--with-postgresql=${LOCALBASE} --enable-postgresql --with-libpq | ||||
PLIST_SUB+= PGSQL="" | PLIST_SUB+= PGSQL="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-postgresql --disable-postgresql --without-libpq | CONFIGURE_ARGS+=--without-postgresql --disable-postgresql --without-libpq | ||||
PLIST_SUB+= PGSQL="@comment " | PLIST_SUB+= PGSQL="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MPINBA} | |||||
LIB_DEPENDS+= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c | |||||
CONFIGURE_ARGS+=--enable-pinba | |||||
PLIST_SUB+= PINBA="" | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-pinba | |||||
PLIST_SUB+= PINBA="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPING} | .if ${PORT_OPTIONS:MPING} | ||||
LIB_DEPENDS+= liboping.so:${PORTSDIR}/net/liboping | LIB_DEPENDS+= liboping.so:${PORTSDIR}/net/liboping | ||||
CONFIGURE_ARGS+=--with-liboping=${LOCALBASE} --enable-ping | CONFIGURE_ARGS+=--with-liboping=${LOCALBASE} --enable-ping | ||||
PLIST_SUB+= PING="" | PLIST_SUB+= PING="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-liboping --disable-ping | CONFIGURE_ARGS+=--without-liboping --disable-ping | ||||
PLIST_SUB+= PING="@comment " | PLIST_SUB+= PING="@comment " | ||||
.endif | .endif | ||||
Show All 14 Lines | |||||
PLIST_SUB+= RABBITMQ="" | PLIST_SUB+= RABBITMQ="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-librabbitmq \ | CONFIGURE_ARGS+=--without-librabbitmq \ | ||||
--disable-rabbitmq | --disable-rabbitmq | ||||
PLIST_SUB+= RABBITMQ="@comment " | PLIST_SUB+= RABBITMQ="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MREDIS} | .if ${PORT_OPTIONS:MREDIS} | ||||
LIB_DEPENDS+= libcredis.so:${PORTSDIR}/databases/credis | LIB_DEPENDS+= libhiredis.so:${PORTSDIR}/databases/hiredis | ||||
CONFIGURE_ARGS+=--with-libcredis=${LOCALBASE} \ | CONFIGURE_ARGS+=--with-libhiredis=${LOCALBASE} \ | ||||
--enable-redis \ | --enable-redis \ | ||||
--enable-write_redis | --enable-write_redis | ||||
PLIST_SUB+= REDIS="" | PLIST_SUB+= REDIS="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libcredis \ | CONFIGURE_ARGS+=--without-libcredis \ | ||||
--disable-redis \ | --disable-redis \ | ||||
--disable-write_redis | --disable-write_redis | ||||
PLIST_SUB+= REDIS="@comment " | PLIST_SUB+= REDIS="@comment " | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
.else | .else | ||||
PLIST_SUB+= USERS="@comment " | PLIST_SUB+= USERS="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSIGROK} | .if ${PORT_OPTIONS:MSIGROK} | ||||
USE_GNOME+= glib20 | USE_GNOME+= glib20 | ||||
LIB_DEPENDS+= libsigrok.so:${PORTSDIR}/devel/libsigrok | LIB_DEPENDS+= libsigrok.so:${PORTSDIR}/devel/libsigrok | ||||
CONFIGURE_ARGS+=--with-libsigrok --enable-sigrok | CONFIGURE_ARGS+=--with-libsigrok --enable-sigrok | ||||
PLIST_SUB+= SIGROK="" | PLIST_SUB+= SIGROK="" | ||||
Not Done Inline ActionsI found when doing more QA that the SIGROK option failed to build as well since it could find GVarient data types. I added this to help with that. junovitch: I found when doing more QA that the SIGROK option failed to build as well since it could find… | |||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-sigrok | CONFIGURE_ARGS+=--disable-sigrok | ||||
PLIST_SUB+= SIGROK="@comment " | PLIST_SUB+= SIGROK="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSNMP} | .if ${PORT_OPTIONS:MSNMP} | ||||
LIB_DEPENDS+= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp | LIB_DEPENDS+= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp | ||||
CONFIGURE_ARGS+=--with-libnetsnmp --enable-snmp | CONFIGURE_ARGS+=--with-libnetsnmp --enable-snmp | ||||
PLIST_SUB+= SNMP="" | PLIST_SUB+= SNMP="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libnetsnmp | CONFIGURE_ARGS+=--without-libnetsnmp | ||||
PLIST_SUB+= SNMP="@comment " | PLIST_SUB+= SNMP="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSTATSD} | |||||
CONFIGURE_ARGS+=--enable-statsd | |||||
PLIST_SUB+= STATSD="" | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-statsd | |||||
PLIST_SUB+= STATSD="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MTOKYOTYRANT} | .if ${PORT_OPTIONS:MTOKYOTYRANT} | ||||
LIB_DEPENDS+= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant | LIB_DEPENDS+= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant | ||||
CONFIGURE_ARGS+=--with-libtokyotyrant=${LOCALBASE} --enable-tokyotyrant | CONFIGURE_ARGS+=--with-libtokyotyrant=${LOCALBASE} --enable-tokyotyrant | ||||
PLIST_SUB+= TOKYOTYRANT="" | PLIST_SUB+= TOKYOTYRANT="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libtokyotyrant --disable-tokyotyrant | CONFIGURE_ARGS+=--without-libtokyotyrant --disable-tokyotyrant | ||||
PLIST_SUB+= TOKYOTYRANT="@comment " | PLIST_SUB+= TOKYOTYRANT="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MVARNISH} | .if ${PORT_OPTIONS:MVARNISH} | ||||
LIB_DEPENDS+= libvarnishapi.so:${PORTSDIR}/www/varnish | BROKEN= Only libvarnish 3.x support. Does not build with libvarnish4 | ||||
LIB_DEPENDS+= libvarnishapi.so:${PORTSDIR}/www/varnish4 | |||||
CONFIGURE_ARGS+=--with-libvarnish=${LOCALBASE} --enable-varnish | CONFIGURE_ARGS+=--with-libvarnish=${LOCALBASE} --enable-varnish | ||||
PLIST_SUB+= VARNISH="" | PLIST_SUB+= VARNISH="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libvarnish | CONFIGURE_ARGS+=--without-libvarnish | ||||
PLIST_SUB+= VARNISH="@comment " | PLIST_SUB+= VARNISH="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MVIRT} | .if ${PORT_OPTIONS:MVIRT} | ||||
.if empty(PORT_OPTIONS:MXML) | .if empty(PORT_OPTIONS:MXML) | ||||
IGNORE= VIRT requires XML. Either select XML or deselect VIRT. | IGNORE= VIRT requires XML. Either select XML or deselect VIRT. | ||||
.endif | .endif | ||||
LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt | LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt | ||||
CONFIGURE_ARGS+=--enable-libvirt | CONFIGURE_ARGS+=--enable-virt | ||||
PLIST_SUB+= VIRT="" | PLIST_SUB+= VIRT="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libvirt --disable-libvirt | CONFIGURE_ARGS+=--without-virt --disable-virt | ||||
PLIST_SUB+= VIRT="@comment " | PLIST_SUB+= VIRT="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MXML} | .if ${PORT_OPTIONS:MXML} | ||||
LIB_DEPENDS+= libxml2.so:${PORTSDIR}/textproc/libxml2 | LIB_DEPENDS+= libxml2.so:${PORTSDIR}/textproc/libxml2 | ||||
CONFIGURE_ARGS+=--with-libxml2=${LOCALBASE} | CONFIGURE_ARGS+=--with-libxml2=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MXMMS} | .if ${PORT_OPTIONS:MXMMS} | ||||
LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms | LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms | ||||
CONFIGURE_ARGS+=--with-libxmms=${LOCALBASE} --enable-xmms | CONFIGURE_ARGS+=--with-libxmms=${LOCALBASE} --enable-xmms | ||||
CFLAGS+= `xmms-config --cflags` | CFLAGS+= `xmms-config --cflags` | ||||
PLIST_SUB+= XMMS="" | PLIST_SUB+= XMMS="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--without-libxmms --disable-xmms | CONFIGURE_ARGS+=--without-libxmms --disable-xmms | ||||
PLIST_SUB+= XMMS="@comment " | PLIST_SUB+= XMMS="@comment " | ||||
.endif | |||||
.if ${PORT_OPTIONS:MZOOKEEPER} | |||||
LIB_DEPENDS+= libzookeeper_mt.so:${PORTSDIR}/devel/libzookeeper | |||||
CONFIGURE_ARGS+=--with-libzookeeper=${LOCALBASE} --enable-zookeeper | |||||
PLIST_SUB+= ZOOKEEPER="" | |||||
.else | |||||
CONFIGURE_ARGS+=--without-libzookeeper --disable-zookeeper | |||||
PLIST_SUB+= ZOOKEEPER="@comment " | |||||
.endif | .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 \ | ||||
Show All 24 Lines |
alpha sort this