r3365 - in trunk/BOOK: basicnet/netutils general/genlib general/prog introduction/welcome multimedia/cdwriteutils postlfs/shells server/mail

randy at linuxfromscratch.org randy at linuxfromscratch.org
Sun Jan 30 15:01:58 PST 2005


Author: randy
Date: 2005-01-30 16:01:56 -0700 (Sun, 30 Jan 2005)
New Revision: 3365

Modified:
   trunk/BOOK/basicnet/netutils/whois.xml
   trunk/BOOK/general/genlib/popt.xml
   trunk/BOOK/general/prog/ruby.xml
   trunk/BOOK/general/prog/tcl.xml
   trunk/BOOK/general/prog/tk.xml
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/multimedia/cdwriteutils/udftools.xml
   trunk/BOOK/postlfs/shells/tcsh.xml
   trunk/BOOK/postlfs/shells/zsh.xml
   trunk/BOOK/server/mail/sendmail.xml
Log:
Separated root installation from build commands in remaining packages that are already indexed

Modified: trunk/BOOK/basicnet/netutils/whois.xml
===================================================================
--- trunk/BOOK/basicnet/netutils/whois.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/basicnet/netutils/whois.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -51,9 +51,12 @@
 <para>Install <application>Whois</application> by running the following 
 commands:</para>
 
-<screen><userinput><command>make &&
-make prefix=/usr install</command></userinput></screen>
+<screen><userinput><command>make</command></userinput></screen>
 
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make prefix=/usr install</command></userinput></screen>
+
 </sect2>
 
 <sect2>
@@ -61,8 +64,12 @@
 
 <segmentedlist>
 <segtitle>Installed Programs</segtitle>
+<segtitle>Installed Libraries</segtitle>
+<segtitle>Installed Directories</segtitle>
 <seglistitem>
 <seg>whois</seg>
+<seg>None</seg>
+<seg>None</seg>
 </seglistitem>
 </segmentedlist>
 

Modified: trunk/BOOK/general/genlib/popt.xml
===================================================================
--- trunk/BOOK/general/genlib/popt.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/general/genlib/popt.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -67,9 +67,12 @@
 ./configure --prefix=/usr &&
 cp configure.in configure.ac &&
 touch configure.in configure.ac &&
-make &&
-make install</command></userinput></screen>
+make</command></userinput></screen>
 
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make install</command></userinput></screen>
+
 </sect2>
 
 <sect2>
@@ -90,7 +93,7 @@
 <segmentedlist>
   <segtitle>Installed Library</segtitle>
   <seglistitem>
-    <seg>libpopt</seg>
+    <seg>libpopt.[so,a]</seg>
   </seglistitem>
 </segmentedlist>
 
@@ -99,11 +102,11 @@
   <?dbfo list-presentation="list"?>
 
   <varlistentry id="libpopt">
-  <term><filename role='library'>libpopt.so</filename></term>
+  <term><filename role='library'>libpopt.[so,a]</filename></term>
   <listitem>
     <para> is used to parse command-line options.</para>
     <indexterm zone="popt libpopt">
-      <primary sortas="c-libpopt">libpopt</primary>
+      <primary sortas="c-libpopt">libpopt.[so,a]</primary>
      </indexterm>
   </listitem>
   </varlistentry>

Modified: trunk/BOOK/general/prog/ruby.xml
===================================================================
--- trunk/BOOK/general/prog/ruby.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/general/prog/ruby.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -62,8 +62,11 @@
 
 <screen><userinput><command>./configure --prefix=/usr \
     --enable-shared --enable-pthread &&
-make &&
-make install &&
+make</command></userinput></screen>
+
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make install &&
 make install-doc</command></userinput></screen>
 
 </sect2>

Modified: trunk/BOOK/general/prog/tcl.xml
===================================================================
--- trunk/BOOK/general/prog/tcl.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/general/prog/tcl.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -54,9 +54,9 @@
 <para>Install <application>Tcl</application> by running the following 
 commands:</para>
 
-<screen><userinput><command>VERSION=&tcl-version; &&
-V=`echo $VERSION | cut -d "." -f 1,2` &&
-DIR=$PWD &&
+<screen><userinput><command>export VERSION=&tcl-version; &&
+export V=`echo $VERSION | cut -d "." -f 1,2` &&
+export DIR=$PWD &&
 cd unix &&
 ./configure --prefix=/usr --enable-threads &&
 make &&
@@ -64,8 +64,11 @@
 sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
 sed -i \
   "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
-  tclConfig.sh &&
-make install &&
+  tclConfig.sh</command></userinput></screen>
+
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make install &&
 install -d /usr/include/tcl${V}/unix &&
 install -m644 *.h /usr/include/tcl${V}/unix/ &&
 install -d /usr/include/tcl${V}/generic &&
@@ -75,10 +78,19 @@
 ln -sf libtcl${V}.so /usr/lib/libtcl.so &&
 ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
 
+<para>Clean up the unprivileged user's environment using the following 
+commands:</para>
+
+<screen><userinput><command>unset VERSION &&
+unset V &&
+unset DIR</command></userinput></screen>
+
+<!--
 <caution><para>If you build the package as an ordinary user and then switch to 
 root to install the package, ensure you set the environment variables 
 <envar>V</envar> and <envar>VERSION</envar> before running the installation 
 commands.</para></caution>
+-->
 
 </sect2>
 
@@ -91,7 +103,7 @@
 <para><command>sed -i ...</command>: The <application>Tcl</application>
 package assumes that the source that is used to build 
 <application>Tcl</application> is always kept around for compiling packages 
-that depend on <application>Tcl</application>. These <command>sed</command>'s 
+that depend on <application>Tcl</application>. These <command>sed</command>s 
 remove the reference to the build directory and replace them by saner system 
 wide locations.</para>
 
@@ -107,11 +119,11 @@
 
 <segmentedlist>
 <segtitle>Installed Program</segtitle>
-<segtitle>Installed Library</segtitle>
+<segtitle>Installed Libraries</segtitle>
 <segtitle>Installed Directories</segtitle>
 <seglistitem>
 <seg>tclsh</seg>
-<seg>libtcl</seg>
+<seg>libtcl.so and libtclstub8.4.a</seg>
 <seg>/usr/lib/tcl8.4 and /usr/include/tcl8.4</seg></seglistitem>
 </segmentedlist>
 

Modified: trunk/BOOK/general/prog/tk.xml
===================================================================
--- trunk/BOOK/general/prog/tk.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/general/prog/tk.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -54,15 +54,18 @@
 <para>Install <application>Tk</application> by running the following 
 commands:</para>
 
-<screen><userinput><command>VERSION=&tk-version; &&
-V=`echo $VERSION | cut -d "." -f 1,2` &&
-DIR=$PWD &&
+<screen><userinput><command>export VERSION=&tk-version; &&
+export V=`echo $VERSION | cut -d "." -f 1,2` &&
+export DIR=$PWD &&
 cd unix &&
 ./configure --prefix=/usr --enable-threads &&
 make &&
 sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
-sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &&
-make install &&
+sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</command></userinput></screen>
+
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make install &&
 install -d /usr/include/tk${V}/unix &&
 install -m644 *.h /usr/include/tk${V}/unix/ &&
 install -d /usr/include/tk${V}/generic &&
@@ -72,10 +75,19 @@
 ln -sf libtk${V}.so /usr/lib/libtk.so &&
 ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
 
+<para>Clean up the unprivileged user's environment using the following
+commands:</para>
+
+<screen><userinput><command>unset VERSION &&
+unset V &&
+unset DIR</command></userinput></screen>
+
+<!--
 <caution><para>If you build the package as an ordinary user and then switch to 
 root to install the package, ensure you set the environment variables
 <envar>V</envar> and <envar>VERSION</envar> before running the installation
 commands.</para></caution>
+-->
 
 </sect2>
 
@@ -105,11 +117,11 @@
 
 <segmentedlist>
 <segtitle>Installed Program</segtitle>
-<segtitle>Installed Library</segtitle>
+<segtitle>Installed Libraries</segtitle>
 <segtitle>Installed Directories</segtitle>
 <seglistitem>
 <seg>wish</seg>
-<seg>libtk</seg>
+<seg>libtk.so and libtkstub8.4.a</seg>
 <seg>/usr/lib/tk8.4 and /usr/include/tk8.4</seg></seglistitem>
 </segmentedlist>
 

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -22,7 +22,7 @@
 
 <itemizedlist>
 
-<listitem><para>January 30th, 2005 [dj]: Fixed craclib_dict_path check
+<listitem><para>January 30th, 2005 [dj]: Fixed cracklib_dict_path check
 in Linux_PAM configure.  Added change to 
 Linux-PAM-linkage-2.patch.</para></listitem>
 

Modified: trunk/BOOK/multimedia/cdwriteutils/udftools.xml
===================================================================
--- trunk/BOOK/multimedia/cdwriteutils/udftools.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/multimedia/cdwriteutils/udftools.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -61,8 +61,11 @@
 
 </sect2>
 
-<sect2>
+<sect2 id="udftools-kernel">
 <title>Installation of the kernel patch</title>
+<indexterm zone="udftools udftools-kernel">
+<primary sortas="d-UDF-File-System">UDF File System</primary>
+</indexterm>
 
 <warning>
 <para>Note that this patch can permanently damage your <acronym>CD</acronym> 

Modified: trunk/BOOK/postlfs/shells/tcsh.xml
===================================================================
--- trunk/BOOK/postlfs/shells/tcsh.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/postlfs/shells/tcsh.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -54,8 +54,11 @@
 commands:</para>
 
 <screen><userinput><command>./configure --prefix=/usr &&
-make &&
-make install &&
+make</command></userinput></screen>
+
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make install &&
 make install.man &&
 ln -sf /usr/bin/tcsh /bin/csh</command></userinput></screen>
 
@@ -114,8 +117,12 @@
 
 <segmentedlist>
 <segtitle>Installed Program</segtitle>
+<segtitle>Installed Libraries</segtitle>
+<segtitle>Installed Directories</segtitle>
 <seglistitem>
 <seg>tcsh</seg>
+<seg>None</seg>
+<seg>None</seg>
 </seglistitem>
 </segmentedlist>
 

Modified: trunk/BOOK/postlfs/shells/zsh.xml
===================================================================
--- trunk/BOOK/postlfs/shells/zsh.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/postlfs/shells/zsh.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -60,9 +60,12 @@
 commands:</para>
 
 <screen><userinput><command>./configure --prefix=/usr &&
-make &&
-make install</command></userinput></screen>
+make</command></userinput></screen>
 
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make install</command></userinput></screen>
+
 </sect2>
 
 <sect2>
@@ -97,8 +100,12 @@
 
 <segmentedlist>
 <segtitle>Installed Program</segtitle>
+<segtitle>Installed Libraries</segtitle>
+<segtitle>Installed Directories</segtitle>
 <seglistitem>
 <seg>zsh</seg>
+<seg>None</seg>
+<seg>None</seg>
 </seglistitem>
 </segmentedlist>
 

Modified: trunk/BOOK/server/mail/sendmail.xml
===================================================================
--- trunk/BOOK/server/mail/sendmail.xml	2005-01-30 20:55:08 UTC (rev 3364)
+++ trunk/BOOK/server/mail/sendmail.xml	2005-01-30 23:01:56 UTC (rev 3365)
@@ -65,9 +65,9 @@
 
 <para>Before building <application>Sendmail</application>, create the users, 
 groups and directories that <application>Sendmail</application> requires 
-with the following commands:</para>
+with the following commands issued as the root user:</para>
 
-<screen><userinput><command>groupadd smmsp &&
+<screen><userinput role='root'><command>groupadd smmsp &&
 groupadd mail &&
 useradd -c "Sendmail Daemon" -g smmsp -G mail smmsp &&
 chmod 1777 /var/mail &&
@@ -87,21 +87,24 @@
 sh Build &&
 cd ../cf/cf &&
 cp generic-linux.mc sendmail.mc &&
-sh Build sendmail.cf &&
-mkdir /etc/mail &&
+sh Build sendmail.cf</command></userinput></screen>
+
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>install -v -d -m755 /etc/mail &&
 sh Build install-cf &&
 cd ../../ &&
 sh Build install &&
-cp -R cf/* /etc/mail &&
-cp cf/cf/{submit,sendmail}.mc /etc/mail &&
+cp -v -R cf/* /etc/mail &&
+cp -v cf/cf/{submit,sendmail}.mc /etc/mail &&
 for manpage in sendmail editmap mailstats makemap praliases smrsh 
 do
-    install -m444 $manpage/$manpage.8   /usr/share/man/man8
+    install -v -m444 $manpage/$manpage.8 /usr/share/man/man8
 done &&
-install -m444 sendmail/aliases.5    /usr/share/man/man5 &&
-install -m444 sendmail/mailq.1      /usr/share/man/man1 &&
-install -m444 sendmail/newaliases.1 /usr/share/man/man1 &&
-install -m444 vacation/vacation.1   /usr/share/man/man1</command></userinput></screen>
+install -v -m444 sendmail/aliases.5    /usr/share/man/man5 &&
+install -v -m444 sendmail/mailq.1      /usr/share/man/man1 &&
+install -v -m444 sendmail/newaliases.1 /usr/share/man/man1 &&
+install -v -m444 vacation/vacation.1   /usr/share/man/man1</command></userinput></screen>
 
 <para><emphasis>Note:</emphasis> See the source tree 
 <filename>sendmail/README</filename> file for information on linking optional 
@@ -121,9 +124,13 @@
 
 <screen><userinput><command>cd doc/op &&
 sed -i -e 's/groff/GROFF_NO_SGR=1 groff/' Makefile &&
-make op.txt op.pdf &&
-install -d -m 755 /usr/share/doc/sendmail-&sendmail-version; &&
-install -m 644 op.ps op.txt op.pdf /usr/share/doc/sendmail-&sendmail-version; &&
+make op.txt op.pdf</command></userinput></screen>
+
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>install -v -d -m755 /usr/share/doc/sendmail-&sendmail-version; &&
+install -v -m644 op.ps op.txt op.pdf \
+    /usr/share/doc/sendmail-&sendmail-version; &&
 cd ../../</command></userinput></screen>
 
 <para><emphasis>Note:</emphasis> remove <filename>op.pdf</filename> from the
@@ -164,9 +171,9 @@
 
 <para>Create the <filename>/etc/mail/local-host-names</filename> and 
 <filename>/etc/mail/aliases</filename> files using the following 
-commands:</para>
+commands as the root user:</para>
 
-<screen><userinput><command>echo $(hostname) > /etc/mail/local-host-names
+<screen><userinput role='root'><command>echo $(hostname) > /etc/mail/local-host-names
 cat > /etc/mail/aliases << "EOF"</command>
 postmaster: root
 MAILER-DAEMON: root
@@ -194,7 +201,7 @@
 <indexterm zone="sendmail sendmail-init">
 <primary sortas="f-sendmail-init">sendmail</primary></indexterm>
 
-<screen><userinput><command>make install-sendmail</command></userinput></screen>
+<screen><userinput role='root'><command>make install-sendmail</command></userinput></screen>
 
 <note><para>The -qNm option to <command>sendmail</command>, where N is number 
 of minutes, controls how often <application>Sendmail</application> will process 
@@ -210,10 +217,12 @@
 
 <segmentedlist>
 <segtitle>Installed Programs</segtitle>
-<segtitle>Installed Directory</segtitle>
+<segtitle>Installed Libraries</segtitle>
+<segtitle>Installed Directories</segtitle>
 <seglistitem>
 <seg>editmap, hoststat, mailstats, mailq, makemap, newaliases, praliases, 
 purgestat, sendmail, smrsh and vacation</seg>
+<seg>None</seg>
 <seg>/etc/mail and /usr/share/doc/sendmail-&sendmail-version;</seg>
 </seglistitem>
 </segmentedlist>




More information about the blfs-book mailing list