2021-07-07 20:24:26 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-07-12 16:53:43 +00:00
|
|
|
# Build with CC for clang compatibility.
|
|
|
|
# If CC is unset, GCC is forced.
|
|
|
|
export CC="${CC:-cc}"
|
|
|
|
|
2021-07-07 20:24:26 +00:00
|
|
|
./Configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--openssldir=/etc/ssl \
|
|
|
|
--libdir=lib \
|
2021-07-10 20:51:34 +00:00
|
|
|
no-unit-test \
|
|
|
|
shared \
|
|
|
|
linux-x86_64
|
2021-07-07 20:24:26 +00:00
|
|
|
|
|
|
|
make depend
|
2021-07-12 16:53:43 +00:00
|
|
|
make V=1
|
2021-07-12 00:02:20 +00:00
|
|
|
|
|
|
|
make DESTDIR="$1" \
|
|
|
|
install_sw \
|
|
|
|
install_ssldirs \
|
|
|
|
install_man_docs
|
2021-07-07 20:24:26 +00:00
|
|
|
|
|
|
|
cp -f update-certdata.sh "$1/etc/ssl"
|
2021-07-10 20:51:34 +00:00
|
|
|
|
|
|
|
# Libretls is LibreSSL's libtls library for OpenSSL.
|
|
|
|
(
|
|
|
|
cd libretls
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-openssl="$1/usr"
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
)
|