3 # Add here any the actions which are required before plugin build
4 # like packages building, packages downloading from mirrors and so on.
5 # The script should return 0 if there were no errors.
10 BUILD_FOR=${BUILD_FOR:-ubuntu}
11 DIR="$(dirname `readlink -f $0`)"
16 rm -rf ${DIR}/repositories/ubuntu; mkdir -p ${DIR}/repositories/ubuntu
17 rm -rf ${DIR}/build; mkdir -p ${DIR}/build; cd ${DIR}/build;
18 git clone https://github.com/openstack/collectd-ceilometer-plugin
19 cd collectd-ceilometer-plugin
20 git checkout 73372f2eb86c81f12bc10b392f75050a401107db
21 tar cfvz ${DIR}/repositories/ubuntu/collectd-ceilometer.tgz . --exclude=collectd-ceilometer.tgz
23 # support collectd with dpdk later
24 #cd ${DIR}/build; ../build-collectd.sh
25 #cp *.deb ${DIR}/repositories/ubuntu
29 *) echo "Not supported system"; exit 1;;
33 for system in $BUILD_FOR