From 51dc2d1a638855bcab4f43b7b7823fae8d9ea4a5 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Fri, 15 Jul 2016 06:24:12 +0800 Subject: Add collectd build & installation Change-Id: I9305715bae269fb2e65a083e4e19f1ed6c9b8331 Signed-off-by: Guo Ruijing --- src/fuel-plugin/build-collectd.sh | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100755 src/fuel-plugin/build-collectd.sh (limited to 'src/fuel-plugin/build-collectd.sh') diff --git a/src/fuel-plugin/build-collectd.sh b/src/fuel-plugin/build-collectd.sh new file mode 100755 index 0000000..30166a0 --- /dev/null +++ b/src/fuel-plugin/build-collectd.sh @@ -0,0 +1,65 @@ +#!/bin/bash + +BUILD_HOME="$(pwd)" + +set -eux +sudo apt-get -y install build-essential dh-autoreconf fakeroot dpkg-dev devscripts dpkg-dev git wget + +sudo apt-get -y install debhelper dpkg-dev po-debconf dh-systemd \ + bison flex autotools-dev libltdl-dev pkg-config \ + iptables-dev \ + javahelper \ + libatasmart-dev \ + libcap-dev \ + libcurl4-gnutls-dev \ + libdbi0-dev \ + libesmtp-dev \ + libganglia1-dev \ + libgcrypt11-dev \ + libglib2.0-dev \ + libhiredis-dev \ + libldap2-dev \ + liblvm2-dev \ + libmemcached-dev \ + libmodbus-dev \ + libmnl-dev \ + libnotify-dev \ + libopenipmi-dev \ + liboping-dev \ + libow-dev \ + libpcap0.8-dev \ + libpcap-dev \ + libperl-dev \ + libpq-dev \ + librdkafka-dev \ + librabbitmq-dev \ + librrd-dev \ + libsensors4-dev \ + libsigrok-dev \ + libsnmp9-dev \ + libsnmp-dev \ + perl \ + libtokyocabinet-dev \ + libtokyotyrant-dev \ + libudev-dev \ + libupsclient-dev \ + libvarnishapi-dev \ + libvirt-dev \ + libxml2-dev \ + libyajl-dev \ + linux-libc-dev \ + default-jdk \ + protobuf-c-compiler \ + python-dev + + +cd ${BUILD_HOME} +rm -rf collectd +git clone https://github.com/collectd/collectd; cd collectd; git checkout 37fe166; +git clone https://github.com/collectd/pkg-debian; cd pkg-debian; git checkout e2e3b00; mv debian .. +cd ${BUILD_HOME}/collectd + +./build.sh +debian/rules build || true +debian/rules build +fakeroot debian/rules binary -- cgit 1.2.3-korg