source: scripts/blfs-scripts/blfs-openldap.sh@ 873009c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.6 KB
Line 
1#!/bin/sh
2
3### OPENLDAP ###
4# deps
5# zlib
6# krb5 (optional)
7# TODO: for krb5 support some hackery is required
8
9cd ${SRC}
10LOG=openldap-blfs.log
11SELF=`basename ${0}`
12set_buildenv
13set_libdirname
14setup_multiarch
15if [ ! "${libdirname}" = "lib" ]; then
16 extra_conf="--libdir=/usr/${libdirname}"
17fi
18
19unpack_tarball openldap-${OPENLDAP_VER} &&
20cd ${PKGDIR}
21
22max_log_init OpenLDAP ${OPENLDAP_VER} "native (shared)" ${CONFLOGS} ${LOG}
23# May not need extra LDFLAGS...
24CC="${CC-gcc} ${ARCH_CFLAGS}" LDFLAGS="-lpthread" CFLAGS="${TGT_CFLAGS}" \
25./configure --prefix=/usr \
26 --libexecdir=/usr/${libdirname}/openldap ${extra_conf} \
27 --infodir=/usr/share/info --mandir=/usr/share/man \
28 --sysconfdir=/etc \
29 --localstatedir=/var/lib/ldap \
30 --enable-bdb \
31 --enable-wrappers \
32 --with-cyrus-sasl \
33 --enable-crypt \
34 --enable-spasswd \
35 >> ${LOGFILE} 2>&1 &&
36echo " o Configure OK" &&
37# --disable-debug \
38
39# default is without this
40# --enable-dynamic \
41
42min_log_init ${BUILDLOGS} &&
43make depend \
44 >> ${LOGFILE} 2>&1 &&
45make \
46 >> ${LOGFILE} 2>&1 &&
47echo " o Build OK" || barf
48
49min_log_init ${TESTLOGS} &&
50env -i make test \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Test OK" || barf
53
54min_log_init ${INSTLOGS} &&
55make install \
56 >> ${LOGFILE} 2>&1 &&
57echo " o ALL OK" || barf
58
59# create a slapd wrapper script so we can specify the krb5 keytab
60file /usr/sbin/slapd | grep -q text || {
61 cat > /usr/sbin/slapd <<EOF
62#!/bin/sh
63# slapd wrapper script
64#
65# export the location of the krb5 keytab for slapd
66env KRB5_KTNAME=/etc/openldap/slapd.keytab /usr/${libdiriname}/openldap/slapd \${@}
67
68EOF
69}
70
71chmod 755 /usr/sbin/slapd
72
Note: See TracBrowser for help on using the repository browser.