source: scripts/blfs-scripts/blfs-linux-pam.sh@ 60454e2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 60454e2 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.1 KB
RevLine 
[617118d]1#!/bin/bash
2
3### Linux-PAM ###
4cd ${SRC}
5
6LOG=linux-pam-blfs.log
7SELF=`basename ${0}`
8set_buildenv
9set_libdirname
10setup_multiarch
11if [ ! "${libdirname}" = "lib" ]; then
12 extra_conf="--libdir=/${libdirname}"
13fi
14
15unpack_tarball Linux-PAM-${LINUX_PAM_VER}
16cd ${PKGDIR}
17
18apply_patch Linux-PAM-0.77-linkage-3
19autoconf
20
21# Fixes
22sed -i -e "s@^LD\(\|_L\)=.*@& ${ARCH_LDFLAGS}@g" Make.Rules.in
23sed -i -e "s@^\(CC\|CC_STATIC\|LD_D\)=.*@& ${ARCH_CFLAGS} -fPIC@g" Make.Rules.in
24
25max_log_init Linux-PAM ${LINUX_PAM_VER} "native (shared)" ${CONFLOGS} ${LOG}
26./configure --enable-static-libpam --with-mailspool=/var/mail \
27 --enable-read-both-confs --sysconfdir=/etc ${extra_conf} \
28 >> ${LOGFILE} 2>&1 &&
29echo " o Configure OK" &&
30
31min_log_init ${BUILDLOGS} &&
32make CC="gcc ${ARCH_CFLAGS} -fPIC" \
33 >> ${LOGFILE} 2>&1 &&
34echo " o Build OK" &&
35
36min_log_init ${INSTLOGS} &&
37make install \
38 >> ${LOGFILE} 2>&1 &&
39echo " o ALL OK" || barf
40
41mv /${libdirname}/libpam.a /${libdirname}/libpam_misc.a /${libdirname}/libpamc.a \
42 /usr/${libdirname} &&
43
44ln -sf ../../${libdirname}/libpam.so.0.77 /usr/${libdirname}/libpam.so &&
45ln -sf libpam.so.0.77 /${libdirname}/libpam.so.0 &&
46ln -sf ../../${libdirname}/libpam_misc.so.0.77 /usr/${libdirname}/libpam_misc.so &&
47ln -sf libpam_misc.so.0.77 /${libdirname}/libpam_misc.so.0 &&
48ln -sf ../../${libdirname}/libpamc.so.0.77 /usr/${libdirname}/libpamc.so
49ln -sf libpamc.so.0.77 /${libdirname}/libpamc.so.0
50
51# Create some sample pam files
52mkdir /etc/pam.d
53cat > /etc/pam.d/other <<EOF
54# Begin /etc/pam.d/other
55
56auth required pam_unix.so nullok
57account required pam_unix.so
58session required pam_unix.so
59password required pam_unix.so nullok
60
61# End /etc/pam.d/other
62EOF
63
64cat > /etc/pam.conf <<EOF
65# Begin /etc/pam.conf
66
67other auth required pam_unix.so nullok
68other account required pam_unix.so
69other session required pam_unix.so
70other password required pam_unix.so nullok
71
72# End /etc/pam.conf
73EOF
74
Note: See TracBrowser for help on using the repository browser.