From ce10fc83f6aec9601bb8d7ab50fc62cab09f1ad5 Mon Sep 17 00:00:00 2001 From: Klara Modin Date: Wed, 7 Jun 2023 23:14:35 +0200 Subject: [PATCH] mit-krb5: update to 1.21 - update changed upstream mirror - move configure options to configure_args - add build options - ldap: enable LDAP database backend, enabled by default - lmdb: enable LMDB database backend, disabled by default - include LDAP schemas when ldap option is set - remove --without-tcl (not recognized by configure) - remove vsed that doesn't do anything - change sed to vsed and restrict it to files which need the changes - remove unnecessary do_build --- srcpkgs/mit-krb5/template | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/srcpkgs/mit-krb5/template b/srcpkgs/mit-krb5/template index 36a7de46e099..78d422c6307e 100644 --- a/srcpkgs/mit-krb5/template +++ b/srcpkgs/mit-krb5/template @@ -2,42 +2,49 @@ # if there is a bump in .so version, # also update srcpkgs/libgssglue/files/gssapi_mech.conf pkgname=mit-krb5 -version=1.20.1 +version=1.21 revision=1 build_style=gnu-configure +configure_args="--sbindir=/usr/bin --disable-rpath --with-system-et + --without-system-verto --with-system-ss --enable-shared --with-system-db + $(vopt_with ldap) $(vopt_with lmdb)" hostmakedepends="e2fsprogs-devel flex perl pkg-config" -makedepends="e2fsprogs-devel libldap-devel" +makedepends="e2fsprogs-devel db-devel $(vopt_if ldap libldap-devel) + $(vopt_if lmdb lmdb-devel)" short_desc="MIT Kerberos 5 implementation" maintainer="Orphaned " license="MIT" homepage="http://web.mit.edu/kerberos" -distfiles="http://web.mit.edu/kerberos/dist/krb5/${version%.*}/krb5-${version}.tar.gz" -checksum=704aed49b19eb5a7178b34b2873620ec299db08752d6a8574f95d41879ab8851 +distfiles="http://kerberos.org/dist/krb5/${version}/krb5-${version}.tar.gz" +checksum=69f8aaff85484832df67a4bbacd99b9259bd95aab8c651fbbe65cdc9620ea93b +build_options="ldap lmdb" +build_options_default="ldap" +desc_option_lmdb="Enable LMDB database backend" post_patch() { - vsed -e "/LDFLAGS=/d" -i src/build-tools/krb5-config.in - # Fix db plugin. - sed -i -e "s|||" $wrksrc/src/plugins/kdb/db2/*.[ch] + vsed -i -e "s|||" \ + src/plugins/kdb/db2/{adb_openclose.c,db2_exp.c,kdb_db2.c,policy_db.h} } do_configure() { - WARN_CFLAGS= ./src/configure ${configure_args} --sbindir=/usr/bin \ - --disable-rpath --with-system-et --without-system-verto --with-ldap \ - --with-system-ss --with-system-db --enable-shared --without-tcl \ + ./src/configure ${configure_args} \ ac_cv_func_pthread_once=yes ac_cv_func_pthread_rwlock_init=yes \ acx_pthread_ok=yes ac_cv_func_regcomp=yes ac_cv_printf_positional=yes \ krb5_cv_attr_constructor_destructor=yes,yes } -do_build() { - make -} - post_install() { vsv krb5kdc vsv kadmind vlicense NOTICE + + # Install schema files for LDAP database backend + if [ -n "$(vopt_if ldap present)" ]; then + for schema in kerberos.{schema,ldif,openldap.ldif}; do + vdoc src/plugins/kdb/ldap/libkdb_ldap/$schema + done + fi } mit-krb5-client_package() {