summaryrefslogtreecommitdiffstats
path: root/ci/utility
diff options
context:
space:
mode:
Diffstat (limited to 'ci/utility')
-rwxr-xr-xci/utility/collectd_build_rpm.sh6
-rwxr-xr-xci/utility/rpms_check.sh21
-rw-r--r--ci/utility/rpms_list63
3 files changed, 89 insertions, 1 deletions
diff --git a/ci/utility/collectd_build_rpm.sh b/ci/utility/collectd_build_rpm.sh
index 267dc939..e66a5b98 100755
--- a/ci/utility/collectd_build_rpm.sh
+++ b/ci/utility/collectd_build_rpm.sh
@@ -19,9 +19,13 @@ source $DIR/package-list.sh
VERSION="VERSION_NOT_SET"
cd $COLLECTD_DIR
-VERSION=$( $COLLECTD_DIR/version-gen.sh | sed "s/^\W$//g" )
+VERSION=$( $COLLECTD_DIR/version-gen.sh )
$COLLECTD_DIR/build.sh
$COLLECTD_DIR/configure
+sed --regexp-extended \
+ --in-place=".bak" \
+ --expression="s/^CapabilityBoundingSet=/CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_RAWIO/g" \
+ $COLLECTD_DIR/contrib/systemd.collectd.service
make dist
cp $COLLECTD_DIR/collectd-$VERSION.tar.bz2 $RPM_WORKDIR/SOURCES/
diff --git a/ci/utility/rpms_check.sh b/ci/utility/rpms_check.sh
new file mode 100755
index 00000000..a08b3ef9
--- /dev/null
+++ b/ci/utility/rpms_check.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+source $DIR/package-list.sh
+
+if [ -d $RPM_WORKDIR/RPMS/x86_64 ]
+then
+ ls $RPM_WORKDIR/RPMS/x86_64 > list_of_gen_pack
+else
+ echo "Can't access folder $RPM_WORKDIR with rpm packages"
+ exit 1
+fi
+
+for PACKAGENAME in `cat $DIR/rpms_list`
+do
+ if ! grep -q $PACKAGENAME list_of_gen_pack
+ then
+ echo "$PACKAGENAME is missing"
+ exit 2
+ fi
+done
diff --git a/ci/utility/rpms_list b/ci/utility/rpms_list
new file mode 100644
index 00000000..9607c5ab
--- /dev/null
+++ b/ci/utility/rpms_list
@@ -0,0 +1,63 @@
+collectd
+collectd-amqp
+collectd-apache
+collectd-ascent
+collectd-bind
+collectd-ceph
+collectd-chrony
+collectd-collection3
+collectd-contrib
+collectd-curl
+collectd-curl_json
+collectd-curl_xml
+collectd-dbi
+collectd-debuginfo
+collectd-disk
+collectd-dns
+collectd-email
+collectd-gmond
+collectd-gps
+collectd-hddtemp
+collectd-intel_rdt
+collectd-ipmi
+collectd-iptables
+collectd-java
+collectd-log_logstash
+collectd-lua
+collectd-lvm
+collectd-memcachec
+collectd-modbus
+collectd-mqtt
+collectd-mysql
+collectd-netlink
+collectd-nginx
+collectd-notify_desktop
+collectd-notify_email
+collectd-nut
+collectd-openldap
+collectd-ovs_events
+collectd-ovs_stats
+collectd-perl
+collectd-php-collection
+collectd-pinba
+collectd-ping
+collectd-postgresql
+collectd-python
+collectd-redis
+collectd-rrdcached
+collectd-rrdtool
+collectd-sensors
+collectd-smart
+collectd-snmp
+collectd-snmp_agent
+collectd-utils
+collectd-varnish
+collectd-virt
+collectd-write_http
+collectd-write_prometheus
+collectd-write_redis
+collectd-write_riemann
+intel-cmt-cat
+intel-cmt-cat-devel
+libcollectdclient
+libcollectdclient-devel