mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-16 16:39:38 +00:00
67 lines
2.7 KiB
Bash
67 lines
2.7 KiB
Bash
#! /bin/bash
|
|
|
|
# Cyrus SASL
|
|
# Source: https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.28/cyrus-sasl-2.1.28.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: BerkeleyDB lmdb
|
|
# Optional: lmdb Linux-PAM krb5(MIT Kerberos V5) MariaDB/MySQL OpenJDK OpenLDAP PostgreSQL
|
|
# Optional: SQLite krb4 Dmalloc Pod::POM::View::Restructured Sphinx
|
|
|
|
#patch -Np1 -i ../patches/cyrus-sasl-alpine/CVE-2019-19906.patch
|
|
#patch -Np1 -i ../patches/cyrus-sasl-alpine/cyrus-sasl-2.1.27-as_needed.patch
|
|
#patch -Np1 -i ../patches/cyrus-sasl-alpine/cyrus-sasl-2.1.27-autotools_fixes.patch
|
|
#patch -Np1 -i ../patches/cyrus-sasl-alpine/cyrus-sasl-2.1.27-avoid_pic_overwrite.patch
|
|
#patch -Np1 -i ../patches/cyrus-sasl-alpine/cyrus-sasl-2.1.27-doc_build_fix.patch
|
|
#patch -Np1 -i ../patches/cyrus-sasl-alpine/cyrus-sasl-2.1.27-gss_c_nt_hostbased_service.patch
|
|
patch -Np1 -i ../patches/cyrus-sasl-chimera/cyrus-sasl-2.1.28-fix-configure-time-check.patch
|
|
autoreconf -fvi &&
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-auth-sasldb \
|
|
--with-dblib=lmdb \
|
|
--disable-krb4 \
|
|
--with-dbpath=/var/lib/sasl/sasldb2 \
|
|
--with-saslauthd=/var/run/saslauthd \
|
|
--with-sphinx-build=no \
|
|
--enable-cram --enable-digest --enable-plain \
|
|
--enable-anon --enable-login --enable-gssapi \
|
|
--disable-otp --disable-srp --disable-srp-setpass \
|
|
--with-devrandom=/dev/random \
|
|
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
|
|
$BUILDTRUPLE &&
|
|
read -p "Compile?" && make -j1 &&
|
|
|
|
sudo -S make DESTDIR=$BUILD install &&
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
cyrus-sasl: cyrus-sasl (Simple Authentication and Security Layer)
|
|
cyrus-sasl:
|
|
cyrus-sasl: This is the Cyrus SASL library. Cyrus SASL is used by mail programs
|
|
cyrus-sasl: on the client or server side to provide authentication and
|
|
cyrus-sasl: authorization services. See RFC 2222 for more information.
|
|
cyrus-sasl:
|
|
cyrus-sasl:
|
|
cyrus-sasl:
|
|
cyrus-sasl:
|
|
cyrus-sasl:
|
|
cyrus-sasl:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/cyrus-sasl-2.1.28-$PSUFFIX &&
|
|
sudo -S rm -rf ${BUILD}/*
|