r1085 - in trunk/BOOK: . final-system/common final-system/multilib introduction/common materials/common

chris at linuxfromscratch.org chris at linuxfromscratch.org
Thu Jan 19 09:19:03 PST 2006


Author: chris
Date: 2006-01-19 10:19:02 -0700 (Thu, 19 Jan 2006)
New Revision: 1085

Modified:
   trunk/BOOK/final-system/common/shadow.xml
   trunk/BOOK/final-system/multilib/shadow-64bit.xml
   trunk/BOOK/final-system/multilib/shadow-n32.xml
   trunk/BOOK/final-system/multilib/shadow.xml
   trunk/BOOK/general.ent
   trunk/BOOK/introduction/common/changelog.xml
   trunk/BOOK/materials/common/patches.xml
Log:
Removed shadow configure patch

Modified: trunk/BOOK/final-system/common/shadow.xml
===================================================================
--- trunk/BOOK/final-system/common/shadow.xml	2006-01-17 21:01:38 UTC (rev 1084)
+++ trunk/BOOK/final-system/common/shadow.xml	2006-01-19 17:19:02 UTC (rev 1085)
@@ -42,44 +42,65 @@
       command below.</para>
     </note>
 
-    <para os="p1">Shadow has selinux, pam, and auditing defaulted to on. The
-     following patch properly fixes this issue:</para>
+    <para os="b">Prepare Shadow for compilation:</para>
 
-<screen os="p2"><userinput>patch -Np1 -i ../&shadow-configure_fix-patch;</userinput></screen>
+<screen os="c"><userinput>./configure --libdir=/lib --enable-shared \
+    --without-libpam --without-audit --without-selinux</userinput></screen>
 
-    <para os="b">Prepare Shadow for compilation:</para>
+<para os="d">The meaning of the configure options:</para>
 
-<screen os="c"><userinput>./configure --libdir=/lib --enable-shared</userinput></screen>
+  <variablelist os="e">
+    <varlistentry>
+      <term><parameter>--without-libpam</parameter></term>
+      <listitem><para>Support for Linux-PAM is enabled by default in Shadow,
+      however PAM is not installed on a base LFS system, so this switch
+      disables PAM support in Shadow. For instructions to install PAM and
+      link Shadow to it, you can look at
+      <ulink url="&blfs-root;view/svn/postlfs/shadow.html"/>.</para></listitem>
+    </varlistentry>
+    <varlistentry>
+      <term><parameter>--without-audit</parameter></term>
+      <listitem><para>Support for auditing is enabled by default, but a
+      a library that it needs is not installed in a base LFS system. This
+      switch disables auditing support.</para></listitem>
+    </varlistentry>
+    <varlistentry>
+      <term><parameter>--without-selinux</parameter></term>
+      <listitem><para>Support for selinux is enabled by default, but selinux
+      is not built in a base LFS system and configure will fail without this
+      switch.</para></listitem>
+    </varlistentry>
+  </variablelist>
 
-    <para os="d">Disable the installation of the <command>groups</command>
+    <para os="f">Disable the installation of the <command>groups</command>
     program and its man page, as Coreutils provides a better version:</para>
 
-<screen os="e"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
+<screen os="g"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
 sed -i '/groups/d' man/Makefile</userinput></screen>
 
-    <para os="f">Compile the package:</para>
+    <para os="h">Compile the package:</para>
 
-<screen os="g"><userinput>make</userinput></screen>
+<screen os="i"><userinput>make</userinput></screen>
 
-    <para os="h">Install the package:</para>
+    <para os="j">Install the package:</para>
 
-<screen os="i"><userinput>make install</userinput></screen>
+<screen os="k"><userinput>make install</userinput></screen>
 
-    <para id="shadow-limits-login_access" os="j">Shadow uses two files to configure
+    <para id="shadow-limits-login_access" os="l">Shadow uses two files to configure
     authentication settings for the system. Install these two configuration
     files:</para>
 
-    <indexterm zone="shadow-limits-login_access" os="k">
+    <indexterm zone="shadow-limits-login_access" os="m">
       <primary sortas="e-/etc/limits">/etc/limits</primary>
     </indexterm>
 
-    <indexterm zone="shadow-limits-login_access" os="l">
+    <indexterm zone="shadow-limits-login_access" os="n">
       <primary sortas="e-/etc/login.access">/etc/login.access</primary>
     </indexterm>
 
-<screen os="m"><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
+<screen os="o"><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
 
-    <para id="shadow-login_defs" os="n">Instead of using the default
+    <para id="shadow-login_defs" os="p">Instead of using the default
     <emphasis>crypt</emphasis> method, use the more secure
     <emphasis>MD5</emphasis> method of password encryption, which also allows
     passwords longer than 8 characters. It is also necessary to change the
@@ -89,37 +110,37 @@
     these can be accomplished by changing the relevant configuration file
     while copying it to its destination:</para>
 
-    <indexterm zone="shadow-login_defs" os="o">
+    <indexterm zone="shadow-login_defs" os="q">
       <primary sortas="e-/etc/login.defs">/etc/login.defs</primary>
     </indexterm>
 
-    <note os="p">
+    <note os="r">
       <para>If you built Shadow with Cracklib support, insert the following into
       the <command>sed</command> given below:</para>
 
 <screen><literal>-e 's at DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@'</literal></screen>
     </note>
 
-<screen os="q"><userinput>sed -e's@#MD5_CRYPT_ENAB.no at MD5_CRYPT_ENAB yes@' \
+<screen os="s"><userinput>sed -e's@#MD5_CRYPT_ENAB.no at MD5_CRYPT_ENAB yes@' \
     -e 's@/var/spool/mail@/var/mail@' \
     etc/login.defs > /etc/login.defs</userinput></screen>
 
-    <para os="r">Move a misplaced program to its proper location:</para>
+    <para os="t">Move a misplaced program to its proper location:</para>
 
-<screen os="s"><userinput>mv /usr/bin/passwd /bin</userinput></screen>
+<screen os="u"><userinput>mv /usr/bin/passwd /bin</userinput></screen>
 
-    <para os="t">Move Shadow's dynamic libraries to a more appropriate
+    <para os="v">Move Shadow's dynamic libraries to a more appropriate
     location:</para>
 
-<screen os="u"><userinput>mv /lib/libshadow.*a /usr/lib
+<screen os="w"><userinput>mv /lib/libshadow.*a /usr/lib
 rm /lib/libshadow.so
 ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
 
-    <para os="v">The <option>-D</option> option of the <command>useradd</command>
+    <para os="x">The <option>-D</option> option of the <command>useradd</command>
     program requires the <filename class="directory">/etc/default</filename>
     directory for it to work properly:</para>
 
-<screen os="w"><userinput>install -d /etc/default</userinput></screen>
+<screen os="y"><userinput>install -d /etc/default</userinput></screen>
 
   </sect2>
 

Modified: trunk/BOOK/final-system/multilib/shadow-64bit.xml
===================================================================
--- trunk/BOOK/final-system/multilib/shadow-64bit.xml	2006-01-17 21:01:38 UTC (rev 1084)
+++ trunk/BOOK/final-system/multilib/shadow-64bit.xml	2006-01-19 17:19:02 UTC (rev 1085)
@@ -38,18 +38,10 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
-    xpointer="xpointer(//*[@os='p1'])"/>
-
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="shadow.xml"
-    xpointer="xpointer(//*[@os='p2'])"/>
-
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="shadow.xml"
     xpointer="xpointer(//*[@os='b'])"/>
 
 <screen os="c"><userinput>CC="gcc ${BUILD64}" ./configure --libdir=/lib64 \
-   --enable-shared</userinput></screen>
+   --enable-shared --without-libpam --without-audit --without-selinux</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
@@ -76,11 +68,11 @@
     xpointer="xpointer(//*[@os='i'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../common/shadow.xml"
+    href="shadow.xml"
     xpointer="xpointer(//*[@os='j'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../common/shadow.xml"
+    href="shadow.xml"
     xpointer="xpointer(//*[@os='k'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
@@ -108,28 +100,36 @@
     xpointer="xpointer(//*[@os='q'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="shadow.xml"
+    href="../common/shadow.xml"
     xpointer="xpointer(//*[@os='r'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="shadow.xml"
+    href="../common/shadow.xml"
     xpointer="xpointer(//*[@os='s'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
     xpointer="xpointer(//*[@os='t'])"/>
 
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="shadow.xml"
+    xpointer="xpointer(//*[@os='u'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="shadow.xml"
+    xpointer="xpointer(//*[@os='v'])"/>
+
 <screen os="u"><userinput>mv /lib64/libshadow.*a /usr/lib64
 rm /lib64/libshadow.so
 ln -sf ../../lib64/libshadow.so.0 /usr/lib64/libshadow.so</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/shadow.xml"
-    xpointer="xpointer(//*[@os='v'])"/>
+    xpointer="xpointer(//*[@os='x'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/shadow.xml"
-    xpointer="xpointer(//*[@os='w'])"/>
+    xpointer="xpointer(//*[@os='y'])"/>
 
   </sect2>
 

Modified: trunk/BOOK/final-system/multilib/shadow-n32.xml
===================================================================
--- trunk/BOOK/final-system/multilib/shadow-n32.xml	2006-01-17 21:01:38 UTC (rev 1084)
+++ trunk/BOOK/final-system/multilib/shadow-n32.xml	2006-01-19 17:19:02 UTC (rev 1085)
@@ -39,18 +39,10 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
-    xpointer="xpointer(//*[@os='p1'])"/>
-
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="shadow.xml"
-    xpointer="xpointer(//*[@os='p2'])"/>
-
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="shadow.xml"
     xpointer="xpointer(//*[@os='b'])"/>
 
 <screen os="c"><userinput>CC="gcc ${BUILDN32}" ./configure --libdir=/lib32 \
-   --enable-shared</userinput></screen>
+   --enable-shared --without-libpam --without-audit --without-selinux</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
@@ -78,17 +70,25 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
-    xpointer="xpointer(//*[@os='r'])"/>
+    xpointer="xpointer(//*[@os='j'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
-    xpointer="xpointer(//*[@os='s'])"/>
+    xpointer="xpointer(//*[@os='k'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="shadow.xml"
     xpointer="xpointer(//*[@os='t'])"/>
 
-<screen os="u"><userinput>mv /lib32/libshadow.*a /usr/lib32
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="shadow.xml"
+    xpointer="xpointer(//*[@os='u'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="shadow.xml"
+    xpointer="xpointer(//*[@os='v'])"/>
+
+<screen os="w"><userinput>mv /lib32/libshadow.*a /usr/lib32
 rm /lib32/libshadow.so
 ln -sf ../../lib32/libshadow.so.0 /usr/lib32/libshadow.so</userinput></screen>
 

Modified: trunk/BOOK/final-system/multilib/shadow.xml
===================================================================
--- trunk/BOOK/final-system/multilib/shadow.xml	2006-01-17 21:01:38 UTC (rev 1084)
+++ trunk/BOOK/final-system/multilib/shadow.xml	2006-01-19 17:19:02 UTC (rev 1085)
@@ -28,18 +28,10 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/shadow.xml"
-    xpointer="xpointer(//*[@os='p1'])"/>
-
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../common/shadow.xml"
-    xpointer="xpointer(//*[@os='p2'])"/>
-
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../common/shadow.xml"
     xpointer="xpointer(//*[@os='b'])"/>
 
 <screen os="c"><userinput>CC="gcc ${BUILD32}" ./configure --libdir=/lib \
-   --enable-shared</userinput></screen>
+   --enable-shared --without-libpam --without-audit --without-selinux</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/shadow.xml"
@@ -67,11 +59,11 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/shadow.xml"
-    xpointer="xpointer(//*[@os='r'])"/>
+    xpointer="xpointer(//*[@os='j'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/shadow.xml"
-    xpointer="xpointer(//*[@os='s'])"/>
+    xpointer="xpointer(//*[@os='k'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/shadow.xml"
@@ -81,6 +73,14 @@
     href="../common/shadow.xml"
     xpointer="xpointer(//*[@os='u'])"/>
 
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/shadow.xml"
+    xpointer="xpointer(//*[@os='v'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/shadow.xml"
+    xpointer="xpointer(//*[@os='w'])"/>
+
   </sect2>
 
   <sect2 role="content">

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2006-01-17 21:01:38 UTC (rev 1084)
+++ trunk/BOOK/general.ent	2006-01-19 17:19:02 UTC (rev 1085)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
-<!ENTITY version "CLFS-SVN-20060115">
+<!ENTITY version "CLFS-SVN-20060119">
 <!ENTITY version-x86 "&version;-x86">
 <!ENTITY version-x86_64 "&version;-x86_64-Multilib">
 <!ENTITY version-x86_64-64 "&version;-x86_64-Pure64">
@@ -14,7 +14,7 @@
 <!ENTITY version-mips64-64 "&version;-MIPS64-Pure64">
 <!ENTITY version-alpha "&version;-ALPHA">
 
-<!ENTITY releasedate "January 15, 2006">
+<!ENTITY releasedate "January 19, 2006">
 <!ENTITY milestone "0.1">
 <!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" -->
 

Modified: trunk/BOOK/introduction/common/changelog.xml
===================================================================
--- trunk/BOOK/introduction/common/changelog.xml	2006-01-17 21:01:38 UTC (rev 1084)
+++ trunk/BOOK/introduction/common/changelog.xml	2006-01-19 17:19:02 UTC (rev 1085)
@@ -37,6 +37,15 @@
 -->
 
     <listitem>
+      <para>January 19, 2006</para> 
+      <itemizedlist>
+        <listitem>
+          <para>[Chris] - Removed patch from shadow instructions.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>January 13, 2006</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/materials/common/patches.xml
===================================================================
--- trunk/BOOK/materials/common/patches.xml	2006-01-17 21:01:38 UTC (rev 1084)
+++ trunk/BOOK/materials/common/patches.xml	2006-01-19 17:19:02 UTC (rev 1085)
@@ -170,14 +170,6 @@
       </listitem>
     </varlistentry>
 
-    <varlistentry os="p21">
-      <term>Shadow Configure Fixes Patch - 3.0 KB:</term>
-      <listitem>
-        <para><ulink
-        url="&patches-root;shadow/&shadow-configure_fix-patch;"/></para>
-      </listitem>
-    </varlistentry>
-
     <varlistentry os="p22">
       <term>Sysklogd Fixes Patch - 28 KB:</term>
       <listitem>




More information about the cross-lfs mailing list