summaryrefslogtreecommitdiffstats
path: root/src/fuel-plugin/build-collectd.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-12-18 19:31:42 -0500
committerGuo Ruijing <ruijing.guo@intel.com>2016-12-27 20:06:41 -0500
commit6c8273116b62d5fc6a85b6914930756f81f7175b (patch)
tree70b4bf5a0f03af8ea138f1a81f17ac44a10dc45e /src/fuel-plugin/build-collectd.sh
parentdb7cec29b6a71c0eb0a5a3bcb1e20c4fac73d804 (diff)
build collectd with pqos
1. can build collectd with pqos 2. ceilometer with collectd basic functionality work as expected 3. todo: need to verify pqos work as expected Change-Id: I9f992de6ef5d8c0ea97a30162dd916bcd3accb34 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/fuel-plugin/build-collectd.sh')
-rwxr-xr-xsrc/fuel-plugin/build-collectd.sh22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/fuel-plugin/build-collectd.sh b/src/fuel-plugin/build-collectd.sh
index 0ef3136d..72097d20 100755
--- a/src/fuel-plugin/build-collectd.sh
+++ b/src/fuel-plugin/build-collectd.sh
@@ -1,8 +1,13 @@
#!/bin/bash
-BUILD_HOME="$(pwd)"
+BUILD_HOME=/tmp/collectd-build
set -eux
+
+sudo rm -rf $BUILD_HOME
+sudo mkdir -p $BUILD_HOME
+sudo chmod 777 $BUILD_HOME
+
sudo apt-get -y install build-essential dh-autoreconf fakeroot devscripts dpkg-dev git wget
sudo apt-get -y install \
@@ -62,15 +67,24 @@ sudo apt-get -y install \
python-dev
+
+cd ${BUILD_HOME}
+git clone https://github.com/01org/intel-cmt-cat.git
+cd intel-cmt-cat/
+git checkout c194e3a14d5efc1bd05a8ef7a49cfaf689f66937
+make
+sudo make install PREFIX=/fuel-plugin/build/qpos
+
cd ${BUILD_HOME}
rm -rf collectd
-git clone https://github.com/collectd/collectd; cd collectd; git checkout 797ed5e5bee9ee89361f12e447ffc6ceb6ef79d2
+git clone https://github.com/collectd/collectd; cd collectd; git checkout 786a6be461cf58ef2b8c57974cad2a79ba2ee82c
git clone https://github.com/collectd/pkg-debian; cd pkg-debian; git checkout 549d3caba74210ad762fe8c556801d9c11ab9876
-mv debian ..
+patch -p1 < /fuel-plugin/enable_pqos.diff
+cp -r debian ..
cd ${BUILD_HOME}/collectd
./build.sh
debian/rules build || true
debian/rules build
fakeroot debian/rules binary
-cp ${BUILD_HOME}/*.deb /build
+cp ${BUILD_HOME}/*.deb /fuel-plugin/build