1 | #!/bin/sh
|
---|
2 |
|
---|
3 | ### MIT_KRB5 ###
|
---|
4 | # deps
|
---|
5 | # zlib
|
---|
6 |
|
---|
7 | cd ${SRC}
|
---|
8 | LOG=mit-krb5-blfs.log
|
---|
9 | SELF=`basename ${0}`
|
---|
10 | set_buildenv
|
---|
11 | set_libdirname
|
---|
12 | setup_multiarch
|
---|
13 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
14 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
15 | fi
|
---|
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 |
|
---|
22 | unpack_tarball krb5-${MIT_KRB5_VER} &&
|
---|
23 | cd ${PKGDIR}/src
|
---|
24 |
|
---|
25 | # HACK: for x86_64 biarch, 64bit
|
---|
26 | echo "ac_cv_lib_resolv_res_search=${ac_cv_lib_resolv_res_search=yes}" \
|
---|
27 | >> config.cache
|
---|
28 | extra_conf="${extra_conf} --cache-file=config.cache"
|
---|
29 |
|
---|
30 | max_log_init MIT-krb5 ${MIT_KRB5_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
31 | CC="gcc ${ARCH_CFLAGS}" \
|
---|
32 | CFLAGS="${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 \
|
---|
40 | echo " o Configure OK" &&
|
---|
41 |
|
---|
42 | min_log_init ${BUILDLOGS} &&
|
---|
43 | make ${PMFLAGS} \
|
---|
44 | >> ${LOGFILE} 2>&1 &&
|
---|
45 | echo " o Build OK" &&
|
---|
46 |
|
---|
47 | #min_log_init ${TESTLOGS} &&
|
---|
48 | #make test \
|
---|
49 | # >> ${LOGFILE} 2>&1 &&
|
---|
50 | #echo " o Test OK" &&
|
---|
51 |
|
---|
52 | min_log_init ${INSTLOGS} &&
|
---|
53 | make install \
|
---|
54 | >> ${LOGFILE} 2>&1 &&
|
---|
55 | echo " o ALL OK" || barf
|
---|
56 |
|
---|
57 | # TODO: Revisit these symlinks
|
---|
58 | test -f /bin/login.shadow ||
|
---|
59 | mv /bin/login /bin/login.shadow
|
---|
60 | ln -sf login.shadow /bin/login
|
---|
61 |
|
---|
62 | cp /usr/sbin/login.krb5 /bin/login.krb5 &&
|
---|
63 | mv /usr/bin/ksu /bin
|
---|
64 |
|
---|
65 | mv /usr/${libdirname}/libkrb5.so.3* /${libdirname} &&
|
---|
66 | ln -sf ../../${libdirname}/libkrb5.so.3 /usr/${libdirname} &&
|
---|
67 | ln -sf libkrb5.so.3 /usr/${libdirname}/libkrb5.so
|
---|
68 |
|
---|
69 | mv /usr/${libdirname}/libkrb4.so.2* /${libdirname} &&
|
---|
70 | ln -sf ../../${libdirname}/libkrb4.so.2 /usr/${libdirname} &&
|
---|
71 | ln -sf libkrb4.so.2 /usr/${libdirname}/libkrb4.so
|
---|
72 |
|
---|
73 | mv /usr/${libdirname}/libdes425.so.3* /${libdirname} &&
|
---|
74 | ln -sf ../../${libdirname}/libdes425.so.3 /usr/${libdirname} &&
|
---|
75 | ln -sf libdes425.so.3 /usr/${libdirname}/libdes425.so
|
---|
76 |
|
---|
77 | mv /usr/${libdirname}/libk5crypto.so.3* /${libdirname} &&
|
---|
78 | ln -sf ../../${libdirname}/libk5crypto.so.3 /usr/${libdirname} &&
|
---|
79 | ln -sf libk5crypto.so.3 /usr/${libdirname}/libk5crypto.so
|
---|
80 |
|
---|
81 | if [ "Y" = "${MULTIARCH}" ]; then
|
---|
82 | use_wrapper /usr/bin/krb5-config
|
---|
83 | create_stub_hdrs /usr/include/krb5.h /usr/include/gssapi/gssapi.h
|
---|
84 | fi
|
---|
85 |
|
---|