summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/librdkafka-2.1.0/packaging/cp/verify-rpm.sh
blob: d7b3b1a14fb27fde216dee261072fbd5d38778b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#

set -e

cpver=$1
base_url=$2

if [[ -z $base_url ]]; then
    echo "Usage: $0 <cp-base-ver> <base_url>"
    exit 1
fi

cat >/etc/yum.repos.d/Confluent.repo <<EOF
[Confluent.dist]
name=Confluent repository (dist)
baseurl=$base_url/rpm/${cpver}/7
gpgcheck=0
gpgkey=$base_url/rpm/${cpver}/archive.key
enabled=1
[Confluent]
name=Confluent repository
baseurl=$base_url/rpm/${cpver}
gpgcheck=1
gpgkey=$base_url/rpm/${cpver}/archive.key
enabled=1
EOF

yum install -y librdkafka-devel gcc

gcc /v/check_features.c -o /tmp/check_features -lrdkafka

/tmp/check_features

# Verify plugins
yum install -y confluent-librdkafka-plugins

/tmp/check_features plugin.library.paths monitoring-interceptor