source: scripts/blfs-scripts/blfs-mit-krb5.sh@ c0a1333

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c0a1333 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: 2.4 KB
Line 
1#!/bin/sh
2
3### MIT_KRB5 ###
4# deps
5# zlib
6
7cd ${SRC}
8LOG=mit-krb5-blfs.log
9SELF=`basename ${0}`
10set_buildenv
11set_libdirname
12setup_multiarch
13if [ ! "${libdirname}" = "lib" ]; then
14 extra_conf="--libdir=/usr/${libdirname}"
15fi
16
17# This wont work, we will need to unpack the dist .tar file, then
18# unpack the tarball it contains...
19# Assuming we have stored the src tarball from the dist tarball under
20# ${TARBALLS}
21
22unpack_tarball krb5-${MIT_KRB5_VER} &&
23cd ${PKGDIR}/src
24
25# HACK: for x86_64 biarch, 64bit
26echo "ac_cv_lib_resolv_res_search=${ac_cv_lib_resolv_res_search=yes}" \
27 >> config.cache
28extra_conf="${extra_conf} --cache-file=config.cache"
29
30max_log_init MIT-krb5 ${MIT_KRB5_VER} "native (shared)" ${CONFLOGS} ${LOG}
31CC="gcc ${ARCH_CFLAGS}" \
32CFLAGS="${TGT_CFLAGS}" \
33./configure \
34 --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
35 --enable-dns --enable-shared \
36 --infodir=/usr/share/info --mandir=/usr/share/man \
37 --with-tcl=/usr/${libdirname} ${extra_conf} \
38 >> ${LOGFILE} 2>&1 &&
39# --with-system-db --with-system-et --with-system-ss \
40echo " o Configure OK" &&
41
42min_log_init ${BUILDLOGS} &&
43make ${PMFLAGS} \
44 >> ${LOGFILE} 2>&1 &&
45echo " o Build OK" &&
46
47#min_log_init ${TESTLOGS} &&
48#make test \
49# >> ${LOGFILE} 2>&1 &&
50#echo " o Test OK" &&
51
52min_log_init ${INSTLOGS} &&
53make install \
54 >> ${LOGFILE} 2>&1 &&
55echo " o ALL OK" || barf
56
57# TODO: Revisit these symlinks
58test -f /bin/login.shadow ||
59 mv /bin/login /bin/login.shadow
60ln -sf login.shadow /bin/login
61
62cp /usr/sbin/login.krb5 /bin/login.krb5 &&
63mv /usr/bin/ksu /bin
64
65mv /usr/${libdirname}/libkrb5.so.3* /${libdirname} &&
66ln -sf ../../${libdirname}/libkrb5.so.3 /usr/${libdirname} &&
67ln -sf libkrb5.so.3 /usr/${libdirname}/libkrb5.so
68
69mv /usr/${libdirname}/libkrb4.so.2* /${libdirname} &&
70ln -sf ../../${libdirname}/libkrb4.so.2 /usr/${libdirname} &&
71ln -sf libkrb4.so.2 /usr/${libdirname}/libkrb4.so
72
73mv /usr/${libdirname}/libdes425.so.3* /${libdirname} &&
74ln -sf ../../${libdirname}/libdes425.so.3 /usr/${libdirname} &&
75ln -sf libdes425.so.3 /usr/${libdirname}/libdes425.so
76
77mv /usr/${libdirname}/libk5crypto.so.3* /${libdirname} &&
78ln -sf ../../${libdirname}/libk5crypto.so.3 /usr/${libdirname} &&
79ln -sf libk5crypto.so.3 /usr/${libdirname}/libk5crypto.so
80
81if [ "Y" = "${MULTIARCH}" ]; then
82 use_wrapper /usr/bin/krb5-config
83 create_stub_hdrs /usr/include/krb5.h /usr/include/gssapi/gssapi.h
84fi
85
Note: See TracBrowser for help on using the repository browser.