Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Sep 2007 05:23:53 -0700 (PDT)
From:      Matt Peterson <matt@peterson.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/116736: New port: net-mgmt/collectd
Message-ID:  <200709291223.l8TCNrol029435@tosca.peterson.org>
Resent-Message-ID: <200709291230.l8TCU2LA082854@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         116736
>Category:       ports
>Synopsis:       New port: net-mgmt/collectd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 29 12:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Matt Peterson <matt@peterson.org>
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD tosca.peterson.org 6.2-STABLE FreeBSD 6.2-STABLE #4: Wed Aug 22 15:25:34 PDT 2007 root@tosca.peterson.org:/usr/obj/usr/src/sys/GENERIC i386


>Description:

Here's a freshly cooked up port for collectd - a network & systems
stats gathering program (think of it as the backend poller of mrtg,
cricket or cacti).  This requires my recently submitted port for
liboping.  Also, it's been a few years since I've made a port, so I'm
sure some obvious problems exist, such as plist and others.  portlint
thinks it's good and it works for me, YMMV.

>How-To-Repeat:
>Fix:

--- collectd.txt begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/home/matt/collectd/
#	/home/matt/collectd/pkg-descr
#	/home/matt/collectd/distinfo
#	/home/matt/collectd/Makefile
#	/home/matt/collectd/pkg-plist
#
echo c - /home/matt/collectd/
mkdir -p /home/matt/collectd/ > /dev/null 2>&1
echo x - /home/matt/collectd/pkg-descr
sed 's/^X//' >/home/matt/collectd/pkg-descr << 'END-of-/home/matt/collectd/pkg-descr'
Xcollectd is a small daemon written in C for performance. It reads various
Xsystem & network statistics along with updating output RRD or CSV files.
XThe daemon is very fast and allows for frequent polling of values, with
Xsupport for fine grained detail every 10 seconds.  
X
XWWW: http://www.collectd.org/
X
X-- Matt Peterson <matt@peterson.org>
END-of-/home/matt/collectd/pkg-descr
echo x - /home/matt/collectd/distinfo
sed 's/^X//' >/home/matt/collectd/distinfo << 'END-of-/home/matt/collectd/distinfo'
XMD5 (collectd-4.1.2.tar.gz) = 40458dabe8ec5df87323c1862a03cb94
XSHA256 (collectd-4.1.2.tar.gz) = fba4423378a8a270de8b48f98dc2f102f4f3c630381672267344776885a6e690
XSIZE (collectd-4.1.2.tar.gz) = 999229
END-of-/home/matt/collectd/distinfo
echo x - /home/matt/collectd/Makefile
sed 's/^X//' >/home/matt/collectd/Makefile << 'END-of-/home/matt/collectd/Makefile'
X# New ports collection makefile for:	collectd
X# Date created:				Sat Sep 29 05:19:31 PDT 2007
X# Whom:					Matt Peterson <matt@peterson.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	collectd
XPORTVERSION=	4.1.2
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://collectd.org/files/ \
X		http://matt.peterson.org/FreeBSD/ports/
X
XMAINTAINER=	matt@peterson.org
XCOMMENT=	Systems & network statistics collection daemon
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
X
XOPTIONS=	APACHE "Apache mod_status statistics (libcurl)" Off \
X		APCUPS "APC UPS support" Off \
X		DEBUG "enable debugging" Off \
X		INTERFACE "Network interface statistics (libstatgrab)" On \
X		MBMON "Query mbmond" Off \
X		MYSQL "MySQL statistics" Off \
X		PERL "libperl embedded interpreter (linux version)" Off \
X		PING "Network latency statistics (liboping)" On \
X		RRDTOOL "RRDTool output plugin" On \
X		SNMP "SNMP support" On \
X		XMMS "XMMS statistics" Off
X
XMAN1=		collectd.1 collectd-nagios.1
XMAN5=		collectd.conf.5 collectd-email.5 collectd-exec.5 \
X		collectd-perl.5 collectd-snmp.5 collectd-unixsock.5
X
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		LDFLAGS="-L${LOCALBASE}/lib" \
X		LIBS="`pkg-config --libs libstatgrab`"
X
X.include <bsd.port.pre.mk>
X
XCONFIGURE_ARGS= --prefix=${PREFIX} --mandir=${PREFIX}/man \
X		--disable-apple_sensors \
X		--disable-battery \
X		--disable-hddtemp \
X		--disable-multimeter \
X		--disable-iptables \
X		--disable-sensors \
X		--disable-serial \
X		--disable-vserver \
X		--disable-wireless
X
X.if defined(WITH_DEBUG)
XCONFIGURE_ARGS+= 	--enable-debug
X.endif
X
X.if defined(WITH_APACHE)
XCONFIGURE_ARGS+=	--enable-apache
XBUILD_DEPENDS+=		curl.4:${PORTSDIR}/ftp/curl
X.else
XCONFIGURE_ARGS+=	--disable-apache
X.endif
X
X.if defined(WITH_APCUPS)
XCONFIGURE_ARGS+=	--enable-apcups
XBUILD_DEPENDS+=		${LOCALBASE}/sbin/apcupsd:${PORTSDIR}/sysutils/apcupsd
X.else
XCONFIGURE_ARGS+=	--disable-apcups
X.endif
X
X.if defined(WITH_INTERFACE)
XCONFIGURE_ARGS+=	--enable-interface
XBUILD_DEPENDS+=		statgrab.8:${PORTSDIR}/devel/libstatgrab
X.else
XCONFIGURE_ARGS+=	--disable-interface
X.endif
X
X.if defined(WITH_MBMON)
XCONFIGURE_ARGS+=	--enable-mbmon
XBUILD_DEPENDS+=		${LOCALBASE}/sbin/mbmond:${PORTSDIR}/sysutils/mbmon
X.else
XCONFIGURE_ARGS+=	--disable-mbmon
X.endif
X
X.if defined(WITH_MYSQL)
XUSE_MYSQL=		yes
XCONFIGURE_ARGS+=	--enable-mysql
X.else
XCONFIGURE_ARGS+=	--disable-mysql
X.endif
X
X.if defined(WITH_PERL)
XLIB_DEPENDS+=           libperl.5.8:${PORTSDIR}/lang/linux-libperl5.8
XCONFIGURE_ARGS+=        --enable-perl
X.else
XCONFIGURE_ARGS+=	--disable-perl
X.endif
X
X.if defined(WITH_PING)
XLIB_DEPENDS+=		liboping:${PORTSDIR}/net-mgmt/liboping
XCONFIGURE_ARGS+=        --enable-ping
X.else
XCONFIGURE_ARGS+=	--disable-ping
X.endif
X
X.if defined(WITH_RRDTOOL)
XLIB_DEPENDS+=           rrd:${PORTSDIR}/databases/rrdtool
XCONFIGURE_ARGS+=        --enable-rrdtool
X.else
XCONFIGURE_ARGS+=	--disable-rrdtool
X.endif
X
X.if defined(WITH_SNMP)
XLIB_DEPENDS+=           netsnmp.10:${PORTSDIR}/net-mgmt/net-snmp
XCONFIGURE_ARGS+=        --enable-snmp
X.else
XCONFIGURE_ARGS+=	--disable-snmp
X.endif
X
X.if defined(WITH_XMMS)
XLIB_DEPENDS+=           xmms.4:${PORTSDIR}/multimedia/xmms
XCONFIGURE_ARGS+=        --enable-xmms
X.else
XCONFIGURE_ARGS+=	--disable-xmms
X.endif
X
XPLIST_DIRS=		lib/collectd var/lib/collectd
X.include <bsd.port.post.mk>
END-of-/home/matt/collectd/Makefile
echo x - /home/matt/collectd/pkg-plist
sed 's/^X//' >/home/matt/collectd/pkg-plist << 'END-of-/home/matt/collectd/pkg-plist'
Xbin/collectd-nagios
Xsbin/collectd
Xetc/collectd.conf
Xlib/collectd/apache.la
Xlib/collectd/apache.so
Xlib/collectd/cpu.la
Xlib/collectd/cpu.so
Xlib/collectd/csv.la
Xlib/collectd/csv.so
Xlib/collectd/df.la
Xlib/collectd/df.so
Xlib/collectd/dns.la
Xlib/collectd/dns.so
Xlib/collectd/email.la
Xlib/collectd/email.so
Xlib/collectd/exec.la
Xlib/collectd/exec.so
Xlib/collectd/interface.la
Xlib/collectd/interface.so
Xlib/collectd/load.la
Xlib/collectd/load.so
Xlib/collectd/logfile.la
Xlib/collectd/logfile.so
Xlib/collectd/memory.la
Xlib/collectd/memory.so
Xlib/collectd/network.la
Xlib/collectd/network.so
Xlib/collectd/ntpd.la
Xlib/collectd/ntpd.so
Xlib/collectd/ping.la
Xlib/collectd/ping.so
Xlib/collectd/rrdtool.la
Xlib/collectd/rrdtool.so
Xlib/collectd/snmp.la
Xlib/collectd/snmp.so
Xlib/collectd/swap.la
Xlib/collectd/swap.so
Xlib/collectd/syslog.la
Xlib/collectd/syslog.so
Xlib/collectd/unixsock.la
Xlib/collectd/unixsock.so
END-of-/home/matt/collectd/pkg-plist
exit
--- collectd.txt ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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