mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 19:11:20 +02:00
dev-libs/cyrus-sasl: Apply Flatcar modifications
This commit is contained in:
parent
0366286350
commit
e8c04ce6c4
@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit eutils flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 db-use systemd
|
||||
TMPFILES_OPTIONAL=1
|
||||
inherit eutils flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 db-use systemd tmpfiles
|
||||
|
||||
SASLAUTHD_CONF_VER="2.1.26"
|
||||
|
||||
@ -57,6 +58,8 @@ PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.1.27-doc_build_fix.patch"
|
||||
"${FILESDIR}/${PN}-2.1.27-memmem.patch"
|
||||
"${FILESDIR}/${PN}-2.1.27-CVE-2019-19906.patch"
|
||||
# Flatcar:
|
||||
"${FILESDIR}/${PN}-2.1.27-fix-cross-compiling.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
@ -224,7 +227,7 @@ multilib_src_install_all() {
|
||||
newinitd "${FILESDIR}/saslauthd2.rc7" saslauthd
|
||||
newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd
|
||||
systemd_dounit "${FILESDIR}/saslauthd.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/${PN}.conf"
|
||||
dotmpfiles "${FILESDIR}/${PN}.conf"
|
||||
|
||||
# The get_modname bit is important: do not remove the .la files on
|
||||
# platforms where the lib isn't called .so for cyrus searches the .la to
|
||||
|
@ -0,0 +1,40 @@
|
||||
--- cyrus-sasl-2.1.27/m4/sasl2.m4
|
||||
+++ cyrus-sasl-2.1.27/m4/sasl2.m4
|
||||
@@ -311,36 +311,7 @@ if test "$gssapi" != no; then
|
||||
[AC_DEFINE(HAVE_GSS_C_SEC_CONTEXT_SASL_SSF,,
|
||||
[Define if your GSSAPI implementation defines GSS_C_SEC_CONTEXT_SASL_SSF])])
|
||||
fi
|
||||
- cmu_save_LIBS="$LIBS"
|
||||
- LIBS="$LIBS $GSSAPIBASE_LIBS"
|
||||
-
|
||||
- AC_MSG_CHECKING([for SPNEGO support in GSSAPI libraries])
|
||||
- AC_TRY_RUN([
|
||||
-#ifdef HAVE_GSSAPI_H
|
||||
-#include <gssapi.h>
|
||||
-#else
|
||||
-#include <gssapi/gssapi.h>
|
||||
-#endif
|
||||
-
|
||||
-int main(void)
|
||||
-{
|
||||
- gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
|
||||
- gss_OID_set mech_set;
|
||||
- OM_uint32 min_stat;
|
||||
- int have_spnego = 0;
|
||||
-
|
||||
- if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
|
||||
- gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
|
||||
- gss_release_oid_set(&min_stat, &mech_set);
|
||||
- }
|
||||
-
|
||||
- return (!have_spnego); // 0 = success, 1 = failure
|
||||
-}
|
||||
-],
|
||||
- [ AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO])
|
||||
- AC_MSG_RESULT(yes) ],
|
||||
- AC_MSG_RESULT(no))
|
||||
- LIBS="$cmu_save_LIBS"
|
||||
+ AC_DEFINE(HAVE_GSS_SPNEGO,,[1])
|
||||
|
||||
else
|
||||
AC_MSG_RESULT([disabled])
|
Loading…
x
Reference in New Issue
Block a user