mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
Update to Linux-PAM-0.80, corret sed in shadow
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4770 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
b26339bedc
commit
4c700d3fe5
@ -31,7 +31,7 @@
|
||||
<!-- Chapter 4 -->
|
||||
<!ENTITY openssl-version "0.9.7g">
|
||||
<!ENTITY cracklib-version "2.8.3">
|
||||
<!ENTITY Linux_PAM-version "0.78">
|
||||
<!ENTITY Linux_PAM-version "0.80">
|
||||
<!ENTITY shadow-version "4.0.9">
|
||||
<!ENTITY iptables-version "1.3.1">
|
||||
<!ENTITY gnupg-version "1.4.1">
|
||||
|
@ -24,6 +24,11 @@
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem>
|
||||
<para>July 24th 2005 [dj]: Updated to Linux-PAM-0.80 and corrected
|
||||
sed for /etc/login.defs in Shadow instructions.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>July 24th 2005 [randy]: Updated to CrackLib-2.8.3.</para>
|
||||
</listitem>
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
<!ENTITY Linux_PAM-download-http "http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&Linux_PAM-version;.tar.bz2">
|
||||
<!ENTITY Linux_PAM-download-ftp "ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&Linux_PAM-version;.tar.bz2">
|
||||
<!ENTITY Linux_PAM-md5sum "34938b4f2449d4d3b2ffdbf354257205">
|
||||
<!ENTITY Linux_PAM-size "364 KB">
|
||||
<!ENTITY Linux_PAM-buildsize "11.4 MB">
|
||||
<!ENTITY Linux_PAM-time "0.17 SBU">
|
||||
<!ENTITY Linux_PAM-md5sum "ccff87fe639efdfc22b1ba4a0f08ec57">
|
||||
<!ENTITY Linux_PAM-size "376 KB">
|
||||
<!ENTITY Linux_PAM-buildsize "8.6 MB">
|
||||
<!ENTITY Linux_PAM-time "0.15 SBU">
|
||||
]>
|
||||
|
||||
<sect1 id="Linux_PAM" xreflabel="Linux-PAM-&Linux_PAM-version;">
|
||||
@ -57,19 +57,11 @@
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
||||
<itemizedlist spacing='compact'>
|
||||
<title>Patches</title>
|
||||
<listitem>
|
||||
<para>Required patch: <ulink
|
||||
url="&patch-root;/Linux-PAM-&Linux_PAM-version;-linkage-2.patch"/></para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<itemizedlist spacing='compact'>
|
||||
<title>Documentation</title>
|
||||
<listitem>
|
||||
<para>Optional documentation: <ulink
|
||||
url="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.78-docs.tar.bz2"/>
|
||||
url="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&Linux_PAM-version;-docs.tar.bz2"/>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
@ -92,17 +84,18 @@
|
||||
<para>Install <application>Linux-PAM</application> by
|
||||
running the following commands:</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../Linux-PAM-&Linux_PAM-version;-linkage-2.patch &&
|
||||
<screen><userinput>sed -i 's@DICT_DIR_CANDIDATES="@DICT_DIR_CANDIDATES="/lib /lib/cracklib @' \
|
||||
configure.in &&
|
||||
autoconf &&
|
||||
sed -i 's/(mandir)/(MANDIR)/g' modules/Simple.Rules &&
|
||||
./configure --enable-static-libpam --with-mailspool=/var/mail \
|
||||
--enable-read-both-confs --sysconfdir=/etc &&
|
||||
--enable-read-both-confs --sysconfdir=/etc \
|
||||
--mandir=/usr/share/man &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>If you downloaded the documentation and wish to install it, unpack the
|
||||
tarball into the <filename class='directory'>doc</filename> directory:</para>
|
||||
|
||||
<screen><userinput>tar -jxf ../Linux-PAM-0.78-docs.tar.bz2 -C doc</userinput></screen>
|
||||
<screen><userinput>tar -jxf ../Linux-PAM-&Linux_PAM-version;-docs.tar.bz2 -C doc</userinput></screen>
|
||||
|
||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
@ -126,13 +119,13 @@ done</userinput></screen>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>autoconf</command>: This is necessary because the
|
||||
patch changes where PAM looks for the <application>cracklib</application>
|
||||
libraries, requiring regeneration of the configure script.</para>
|
||||
<para><command>sed -i 's@CANDIDATES="@CANDIDATES="/lib
|
||||
/lib/cracklib @' configure.in</command>: This command
|
||||
changes where configure looks to find the cracklib_dict.</para>
|
||||
|
||||
<para><command>sed -i 's/(mandir)/(MANDIR)/g' modules/Simple.Rules</command>:
|
||||
This command puts the module manpages with the rest of the manpages in
|
||||
<filename>/usr/share/man</filename>.</para>
|
||||
<para><command>autoconf</command>: This is necessary because the
|
||||
sed changes where PAM looks for the <application>cracklib</application>
|
||||
libraries, requiring regeneration of the configure script.</para>
|
||||
|
||||
<para><parameter>--enable-static-libpam</parameter>: This switch builds
|
||||
static PAM libraries as well as the dynamic libraries.</para>
|
||||
|
@ -366,7 +366,8 @@ fi</userinput></screen>
|
||||
SU_WHEEL_ONLY MD5_CRYPT_ENAB \
|
||||
CONSOLE_GROUPS ENVIRON_FILE \
|
||||
ULIMIT ENV_TZ ENV_HZ ENV_SUPATH \
|
||||
ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE
|
||||
ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE \
|
||||
CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE
|
||||
do
|
||||
sed -i -e "s/^$FUNCTION/# &/" /etc/login.defs
|
||||
done</userinput></screen>
|
||||
|
Loading…
Reference in New Issue
Block a user