Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Nov 2017 12:18:34 +0000 (UTC)
From:      Mahdi Mokhtari <mmokhi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453732 - head/net-mgmt/netdata
Message-ID:  <201711081218.vA8CIYVD048721@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmokhi
Date: Wed Nov  8 12:18:34 2017
New Revision: 453732
URL: https://svnweb.freebsd.org/changeset/ports/453732

Log:
  net-mgmt/netdata: Add option for freeipmi support
  
  PR:		223460
  Reported by:	Bryce Edwards <bryce@bryce.net>
  Reviewed by:	mat (mentor)
  Approved by:	mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D12975

Modified:
  head/net-mgmt/netdata/Makefile
  head/net-mgmt/netdata/pkg-plist

Modified: head/net-mgmt/netdata/Makefile
==============================================================================
--- head/net-mgmt/netdata/Makefile	Wed Nov  8 11:53:49 2017	(r453731)
+++ head/net-mgmt/netdata/Makefile	Wed Nov  8 12:18:34 2017	(r453732)
@@ -4,6 +4,7 @@
 PORTNAME=	netdata
 PORTVERSION=	1.8.0
 DISTVERSIONPREFIX=v
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	mmokhi@FreeBSD.org
@@ -14,6 +15,8 @@ LICENSE=	GPLv3
 BUILD_DEPENDS=	${LOCALBASE}/include/uuid/uuid.h:misc/e2fsprogs-libuuid
 LIB_DEPENDS=	libuuid.so:misc/e2fsprogs-libuuid
 
+USES=		autoreconf pathfix pkgconfig:both python shebangfix
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	firehol
 
@@ -21,9 +24,7 @@ NETDATA_CACHE=	/var/cache/${PORTNAME}
 NETDATA_LOG=	/var/log/${PORTNAME}
 NETDATA_PERST=	/var/db/${PORTNAME}
 
-USES=		autoreconf pathfix pkgconfig:both python shebangfix
 USE_LDCONFIG=	yes
-
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-D_WANT_VMMETER -I${LOCALBASE}/include
 LIBS+=		-L${LOCALBASE}/lib
@@ -42,6 +43,12 @@ SUB_FILES=	${PORTNAME}.conf.sample
 
 USERS=		netdata
 GROUPS=		netdata
+
+OPTIONS_DEFINE=	FREEIPMI
+OPTIONS_SUB=	YES
+FREEIPMI_DESC=	Enable support for freeipmi
+
+FREEIPMI_LIB_DEPENDS=	libfreeipmi.so:sysutils/freeipmi
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%NETDATA_CACHE%%|${NETDATA_CACHE}|g' \

Modified: head/net-mgmt/netdata/pkg-plist
==============================================================================
--- head/net-mgmt/netdata/pkg-plist	Wed Nov  8 11:53:49 2017	(r453731)
+++ head/net-mgmt/netdata/pkg-plist	Wed Nov  8 12:18:34 2017	(r453732)
@@ -156,6 +156,7 @@ libexec/netdata/plugins.d/cgroup-name.sh
 libexec/netdata/plugins.d/charts.d.dryrun-helper.sh
 libexec/netdata/plugins.d/charts.d.plugin
 libexec/netdata/plugins.d/fping.plugin
+%%FREEIPMI%%libexec/netdata/plugins.d/freeipmi.plugin
 libexec/netdata/plugins.d/loopsleepms.sh.inc
 libexec/netdata/plugins.d/node.d.plugin
 libexec/netdata/plugins.d/python.d.plugin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711081218.vA8CIYVD048721>