# Latest release: https://openldap.org/software/download/
ldap_version="2.6.9"
-# Latest release: https://github.com/cyrusimap/cyrus-sasl/releases
-sasl_version="2.1.28"
-
export LIBPQ_BUILD_PREFIX=${LIBPQ_BUILD_PREFIX:-/tmp/libpq.build}
case "$(uname)" in
case "$ID" in
centos | almalinux)
yum update -y
- yum install -y flex krb5-devel pam-devel perl-IPC-Cmd perl-Time-Piece zlib-devel
+ yum install -y flex cyrus-sasl-devel krb5-devel pam-devel \
+ perl-IPC-Cmd perl-Time-Piece zlib-devel
;;
alpine)
;;
macos)
- brew install automake m4 libtool
+ brew install automake cyrus-sasl libtool m4
# If available, libpq seemingly insists on linking against homebrew's
# openssl no matter what so remove it. Since homebrew's curl depends on
# it, force use of system curl.
fi
-if [ "$ID" == "centos" ] || [ "$ID" == "almalinux" ]|| [ "$ID" == "macos" ]; then
- if [[ ! -f "${LIBPQ_BUILD_PREFIX}/lib/libsasl2.${library_suffix}" ]]; then
-
- # Build libsasl2 if needed
- # The system package (cyrus-sasl-devel) causes an amazing error on i686:
- # "unsupported version 0 of Verneed record"
- # https://github.com/pypa/manylinux/issues/376
- sasl_tag="cyrus-sasl-${sasl_version}"
- sasl_dir="cyrus-sasl-${sasl_tag}"
- if [ ! -d "${sasl_dir}" ]; then
- curl -fsSL \
- https://github.com/cyrusimap/cyrus-sasl/archive/${sasl_tag}.tar.gz \
- | tar xzf -
-
- pushd "${sasl_dir}"
-
- autoreconf -i
- ./configure "${make_configure_standard_flags[@]}" --disable-macos-framework
- make -s
- else
- pushd "${sasl_dir}"
- fi
-
- # Install libsasl2
- # requires missing nroff to build
- touch saslauthd/saslauthd.8
- make install
- popd
-
- fi
-fi
-
-
if [ "$ID" == "centos" ] || [ "$ID" == "almalinux" ]|| [ "$ID" == "macos" ]; then
if [[ ! -f "${LIBPQ_BUILD_PREFIX}/lib/libldap.${library_suffix}" ]]; then