From 30588c5645755db3fee0ff1cc95410ee3a4c366a Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Fri, 24 May 2013 10:10:16 +0000 Subject: [PATCH] - Update to 4.10.9 [1] - Add option for notify email [1] - Fix libnotify dependency [1] - Add LICENSE (GPLv2) - Remove options descriptions found in bsd.options.desc.mk - Rename VIRT option to LIBVIRT PR: ports/178825 [1] Submitted by: Krzysztof Stryjek (maintainer) Approved by: culot (mentor) --- net-mgmt/collectd/Makefile | 36 ++++++++++++++++++++---------------- net-mgmt/collectd/distinfo | 4 ++-- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/net-mgmt/collectd/Makefile b/net-mgmt/collectd/Makefile index f48e5f210676..e5b92c3686ff 100644 --- a/net-mgmt/collectd/Makefile +++ b/net-mgmt/collectd/Makefile @@ -2,34 +2,31 @@ # $FreeBSD$ PORTNAME= collectd -PORTVERSION= 4.10.8 -PORTREVISION= 5 +PORTVERSION= 4.10.9 CATEGORIES= net-mgmt MASTER_SITES= http://collectd.org/files/ MAINTAINER= ports@bsdserwis.com COMMENT= Systems & network statistics collection daemon -LIB_DEPENDS= notify:${PORTSDIR}/devel/libnotify +LICENSE= GPLv2 USE_GMAKE= yes GNU_CONFIGURE= yes USE_AUTOTOOLS= autoconf autoheader automake libltdl WANT_GNOME= yes -OPTIONS_DEFINE= CGI BIND DEBUG GCRYPT VIRT +OPTIONS_DEFINE= CGI BIND DEBUG GCRYPT LIBVIRT OPTIONS_GROUP= INPUT OUTPUT -OPTIONS_GROUP_OUTPUT= RRDTOOL RRDCACHED WRITE_HTTP +OPTIONS_GROUP_OUTPUT= RRDTOOL RRDCACHED WRITE_HTTP NOTIFYEMAIL OPTIONS_GROUP_INPUT= APACHE APCUPS CURL CURL_JSON CURL_XML DBI DISK \ - NUTUPS INTERFACE MBMON MEMCACHED MYSQL NGINX OPENVPN \ - PDNS PGSQL PING PYTHON ROUTEROS SNMP TOKYOTYRANT XMMS + NUTUPS INTERFACE MBMON MEMCACHED MYSQL NGINX \ + OPENVPN PDNS PGSQL PING PYTHON ROUTEROS SNMP \ + TOKYOTYRANT XMMS OPTIONS_DEFAULT= BIND INTERFACE PING SNMP RRDTOOL RRDCACHED CGI_DESC= Install collection.cgi (requires RRDTOOL) BIND_DESC= Enable BIND 9.5+ statistics -DEBUG_DESC= Enable debugging -GCRYPT_DESC= Build with libgcrypt -VIRT_DESC= Build with libvirt # INPUT APACHE_DESC= Apache mod_status (libcurl) APCUPS_DESC= APC UPS (apcupsd) @@ -42,15 +39,12 @@ NUTUPS_DESC= NUT UPS daemon INTERFACE_DESC= Network interfaces (libstatgrab) MBMON_DESC= MBMon MEMCACHED_DESC= Memcached -MYSQL_DESC= MySQL NGINX_DESC= Nginx +NOTIFYEMAIL_DESC= Email notifications (libesmtp, libnotify) OPENVPN_DESC= OpenVPN statistics PDNS_DESC= PowerDNS -PGSQL_DESC= PostgreSQL PING_DESC= Network latency (liboping) -PYTHON_DESC= Python plugin ROUTEROS_DESC= RouterOS plugin -SNMP_DESC= SNMP TOKYOTYRANT_DESC= Tokyotyrant database XMMS_DESC= XMMS # OUTPUT @@ -108,7 +102,6 @@ CONFIGURE_ARGS= --localstatedir=/var \ --disable-netlink \ --disable-nfs \ --disable-notify_desktop \ - --disable-notify_email \ --disable-olsrd \ --disable-onewire \ --disable-oracle \ @@ -297,6 +290,17 @@ CONFIGURE_ARGS+=--disable-nginx PLIST_SUB+= NGINX="@comment " .endif +.if ${PORT_OPTIONS:MNOTIFYEMAIL} +LIB_DEPENDS+= esmtp:${PORTSDIR}/mail/libesmtp +LIB_DEPENDS+= notify:${PORTSDIR}/devel/libnotify +CONFIGURE_ARGS+=--enable-notify_email +CONFIGURE_ARGS+=--with-libesmtp=${PREFIX} +PLIST_SUB+= NOTIFYEMAIL="" +.else +CONFIGURE_ARGS+=--disable-notify_email +PLIST_SUB+= NOTIFYEMAIL="@comment " +.endif + .if ${PORT_OPTIONS:MOPENVPN} CONFIGURE_ARGS+=--enable-openvpn RUN_DEPENDS+= ${LOCALBASE}/sbin/openvpn:${PORTSDIR}/security/openvpn @@ -387,7 +391,7 @@ CONFIGURE_ARGS+=--disable-tokyotyrant --without-libtokyotyrant PLIST_SUB+= TOKYOTYRANT="@comment " .endif -.if ${PORT_OPTIONS:MVIRT} +.if ${PORT_OPTIONS:MLIBVIRT} CONFIGURE_ARGS+=--enable-libvirt LIB_DEPENDS+= virt.1000:${PORTSDIR}/devel/libvirt PLIST_SUB+= VIRT="" diff --git a/net-mgmt/collectd/distinfo b/net-mgmt/collectd/distinfo index 11851584e684..11cde3f9a7dc 100644 --- a/net-mgmt/collectd/distinfo +++ b/net-mgmt/collectd/distinfo @@ -1,2 +1,2 @@ -SHA256 (collectd-4.10.8.tar.gz) = 018e28747e6dd1c581ec61636e178b067fee88c2cc72de0e6c1a801478f00969 -SIZE (collectd-4.10.8.tar.gz) = 1644712 +SHA256 (collectd-4.10.9.tar.gz) = 6fd43f04ed009cce7fd16296eb348ce78b859d8f32de48a10f1af8a09b3151d9 +SIZE (collectd-4.10.9.tar.gz) = 1602028