2010-09-07 07:12:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2010/09/07 11:12:05 landry Exp $
|
2010-06-23 14:04:26 -04:00
|
|
|
|
|
|
|
COMMENT-main = system metrics collection engine
|
|
|
|
COMMENT-mysql = collectd mysql plugin
|
|
|
|
COMMENT-pgsql = collectd postgresql plugin
|
|
|
|
COMMENT-rrdtool = collectd rrdtool plugin
|
|
|
|
COMMENT-snmp = collectd snmp plugin
|
|
|
|
|
2010-09-07 07:12:05 -04:00
|
|
|
V = 4.10.1
|
2010-06-23 14:04:26 -04:00
|
|
|
DISTNAME = collectd-$V
|
2010-07-22 10:40:49 -04:00
|
|
|
PKGNAME-main = collectd-$V
|
|
|
|
PKGNAME-mysql = collectd-mysql-$V
|
|
|
|
PKGNAME-pgsql = collectd-pgsql-$V
|
|
|
|
PKGNAME-rrdtool = collectd-rrdtool-$V
|
|
|
|
PKGNAME-snmp = collectd-snmp-$V
|
2010-06-23 14:04:26 -04:00
|
|
|
CATEGORIES = sysutils
|
|
|
|
|
|
|
|
HOMEPAGE = http://www.collectd.org/
|
|
|
|
SHARED_LIBS += collectdclient 0.0
|
|
|
|
SHARED_ONLY = Yes
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
|
|
|
MASTER_SITES = ${HOMEPAGE}/files/
|
|
|
|
|
|
|
|
MODULES = converters/libiconv
|
|
|
|
|
|
|
|
MULTI_PACKAGES = -main -mysql -pgsql -rrdtool -snmp
|
|
|
|
|
2010-07-22 10:40:49 -04:00
|
|
|
WANTLIB-mysql = crypto m ssl z mysqlclient
|
|
|
|
LIB_DEPENDS-mysql = ::databases/mysql
|
2010-08-08 03:41:40 -04:00
|
|
|
RUN_DEPENDS-mysql = :collectd-$V:${BASE_PKGPATH},-main
|
2010-06-23 14:04:26 -04:00
|
|
|
|
2010-07-22 10:40:49 -04:00
|
|
|
WANTLIB-pgsql = pq
|
|
|
|
LIB_DEPENDS-pgsql = ::databases/postgresql
|
2010-08-08 03:41:40 -04:00
|
|
|
RUN_DEPENDS-pgsql = :collectd-$V:${BASE_PKGPATH},-main
|
2010-06-23 14:04:26 -04:00
|
|
|
|
2010-07-22 10:40:49 -04:00
|
|
|
WANTLIB-rrdtool = art_lgpl_2 freetype m png z rrd_th
|
|
|
|
LIB_DEPENDS-rrdtool = ::net/rrdtool
|
2010-08-08 03:41:40 -04:00
|
|
|
RUN_DEPENDS-rrdtool = :collectd-$V:${BASE_PKGPATH},-main
|
2010-06-23 14:04:26 -04:00
|
|
|
|
2010-07-22 10:40:49 -04:00
|
|
|
WANTLIB-snmp = crypto netsnmp
|
|
|
|
LIB_DEPENDS-snmp = ::net/net-snmp
|
2010-08-08 03:41:40 -04:00
|
|
|
RUN_DEPENDS-snmp = :collectd-$V:${BASE_PKGPATH},-main
|
2010-06-23 14:04:26 -04:00
|
|
|
|
2010-07-22 10:40:49 -04:00
|
|
|
LIB_DEPENDS += ::net/curl \
|
|
|
|
::textproc/libxml \
|
|
|
|
::sysutils/libstatgrab \
|
|
|
|
::security/libgcrypt \
|
|
|
|
::devel/libtool,-ltdl
|
2010-06-23 14:04:26 -04:00
|
|
|
|
2010-07-22 10:40:49 -04:00
|
|
|
WANTLIB += c crypto gpg-error idn intl kvm curl xml2 ltdl
|
|
|
|
WANTLIB += m pcap pthread ssl xml2 z statgrab gcrypt
|
2010-06-23 14:04:26 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
USE_LIBTOOL = Yes
|
2010-06-24 02:53:36 -04:00
|
|
|
LIBTOOL_FLAGS = --tag=disable-static
|
2010-06-23 14:04:26 -04:00
|
|
|
CONFIGURE_ARGS +=--with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib \
|
|
|
|
--with-librrd=${LOCALBASE} \
|
|
|
|
--with-libstatgrab=${LOCALBASE} \
|
|
|
|
--with-libnetsnmp=${LOCALBASE}/bin/net-snmp-config \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--without-python \
|
|
|
|
--enable-all-plugins=no
|
|
|
|
|
|
|
|
ENABLED_PLUGINS = apache apcups ascent bind cpu csv curl curl_xml \
|
|
|
|
df disk dns email exec filecount interface load \
|
|
|
|
logfile match_empty_counter match_hashed match_regex \
|
|
|
|
match_timediff match_value memcached memory mysql \
|
|
|
|
network nginx ntpd olsrd openvpn postgresql powerdns \
|
|
|
|
rrdtool snmp swap syslog table tail \
|
|
|
|
target_notification target_replace target_scale \
|
|
|
|
target_set tcpconns teamspeak2 ted unixsock uptime \
|
|
|
|
users uuid write_http
|
|
|
|
|
|
|
|
.for _plugin in ${ENABLED_PLUGINS}
|
|
|
|
CONFIGURE_ARGS += --enable-${_plugin}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
CONFIGURE_ENV += CPPFLAGS='-I${LOCALBASE}/include' \
|
|
|
|
LDFLAGS='-L${LOCALBASE}/lib -L${X11BASE}/lib -pthread'
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|