svn commit: r318238 - in head/net-mgmt: collectd collectd5 collectd5/files
Boris Samorodov
bsam at FreeBSD.org
Wed May 15 11:38:22 UTC 2013
Author: bsam
Date: Wed May 15 11:38:21 2013
New Revision: 318238
URL: http://svnweb.freebsd.org/changeset/ports/318238
Log:
. add new option MODBUS (off by default); [1]
. add a mandatory dependency upon libinotify; [2]
. bump PORTREVISION. [2]
while I'm here:
. pet portlint: remove whitespace before end of line;
. add a mandatory dependency upon libinotify to the accompanying
port (net-mgmt/collectd) and bump PORTREVISION.
PR: ports/178637 [1]
ports/178634 [2]
Submitted by: bsam (me)
Approved by: ports at bsdserwis.com (maintainer)
Added:
head/net-mgmt/collectd5/files/patch-src_modbus.c (contents, props changed)
Modified:
head/net-mgmt/collectd/Makefile
head/net-mgmt/collectd5/Makefile
head/net-mgmt/collectd5/pkg-plist
Modified: head/net-mgmt/collectd/Makefile
==============================================================================
--- head/net-mgmt/collectd/Makefile Wed May 15 11:07:39 2013 (r318237)
+++ head/net-mgmt/collectd/Makefile Wed May 15 11:38:21 2013 (r318238)
@@ -3,13 +3,15 @@
PORTNAME= collectd
PORTVERSION= 4.10.8
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/
MAINTAINER= ports at bsdserwis.com
COMMENT= Systems & network statistics collection daemon
+LIB_DEPENDS= notify:${PORTSDIR}/devel/libnotify
+
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf autoheader automake libltdl
Modified: head/net-mgmt/collectd5/Makefile
==============================================================================
--- head/net-mgmt/collectd5/Makefile Wed May 15 11:07:39 2013 (r318237)
+++ head/net-mgmt/collectd5/Makefile Wed May 15 11:38:21 2013 (r318238)
@@ -3,13 +3,15 @@
PORTNAME= collectd
PORTVERSION= 5.2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/
MAINTAINER= ports at bsdserwis.com
COMMENT= Systems & network statistics collection daemon
+LIB_DEPENDS= notify:${PORTSDIR}/devel/libnotify
+
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
@@ -22,7 +24,7 @@ OPTIONS_DEFINE= CGI BIND DEBUG GCRYPT V
OPTIONS_GROUP= INPUT OUTPUT
OPTIONS_GROUP_OUTPUT= RRDTOOL RRDCACHED WRITE_GRAPHITE WRITE_HTTP NOTIFYEMAIL
OPTIONS_GROUP_INPUT= APACHE APCUPS CURL CURL_JSON CURL_XML DBI DISK GCRYPT \
- NUTUPS INTERFACE IPMI MBMON MEMCACHED MYSQL NGINX \
+ NUTUPS INTERFACE IPMI MBMON MEMCACHED MODBUS MYSQL NGINX \
OPENVPN PDNS PGSQL PING PYTHON ROUTEROS SNMP TABLE \
TOKYOTYRANT VARNISH XMMS
@@ -46,6 +48,7 @@ INTERFACE_DESC= Network interfaces (lib
IPMI_DESC= IPMI plugin (openipmi)
MBMON_DESC= MBMon
MEMCACHED_DESC= Memcached
+MODBUS_DESC= Modbus support via libmodbus
MYSQL_DESC= MySQL
NOTIFYEMAIL_DESC= Email notifications (libesmtp)
NGINX_DESC= Nginx
@@ -111,8 +114,6 @@ CONFIGURE_ARGS= --localstatedir=/var \
--disable-match_timediff \
--disable-match_value \
--disable-memcachec \
- --disable-modbus \
- --without-libmodbus \
--disable-multimeter \
--disable-netapp \
--without-libnetapp \
@@ -289,6 +290,15 @@ CONFIGURE_ARGS+=--disable-memcached --wi
PLIST_SUB+= MEMCACHED="@comment "
.endif
+.if ${PORT_OPTIONS:MMODBUS}
+CONFIGURE_ARGS+=--enable-modbus
+LIB_DEPENDS+= modbus:${PORTSDIR}/comms/libmodbus
+PLIST_SUB+= MODBUS=""
+.else
+CONFIGURE_ARGS+=--disable-modbus
+PLIST_SUB+= MODBUS="@comment "
+.endif
+
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
CONFIGURE_ARGS+=--enable-mysql
Added: head/net-mgmt/collectd5/files/patch-src_modbus.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/collectd5/files/patch-src_modbus.c Wed May 15 11:38:21 2013 (r318238)
@@ -0,0 +1,12 @@
+--- src/modbus.c.orig 2013-01-27 17:47:18.246255000 +0400
++++ src/modbus.c 2013-05-14 18:40:05.000000000 +0400
+@@ -25,6 +25,9 @@
+ #include "plugin.h"
+ #include "configfile.h"
+
++/* FreeBSD needs this */
++#include <sys/socket.h>
++
+ #include <netdb.h>
+
+ #include <modbus/modbus.h>
Modified: head/net-mgmt/collectd5/pkg-plist
==============================================================================
--- head/net-mgmt/collectd5/pkg-plist Wed May 15 11:07:39 2013 (r318237)
+++ head/net-mgmt/collectd5/pkg-plist Wed May 15 11:38:21 2013 (r318238)
@@ -56,6 +56,8 @@ lib/collectd/load.la
lib/collectd/load.so
lib/collectd/logfile.la
lib/collectd/logfile.so
+%%MODBUS%%lib/collectd/modbus.la
+%%MODBUS%%lib/collectd/modbus.so
%%MBMON%%lib/collectd/mbmon.la
%%MBMON%%lib/collectd/mbmon.so
%%MEMCACHED%%lib/collectd/memcached.la
More information about the svn-ports-head
mailing list