diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/collectd |
Initial import
Diffstat (limited to 'package/collectd')
-rw-r--r-- | package/collectd/Config.in | 36 | ||||
-rw-r--r-- | package/collectd/Makefile | 94 | ||||
-rw-r--r-- | package/collectd/files/collectd.init | 27 | ||||
-rw-r--r-- | package/collectd/ipkg/collectd.control | 5 | ||||
-rw-r--r-- | package/collectd/ipkg/collectd.postinst | 3 | ||||
-rw-r--r-- | package/collectd/patches/patch-src_Makefile_in | 12 | ||||
-rw-r--r-- | package/collectd/patches/patch-src_libcollectdclient_Makefile_in | 12 |
7 files changed, 189 insertions, 0 deletions
diff --git a/package/collectd/Config.in b/package/collectd/Config.in new file mode 100644 index 000000000..f645ee403 --- /dev/null +++ b/package/collectd/Config.in @@ -0,0 +1,36 @@ + +config ADK_PACKAGE_COLLECTD + prompt "collectd.......................... Lightweight system statistics collection daemon" + tristate + default n + select ADK_PACKAGE_LIBPTHREAD + help + collectd is a small daemon which collects system information + every 10 seconds. The values are then sent to a multicast group + to be stored in RRD files by a server process. + + http://verplant.org/collectd/ + +config ADK_PACKAGE_COLLECTD_CPU + prompt "Enable cpu support" + bool + default y + depends ADK_PACKAGE_COLLECTD + +config ADK_PACKAGE_COLLECTD_LOAD + prompt "Enable load support" + bool + default y + depends ADK_PACKAGE_COLLECTD + +config ADK_PACKAGE_COLLECTD_MEMORY + prompt "Enable memory support" + bool + default y + depends ADK_PACKAGE_COLLECTD + +config ADK_PACKAGE_COLLECTD_PING + prompt "Enable ping support" + bool + default y + depends ADK_PACKAGE_COLLECTD diff --git a/package/collectd/Makefile b/package/collectd/Makefile new file mode 100644 index 000000000..75518ff04 --- /dev/null +++ b/package/collectd/Makefile @@ -0,0 +1,94 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= collectd +PKG_VERSION:= 4.6.2 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 9eee46a6330780d6e6b41155b159f4f9 +MASTER_SITES:= http://verplant.org/collectd/files/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,COLLECTD,collectd,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +ifneq (${ADK_PACKAGE_COLLECTD_CPU},y) +DISABLE_CPU:=--disable-cpu +endif +ifneq (${ADK_PACKAGE_COLLECTD_LOAD},y) +DISABLE_LOAD:=--disable-load +endif +ifneq (${ADK_PACKAGE_COLLECTD_MEMORY},y) +DISABLE_MEMORY:=--disable-memory +endif +ifneq (${ADK_PACKAGE_COLLECTD_PING},y) +DISABLE_PING:=--disable-ping +endif + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --disable-apache \ + --disable-apcups \ + --disable-apple_sensors \ + --disable-ascent \ + --disable-battery \ + ${DISABLE_CPU} \ + --disable-cpufreq \ + --disable-disk \ + --enable-csv \ + --disable-df \ + --disable-dns \ + --disable-email \ + --disable-entropy \ + --disable-exec \ + --disable-hddtemp \ + --disable-interface \ + --disable-iptables \ + --disable-irq \ + ${DISABLE_LOAD} \ + --disable-mbmon \ + --disable-memcached \ + ${DISABLE_MEMORY} \ + --disable-multimeter \ + --disable-mysql \ + --disable-postgresql \ + --disable-powerdns \ + --disable-network \ + --disable-nginx \ + --disable-nfs \ + --disable-ntpd \ + --disable-nut \ + --disable-perl \ + ${DISABLE_PING} \ + --disable-processes \ + --disable-sensors \ + --disable-serial \ + --disable-logfile \ + --disable-swap \ + --disable-syslog \ + --disable-tape \ + --disable-teamspeak2 \ + --disable-thermal \ + --disable-unixsock \ + --disable-users \ + --disable-vserver \ + --enable-wireless \ + --with-fp-layout=nothing \ + --with-nan-emulation + +XAKE_FLAGS+= LIBS='-lm' +BUILD_STYLE= auto +INSTALL_STYLE= auto + +post-install: + ${INSTALL_DIR} ${IDIR_COLLECTD}/etc/init.d + ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/sbin + ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/lib/collectd + ${INSTALL_BIN} ./files/collectd.init \ + ${IDIR_COLLECTD}/etc/init.d/collectd + ${CP} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/ + ${CP} ${WRKINST}/usr/lib/collectd/*.so ${IDIR_COLLECTD}/usr/lib/collectd/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/collectd/files/collectd.init b/package/collectd/files/collectd.init new file mode 100644 index 000000000..7d4f70b59 --- /dev/null +++ b/package/collectd/files/collectd.init @@ -0,0 +1,27 @@ +#!/bin/sh +#FWINIT 75 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${collectd:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + [ -d /var/lib/collectd ] || mkdir -p /var/lib/collectd + collectd + ;; +stop) + killall collectd + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/collectd/ipkg/collectd.control b/package/collectd/ipkg/collectd.control new file mode 100644 index 000000000..790e0fdfb --- /dev/null +++ b/package/collectd/ipkg/collectd.control @@ -0,0 +1,5 @@ +Package: collectd +Priority: optional +Section: console +Description: System statistics collection daemon +Depends: libpthread diff --git a/package/collectd/ipkg/collectd.postinst b/package/collectd/ipkg/collectd.postinst new file mode 100644 index 000000000..7e4416125 --- /dev/null +++ b/package/collectd/ipkg/collectd.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf collectd collectd NO diff --git a/package/collectd/patches/patch-src_Makefile_in b/package/collectd/patches/patch-src_Makefile_in new file mode 100644 index 000000000..d563de441 --- /dev/null +++ b/package/collectd/patches/patch-src_Makefile_in @@ -0,0 +1,12 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- collectd-4.6.2.orig/src/Makefile.in 2009-03-18 11:56:40.000000000 +0100 ++++ collectd-4.6.2/src/Makefile.in 2009-05-09 16:28:02.000000000 +0200 +@@ -1340,7 +1340,7 @@ top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + SUBDIRS = libcollectdclient $(am__append_1) $(am__append_2) \ + $(am__append_3) +-@COMPILER_IS_GCC_TRUE@AM_CFLAGS = -Wall -Werror ++@COMPILER_IS_GCC_TRUE@AM_CFLAGS = -Wall + AM_CPPFLAGS = -DPREFIX='"${prefix}"' \ + -DCONFIGFILE='"${sysconfdir}/${PACKAGE_NAME}.conf"' \ + -DLOCALSTATEDIR='"${localstatedir}"' \ diff --git a/package/collectd/patches/patch-src_libcollectdclient_Makefile_in b/package/collectd/patches/patch-src_libcollectdclient_Makefile_in new file mode 100644 index 000000000..ba4d4c067 --- /dev/null +++ b/package/collectd/patches/patch-src_libcollectdclient_Makefile_in @@ -0,0 +1,12 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- collectd-4.6.2.orig/src/libcollectdclient/Makefile.in 2009-03-18 11:56:40.000000000 +0100 ++++ collectd-4.6.2/src/libcollectdclient/Makefile.in 2009-05-09 16:29:33.000000000 +0200 +@@ -251,7 +251,7 @@ top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + AUTOMAKE_OPTIONS = foreign no-dependencies +-@COMPILER_IS_GCC_TRUE@AM_CFLAGS = -Wall -Werror ++@COMPILER_IS_GCC_TRUE@AM_CFLAGS = -Wall + pkginclude_HEADERS = client.h lcc_features.h + lib_LTLIBRARIES = libcollectdclient.la + nodist_pkgconfig_DATA = libcollectdclient.pc |