* imported qemu/hotfix-glibc-2.41.patch
[t2sde.git] / package / network / pam_ldap / pam_ldap.conf
blobd655697fab956384b36fc6b2f7717dd5721c5fe5
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/pam_ldap/pam_ldap.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ "$prefix_auto" = 1 ]; then
14         prefix=
15         set_confopt
18 pkgprefix -t openldap
20 var_append confopt ' ' "--with-ldap-dir=$root/`pkgprefix openldap`"
21 var_append confopt ' ' "--with-ldap-conf-file=$root`pkgprefix sysconfdir openldap`/ldap.conf"
22 var_append confopt ' ' "--with-ldap-secret-file=$root`pkgprefix sysconfdir openldap`/ldap.secret"
24 hook_add postmake 3 "cp -avP pam.d $root$docdir/"
25 hook_add postpatch 5 'mv -v chfn chfn.in; mv -v chsh chsh.in'
27 # 64bit libdir fix
28 fix64_pam_ldap() {
29         sed -i "s,with_ldap_dir[/]lib,with_ldap_dir/${libdir##*/},g" configure.in
30         aclocal; autoconf
32 [[ $libdir = *lib64 ]] && hook_add preconf 5 fix64_pam_ldap