Patchwork [meta-oe] initial collectd recipe

login
register
mail settings
Submitter Paul Eggleton
Date Oct. 20, 2012, 11:25 a.m.
Message ID <1350732316-5310-1-git-send-email-paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/38349/
State Not Applicable
Headers show

Comments

Paul Eggleton - Oct. 20, 2012, 11:25 a.m.
Based on initial version by Koen Kooi <koen@beagleboard.org>
Currently broken - attempts to rerun configure during do_compile.
---
 .../recipes-extended/collectd/collectd_5.1.0.bb    |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/collectd/collectd_5.1.0.bb
Paul Eggleton - Oct. 20, 2012, 11:27 a.m.
On Saturday 20 October 2012 12:25:15 Paul Eggleton wrote:
> Based on initial version by Koen Kooi <koen@beagleboard.org>
> Currently broken - attempts to rerun configure during do_compile.

This was sent in error (wrong branch and hit enter too soon) - please ignore.

Cheers,
Paul

Patch

diff --git a/meta-oe/recipes-extended/collectd/collectd_5.1.0.bb b/meta-oe/recipes-extended/collectd/collectd_5.1.0.bb
new file mode 100644
index 0000000..e4008c5
--- /dev/null
+++ b/meta-oe/recipes-extended/collectd/collectd_5.1.0.bb
@@ -0,0 +1,30 @@ 
+DESCRIPTION = "collectd is a daemon which collects system performance statistics periodically and provides mechanisms to store the values in a variety of ways, for example in RRD files."
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+DEPENDS = "rrdtool curl mysql5 net-snmp libpcap libxml2 yajl libgcrypt libtool"
+
+SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2"
+SRC_URI[md5sum] = "141570150b4608c0c567330f6f146e0f"
+SRC_URI[sha256sum] = "521d4be7df5bc1124b7b9ea88227e95839a5f7c1b704a5bde0f60f058ec6eecb"
+
+inherit autotools pythonnative
+
+# Floatingpoint layout, architecture dependent 
+# 'nothing', 'endianflip' or 'intswap'
+FPLAYOUT ?= "--with-fp-layout=nothing"
+
+EXTRA_OECONF = " \
+        ${FPLAYOUT} \
+        --disable-perl \
+        --with-libgcrypt=${STAGING_BINDIR_CROSS}/libgcrypt-config \
+"
+
+# 'compile' from libtool is missing in sysroots (${datadir}/libtool/config/compile)
+do_configure() {
+        aclocal
+	export GCRYPT_LDFLAGS=" "
+	oe_runconf
+}
+