[617118d] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # Cyrus-SASL
|
---|
| 4 | #
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=cyrus-sasl-blfs.log
|
---|
| 7 | SELF=`basename ${0}`
|
---|
| 8 | set_buildenv
|
---|
| 9 | set_libdirname
|
---|
| 10 | setup_multiarch
|
---|
| 11 |
|
---|
| 12 | unpack_tarball cyrus-sasl-${CYRUS_SASL_VER} &&
|
---|
| 13 | cd ${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
|
---|
| 18 | apply_patch cyrus-sasl-2.1.20-set_plugindir_from_libdir
|
---|
| 19 |
|
---|
| 20 | # Fix brokenness with gcc4
|
---|
| 21 | apply_patch cyrus-sasl-2.1.20-gcc4_fixes
|
---|
| 22 |
|
---|
| 23 | max_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" &&
|
---|
| 29 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 30 | CFLAGS="${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 &&
|
---|
| 42 | echo " o Configure OK" &&
|
---|
| 43 | # --with-plugindir=/usr/lib/sasl2 \
|
---|
| 44 |
|
---|
| 45 | # Doesn't like to be built parallel
|
---|
| 46 | min_log_init ${BUILDLOGS} &&
|
---|
| 47 | make LDFLAGS="-s" \
|
---|
| 48 | >> ${LOGFILE} 2>&1 &&
|
---|
| 49 | echo " o Build OK" &&
|
---|
| 50 |
|
---|
| 51 | min_log_init ${INSTLOGS} &&
|
---|
| 52 | make install \
|
---|
| 53 | >> ${LOGFILE} 2>&1 &&
|
---|
| 54 | echo " o ALL OK" || barf
|
---|
| 55 |
|
---|
| 56 | install -m644 -oroot -groot saslauthd/saslauthd.mdoc \
|
---|
| 57 | /usr/share/man/man8/saslauthd.8 &&
|
---|
| 58 | install -d -m755 /usr/share/doc/sasl &&
|
---|
| 59 | install -m644 -oroot -groot doc/{*.{html,txt,fig},ONEWS,TODO} \
|
---|
| 60 | /usr/share/doc/sasl &&
|
---|
| 61 | install -m644 -oroot -groot saslauthd/LDAP_SASLAUTHD \
|
---|
| 62 | /usr/share/doc/sasl &&
|
---|
| 63 | install -d -m755 /var/lib/sasl2
|
---|
| 64 |
|
---|