mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-02 22:07:15 +08:00
Modified the Linux-PAM instructions to install the libraries into /lib and then use the 'readlink' command to create the symlinks so that the instructions are not version specific.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7099 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
4d6d306fcd
commit
6869595169
@ -3,7 +3,7 @@ $LastChangedBy$
|
||||
$Date$
|
||||
-->
|
||||
|
||||
<!ENTITY day "04"> <!-- Always 2 digits -->
|
||||
<!ENTITY day "05"> <!-- Always 2 digits -->
|
||||
<!ENTITY month "09"> <!-- Always 2 digits -->
|
||||
<!ENTITY year "2007">
|
||||
<!ENTITY version "svn-&year;&month;&day;">
|
||||
|
@ -41,6 +41,18 @@
|
||||
|
||||
-->
|
||||
|
||||
<listitem>
|
||||
<para>September 5, 2007</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[randy] - Modified the Linux-PAM instructions to install
|
||||
the libraries into /lib and then use the 'readlink' command to
|
||||
create the symlinks so that the instructions are not version
|
||||
specific.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>September 4, 2007</para>
|
||||
<itemizedlist>
|
||||
|
@ -94,7 +94,7 @@
|
||||
<para>Install <application>Linux-PAM</application> by
|
||||
running the following commands:</para>
|
||||
|
||||
<screen><userinput>./configure --libdir=/usr/lib \
|
||||
<screen><userinput>./configure --libdir=/lib \
|
||||
--sbindir=/lib/security \
|
||||
--enable-securedir=/lib/security \
|
||||
--docdir=/usr/share/doc/Linux-PAM-&linux-pam-version; \
|
||||
@ -123,11 +123,16 @@ make</userinput></screen>
|
||||
|
||||
<screen role="root"><userinput>make install &&
|
||||
chmod -v 4755 /lib/security/unix_chkpwd &&
|
||||
|
||||
mv -v /lib/security/pam_tally /sbin &&
|
||||
mv -v /usr/lib/libpam*.so.0* /lib &&
|
||||
ln -v -sf ../../lib/libpam.so.0.81.6 /usr/lib/libpam.so &&
|
||||
ln -v -sf ../../lib/libpamc.so.0.81.0 /usr/lib/libpamc.so &&
|
||||
ln -v -sf ../../lib/libpam_misc.so.0.81.2 /usr/lib/libpam_misc.so</userinput></screen>
|
||||
|
||||
mv -v /lib/libpam{,c,_misc}.la /usr/lib &&
|
||||
sed -i 's| /lib| /usr/lib|' /usr/lib/libpam_misc.la &&
|
||||
|
||||
for LINK in libpam{,c,_misc}.so; do
|
||||
ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &&
|
||||
rm -v /lib/${LINK}
|
||||
done</userinput></screen>
|
||||
|
||||
<!-- <para>If you downloaded the documentation, install it using the following
|
||||
command:</para>
|
||||
@ -142,14 +147,15 @@ done</userinput></screen> -->
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><parameter>--libdir=/usr/lib</parameter>: This parameter results in
|
||||
<para><parameter>--libdir=/lib</parameter>: This parameter results in
|
||||
the libraries being installed in
|
||||
<filename class='directory'>/usr/lib</filename>.</para>
|
||||
<filename class='directory'>/lib</filename> as they may be required in
|
||||
single-user mode.</para>
|
||||
|
||||
<para><parameter>--sbindir=/lib/security</parameter>: This parameter
|
||||
results in two executables, one which is not intended to be run from the
|
||||
results in two executables, one of which is not intended to be run from the
|
||||
command line, being installed in the same directory as the PAM modules.
|
||||
One of the executables is later moved to the
|
||||
The other executable is later moved to the
|
||||
<filename class='directory'>/sbin</filename> directory.</para>
|
||||
|
||||
<para><parameter>--enable-securedir=/lib/security</parameter>: This
|
||||
@ -173,13 +179,21 @@ done</userinput></screen> -->
|
||||
administrator, possibly in single-user mode, so it is moved to the
|
||||
appropriate directory.</para>
|
||||
|
||||
<para><command>mv -v /usr/lib/libpam*.so.0* /lib</command>: This command
|
||||
moves the dynamic libraries to <filename class='directory'>/lib</filename>
|
||||
as they may be required in single user mode.</para>
|
||||
<para><command>mv -v /lib/libpam{,c,_misc}.la /usr/lib</command>: This
|
||||
command moves the <application>Libtool</application> library files to
|
||||
<filename class='directory'>/usr/lib</filename> as they are expected to
|
||||
reside there.</para>
|
||||
|
||||
<para><command>ln -v -sf ...</command>: These commands recreate the
|
||||
<filename class='symlink'>.so</filename> symlinks as the libraries they
|
||||
pointed to were moved to <filename class='directory'>/lib</filename>.</para>
|
||||
<para><command>sed -i 's| /lib| /usr/lib|'
|
||||
/usr/lib/libpam_misc.la</command>: This command corrects an installation
|
||||
reference due to the file being moved in the previous step.</para>
|
||||
|
||||
<para><command>for ...; do ...; done</command>: These commands are used
|
||||
to relocate the <filename class='symlink'>.so</filename> files into
|
||||
<filename class='directory'>/usr/lib</filename>. The
|
||||
<command>readlink</command> command is used so that the commands are not
|
||||
specific to the names of the libraries, and will work regardless of the
|
||||
version number extensions of the library names.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user