source: scripts/blfs-scripts/blfs-cyrus-sasl.sh@ 7882dc5

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7882dc5 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.8 KB
Line 
1#!/bin/sh
2#
3# Cyrus-SASL
4#
5cd ${SRC}
6LOG=cyrus-sasl-blfs.log
7SELF=`basename ${0}`
8set_buildenv
9set_libdirname
10setup_multiarch
11
12unpack_tarball cyrus-sasl-${CYRUS_SASL_VER} &&
13cd ${PKGDIR}
14
15# Apply patch to adjust the install location of the plugins so that
16# it installs under ${libdir}/sasl2, instead of the default /usr/lib/sasl2
17# This is so bi-arch builds stay neat
18apply_patch cyrus-sasl-2.1.20-set_plugindir_from_libdir
19
20# Fix brokenness with gcc4
21apply_patch cyrus-sasl-2.1.20-gcc4_fixes
22
23max_log_init Cyrus-SASL ${CYRUS_SASL_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
24#CC="${CC-gcc} ${ARCH_CFLAGS}" \
25#./configure --prefix=/usr --sysconfdir=/etc ${extra_conf} \
26# --with-dbpath=/var/lib/sasl/sasldb2 --with-saslauthd=/var/run \
27# >> ${LOGFILE} 2>&1 &&
28#echo " o Configure OK" &&
29CC="${CC-gcc} ${ARCH_CFLAGS}" \
30CFLAGS="${TGT_CFLAGS}" \
31./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/${libdirname} \
32 --with-dbpath=/var/lib/sasl2/sasldb2 --with-saslauthd=/var/lib/sasl2 \
33 --with-dblib=berkeley --with-openssl \
34 --mandir=/usr/share/man --infodir=/usr/share/info \
35 --enable-login \
36 --enable-plain \
37 --enable-ntlm \
38 --enable-gssapi \
39 --disable-krb4 \
40 --disable-otp \
41 >> ${LOGFILE} 2>&1 &&
42echo " o Configure OK" &&
43# --with-plugindir=/usr/lib/sasl2 \
44
45# Doesn't like to be built parallel
46min_log_init ${BUILDLOGS} &&
47make LDFLAGS="-s" \
48 >> ${LOGFILE} 2>&1 &&
49echo " o Build OK" &&
50
51min_log_init ${INSTLOGS} &&
52make install \
53 >> ${LOGFILE} 2>&1 &&
54echo " o ALL OK" || barf
55
56install -m644 -oroot -groot saslauthd/saslauthd.mdoc \
57 /usr/share/man/man8/saslauthd.8 &&
58install -d -m755 /usr/share/doc/sasl &&
59install -m644 -oroot -groot doc/{*.{html,txt,fig},ONEWS,TODO} \
60 /usr/share/doc/sasl &&
61install -m644 -oroot -groot saslauthd/LDAP_SASLAUTHD \
62 /usr/share/doc/sasl &&
63install -d -m755 /var/lib/sasl2
64
Note: See TracBrowser for help on using the repository browser.