ports/184458: net-mgmt/collectd5 does not support write_riemann plugin
Krzysztof Stryjek
ports at bsdserwis.com
Fri Dec 20 18:50:01 UTC 2013
The following reply was made to PR ports/184458; it has been noted by GNATS.
From: Krzysztof Stryjek <ports at bsdserwis.com>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/184458: net-mgmt/collectd5 does not support write_riemann
plugin
Date: Fri, 20 Dec 2013 19:40:25 +0100
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Hello,
I've attached a patch to add a write_riemann plugin. I've checked it on
tinderbox and there were no errors. So I hope it will be added to ports
soonly :-)))
Greetings,
--
Krzysztof Stryjek
UNIX administrator/Juniper Networks Specialist
email: wtp (at) bsdserwis (dot) com
http://www.linkedin.com/in/KrzysztofStryjek
GPG fingerprint: 8BD7 40CE 8994 0BBE CE6C 91CD 1292 8959 DC61 0E76
In theory, there is no difference between theory and practice.
In practice, there is.
--vtzGhvizbBRQ85DL
Content-Type: text/x-diff; charset=iso-8859-2
Content-Disposition: attachment; filename="collectd5.patch"
diff -ruN collectd5/Makefile collectd5.new/Makefile
--- collectd5/Makefile 2013-12-18 00:54:04.000000000 +0100
+++ collectd5.new/Makefile 2013-12-20 18:45:57.000000000 +0100
@@ -3,7 +3,7 @@
PORTNAME= collectd
PORTVERSION= 5.4.0
-PORTREVISION= 2
+PORTREVISION= 3
PKGNAMESUFFIX= 5
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/
@@ -19,7 +19,7 @@
OPTIONS_DEFINE= CGI DEBUG GCRYPT VIRT
OPTIONS_GROUP= INPUT OUTPUT
-OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP
+OPTIONS_GROUP_OUTPUT= RRDTOOL NOTIFYEMAIL NOTIFYDESKTOP RIEMANN
OPTIONS_GROUP_INPUT= CURL DBI JSON MEMCACHEC MODBUS MYSQL \
NUTUPS PGSQL PING PYTHON RABBITMQ REDIS \
ROUTEROS SNMP STATGRAB TOKYOTYRANT XML XMMS
@@ -41,6 +41,7 @@
PYTHON_DESC= Enable python-based plugins
RABBITMQ_DESC= Enable rabbitmq-based plugins
REDIS_DESC= Enable redis-based plugins
+RIEMANN_DESC= Enable write_riemann plugin (via protobuf-c)
ROUTEROS_DESC= Enable routeros plugin
RRDTOOL_DESC= Enable rrdtool plugin (also rrdcached plugin)
SNMP_DESC= Enable SNMP plugin
@@ -320,6 +321,15 @@
PLIST_SUB+= REDIS="@comment "
.endif
+.if ${PORT_OPTIONS:MRIEMANN}
+LIB_DEPENDS+= protobuf-c:${PORTSDIR}/devel/protobuf-c
+CONFIGURE_ARGS+=--enable-write_riemann
+PLIST_SUB+= RIEMANN=""
+.else
+CONFIGURE_ARGS+=--disable-write_riemann
+PLIST_SUB+= RIEMANN="@comment "
+.endif
+
.if ${PORT_OPTIONS:MROUTEROS}
LIB_DEPENDS+= routeros:${PORTSDIR}/net/librouteros
CONFIGURE_ARGS+=--with-librouteros=${LOCALBASE} --enable-routeros
diff -ruN collectd5/pkg-plist collectd5.new/pkg-plist
--- collectd5/pkg-plist 2013-10-04 01:37:48.000000000 +0200
+++ collectd5.new/pkg-plist 2013-12-20 16:23:21.000000000 +0100
@@ -142,6 +142,9 @@
%%REDIS%%lib/collectd/redis.a
%%REDIS%%lib/collectd/redis.so
%%REDIS%%lib/collectd/redis.la
+%%RIEMANN%%lib/collectd/write_riemann.a
+%%RIEMANN%%lib/collectd/write_riemann.so
+%%RIEMANN%%lib/collectd/write_riemann.la
%%ROUTEROS%%lib/collectd/routeros.a
%%ROUTEROS%%lib/collectd/routeros.so
%%ROUTEROS%%lib/collectd/routeros.la
--vtzGhvizbBRQ85DL--
More information about the freebsd-ports-bugs
mailing list