Ignore:
Timestamp:
09/05/2007 01:00:16 AM (17 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
821b3bfc
Parents:
4d6d306
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/linux-pam.xml

    r4d6d306 r6869595  
    9595    running the following commands:</para>
    9696
    97 <screen><userinput>./configure --libdir=/usr/lib \
     97<screen><userinput>./configure --libdir=/lib \
    9898            --sbindir=/lib/security \
    9999            --enable-securedir=/lib/security \
     
    124124<screen role="root"><userinput>make install &amp;&amp;
    125125chmod -v 4755 /lib/security/unix_chkpwd &amp;&amp;
     126
    126127mv -v /lib/security/pam_tally /sbin &amp;&amp;
    127 mv -v /usr/lib/libpam*.so.0* /lib &amp;&amp;
    128 ln -v -sf ../../lib/libpam.so.0.81.6 /usr/lib/libpam.so &amp;&amp;
    129 ln -v -sf ../../lib/libpamc.so.0.81.0 /usr/lib/libpamc.so &amp;&amp;
    130 ln -v -sf ../../lib/libpam_misc.so.0.81.2 /usr/lib/libpam_misc.so</userinput></screen>
     128
     129mv -v /lib/libpam{,c,_misc}.la /usr/lib &amp;&amp;
     130sed -i 's| /lib| /usr/lib|' /usr/lib/libpam_misc.la &amp;&amp;
     131
     132for LINK in libpam{,c,_misc}.so; do
     133    ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &amp;&amp;
     134    rm -v /lib/${LINK}
     135done</userinput></screen>
    131136
    132137    <!-- <para>If you downloaded the documentation, install it using the following
     
    143148    <title>Command Explanations</title>
    144149
    145     <para><parameter>--libdir=/usr/lib</parameter>: This parameter results in
     150    <para><parameter>--libdir=/lib</parameter>: This parameter results in
    146151    the libraries being installed in
    147     <filename class='directory'>/usr/lib</filename>.</para>
     152    <filename class='directory'>/lib</filename> as they may be required in
     153    single-user mode.</para>
    148154
    149155    <para><parameter>--sbindir=/lib/security</parameter>: This parameter
    150     results in two executables, one which is not intended to be run from the
     156    results in two executables, one of which is not intended to be run from the
    151157    command line, being installed in the same directory as the PAM modules.
    152     One of the executables is later moved to the
     158    The other executable is later moved to the
    153159    <filename class='directory'>/sbin</filename> directory.</para>
    154160
     
    174180    appropriate directory.</para>
    175181
    176     <para><command>mv -v /usr/lib/libpam*.so.0* /lib</command>: This command
    177     moves the dynamic libraries to <filename class='directory'>/lib</filename>
    178     as they may be required in single user mode.</para>
    179 
    180     <para><command>ln -v -sf ...</command>: These commands recreate the
    181     <filename class='symlink'>.so</filename> symlinks as the libraries they
    182     pointed to were moved to <filename class='directory'>/lib</filename>.</para>
     182    <para><command>mv -v /lib/libpam{,c,_misc}.la /usr/lib</command>: This
     183    command moves the <application>Libtool</application> library files to
     184    <filename class='directory'>/usr/lib</filename> as they are expected to
     185    reside there.</para>
     186
     187    <para><command>sed -i 's| /lib| /usr/lib|'
     188    /usr/lib/libpam_misc.la</command>: This command corrects an installation
     189    reference due to the file being moved in the previous step.</para>
     190
     191    <para><command>for ...; do ...; done</command>: These commands are used
     192    to relocate the <filename class='symlink'>.so</filename> files into
     193    <filename class='directory'>/usr/lib</filename>. The
     194    <command>readlink</command> command is used so that the commands are not
     195    specific to the names of the libraries, and will work regardless of the
     196    version number extensions of the library names.</para>
    183197
    184198  </sect2>
Note: See TracChangeset for help on using the changeset viewer.