summaryrefslogtreecommitdiffstats
path: root/src/fuel-plugin/pre_build_hook
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-07-15 06:24:12 +0800
committerGuo Ruijing <ruijing.guo@intel.com>2016-07-18 02:28:50 +0800
commit51dc2d1a638855bcab4f43b7b7823fae8d9ea4a5 (patch)
tree35966fc125eb013a6d588d523ec27a8f70390b01 /src/fuel-plugin/pre_build_hook
parent6a0837238ff13d3294e5a7181fc3de40e3094625 (diff)
Add collectd build & installation
Change-Id: I9305715bae269fb2e65a083e4e19f1ed6c9b8331 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/fuel-plugin/pre_build_hook')
-rwxr-xr-xsrc/fuel-plugin/pre_build_hook12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/fuel-plugin/pre_build_hook b/src/fuel-plugin/pre_build_hook
index eda8601b..ffb49347 100755
--- a/src/fuel-plugin/pre_build_hook
+++ b/src/fuel-plugin/pre_build_hook
@@ -14,11 +14,21 @@ function build_pkg {
case $1 in
ubuntu)
rm -rf ${DIR}/repositories/ubuntu; mkdir -p ${DIR}/repositories/ubuntu
+
+ rm -rf ${DIR}/build; mkdir -p ${DIR}/build; cd ${DIR}/build;
+
git clone https://github.com/openstack/collectd-ceilometer-plugin
cd collectd-ceilometer-plugin
git checkout 3a4a1087566d1f9e8dd2d8d2e0608cb975942446
+ cat << EOF > collectd_ceilometer/__init__.py
+"""Collectd Ceilometer plugin implementation"""
+EOF
tar cfvz ${DIR}/repositories/ubuntu/collectd-ceilometer.tgz . --exclude=collectd-ceilometer.tgz
- cd ..; rm -rf collectd-ceilometer-plugin
+
+ cd ${DIR}/build; ../build-collectd.sh
+ cp *.deb ${DIR}/repositories/ubuntu
+
+ rm -rf ${DIR}/build
;;
*) echo "Not supported system"; exit 1;;
esac