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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | ### OPENLDAP ###
|
---|
| 4 | # deps
|
---|
| 5 | # zlib
|
---|
| 6 | # krb5 (optional)
|
---|
| 7 | # TODO: for krb5 support some hackery is required
|
---|
| 8 |
|
---|
| 9 | cd ${SRC}
|
---|
| 10 | LOG=openldap-blfs.log
|
---|
| 11 | SELF=`basename ${0}`
|
---|
| 12 | set_buildenv
|
---|
| 13 | set_libdirname
|
---|
| 14 | setup_multiarch
|
---|
| 15 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 16 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 17 | fi
|
---|
| 18 |
|
---|
| 19 | unpack_tarball openldap-${OPENLDAP_VER} &&
|
---|
| 20 | cd ${PKGDIR}
|
---|
| 21 |
|
---|
| 22 | max_log_init OpenLDAP ${OPENLDAP_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
| 23 | # May not need extra LDFLAGS...
|
---|
| 24 | CC="${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 &&
|
---|
| 36 | echo " o Configure OK" &&
|
---|
| 37 | # --disable-debug \
|
---|
| 38 |
|
---|
| 39 | # default is without this
|
---|
| 40 | # --enable-dynamic \
|
---|
| 41 |
|
---|
| 42 | min_log_init ${BUILDLOGS} &&
|
---|
| 43 | make depend \
|
---|
| 44 | >> ${LOGFILE} 2>&1 &&
|
---|
| 45 | make \
|
---|
| 46 | >> ${LOGFILE} 2>&1 &&
|
---|
| 47 | echo " o Build OK" || barf
|
---|
| 48 |
|
---|
| 49 | min_log_init ${TESTLOGS} &&
|
---|
| 50 | env -i make test \
|
---|
| 51 | >> ${LOGFILE} 2>&1 &&
|
---|
| 52 | echo " o Test OK" || barf
|
---|
| 53 |
|
---|
| 54 | min_log_init ${INSTLOGS} &&
|
---|
| 55 | make install \
|
---|
| 56 | >> ${LOGFILE} 2>&1 &&
|
---|
| 57 | echo " o ALL OK" || barf
|
---|
| 58 |
|
---|
| 59 | # create a slapd wrapper script so we can specify the krb5 keytab
|
---|
| 60 | file /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
|
---|
| 66 | env KRB5_KTNAME=/etc/openldap/slapd.keytab /usr/${libdiriname}/openldap/slapd \${@}
|
---|
| 67 |
|
---|
| 68 | EOF
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 | chmod 755 /usr/sbin/slapd
|
---|
| 72 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.