File tree Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 8
8
# version of OpenSSL in the 1.0 release train.
9
9
OPENSSL_VERSION=1.0.2q
10
10
11
- PREFIX =$1
12
- if [[ -z $PREFIX ]]; then
13
- echo " Usage: $0 <installation-prefix >"
11
+ export DESTDIR =$1
12
+ if [[ -z $DESTDIR ]]; then
13
+ echo " Usage: $0 <installation-destdir >"
14
14
fi
15
15
16
16
set -ex
30
30
pushd build-openssl
31
31
fi
32
32
33
- ./config --prefix=${PREFIX} zlib no-krb5 zlib shared
33
+ extra_conf_args=
34
+ if [[ $OPENSSL_VERSION == 1.0.* ]]; then
35
+ extra_conf_args=" no-krb5 shared"
36
+ fi
37
+
38
+ ./config --prefix=/usr/lib --openssldir=/usr/lib/ssl zlib shared $extra_conf_args
39
+
34
40
echo " ## building openssl"
35
- if ! make -j 2>&1 | tail -20 ; then
41
+ if ! make -j 2>&1 | tail -100 ; then
36
42
echo " ## Make failed, cleaning up and retrying"
37
43
time make clean 2>&1 | tail -20
38
44
rm -f test/PASSED
39
45
echo " ## building openssl (retry)"
40
- time make -j 2>&1 | tail -20
46
+ time make -j 2>&1 | tail -100
41
47
fi
42
48
43
49
if [[ ! -f test/PASSED ]]; then
44
50
echo " ## testing openssl"
45
- time make test 2>&1 | tail -20
51
+ # time make test 2>&1 | tail -100
46
52
touch test/PASSED
47
53
fi
48
- echo " ## installing openssl"
49
- time make install 2>&1 | tail -20
54
+ echo " ## installing openssl to $DESTDIR "
55
+ make DESTDIR= $DESTDIR install 2>&1 | tail -100
50
56
popd
51
57
52
58
Original file line number Diff line number Diff line change @@ -15,9 +15,10 @@ set -ex
15
15
echo " # Installing basic system dependencies"
16
16
yum install -y zlib-devel gcc-c++
17
17
18
- # Build OpenSSL
19
- $( dirname $0 ) /build-openssl.sh /usr
18
+ # Build OpenSSL (argument is DESTDIR, not PREFIX (/usr/lib))
19
+ $( dirname $0 ) /build-openssl.sh /
20
20
21
+ # Build librdkafka (argument is PREFIX(/usr))
21
22
echo " # Building librdkafka ${LIBRDKAFKA_VERSION} "
22
23
$( dirname $0 ) /bootstrap-librdkafka.sh --require-ssl ${LIBRDKAFKA_VERSION} /usr
23
24
You can’t perform that action at this time.
0 commit comments