Separated root installation from build commands in remaining packages that are already indexed

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3365 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Randy McMurchy 2005-01-30 23:01:56 +00:00
parent c2688a0cee
commit d86145218f
10 changed files with 111 additions and 48 deletions

View File

@ -51,8 +51,11 @@ domain name.</para>
<para>Install <application>Whois</application> by running the following
commands:</para>
<screen><userinput><command>make &amp;&amp;
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>
@ -61,8 +64,12 @@ make prefix=/usr install</command></userinput></screen>
<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>

View File

@ -67,8 +67,11 @@ commands:</para>
./configure --prefix=/usr &amp;&amp;
cp configure.in configure.ac &amp;&amp;
touch configure.in configure.ac &amp;&amp;
make &amp;&amp;
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>
@ -90,7 +93,7 @@ Ensure file timestamps are the same.</para>
<segmentedlist>
<segtitle>Installed Library</segtitle>
<seglistitem>
<seg>libpopt</seg>
<seg>libpopt.[so,a]</seg>
</seglistitem>
</segmentedlist>
@ -99,11 +102,11 @@ Ensure file timestamps are the same.</para>
<?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>

View File

@ -62,8 +62,11 @@ commands:</para>
<screen><userinput><command>./configure --prefix=/usr \
--enable-shared --enable-pthread &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
make</command></userinput></screen>
<para>Now, as the root user:</para>
<screen><userinput role='root'><command>make install &amp;&amp;
make install-doc</command></userinput></screen>
</sect2>

View File

@ -54,9 +54,9 @@ directory around after installation.</para></note>
<para>Install <application>Tcl</application> by running the following
commands:</para>
<screen><userinput><command>VERSION=&tcl-version; &amp;&amp;
V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
DIR=$PWD &amp;&amp;
<screen><userinput><command>export VERSION=&tcl-version; &amp;&amp;
export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
export DIR=$PWD &amp;&amp;
cd unix &amp;&amp;
./configure --prefix=/usr --enable-threads &amp;&amp;
make &amp;&amp;
@ -64,8 +64,11 @@ sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &amp;&amp;
sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &amp;&amp;
sed -i \
"s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
tclConfig.sh &amp;&amp;
make install &amp;&amp;
tclConfig.sh</command></userinput></screen>
<para>Now, as the root user:</para>
<screen><userinput role='root'><command>make install &amp;&amp;
install -d /usr/include/tcl${V}/unix &amp;&amp;
install -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
install -d /usr/include/tcl${V}/generic &amp;&amp;
@ -75,10 +78,19 @@ ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
ln -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
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 &amp;&amp;
unset V &amp;&amp;
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 @@ to build with thread support.</para>
<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 @@ symbolic links.</para>
<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>

View File

@ -54,15 +54,18 @@ url="&tk-download-ftp;"/></para></listitem>
<para>Install <application>Tk</application> by running the following
commands:</para>
<screen><userinput><command>VERSION=&tk-version; &amp;&amp;
V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
DIR=$PWD &amp;&amp;
<screen><userinput><command>export VERSION=&tk-version; &amp;&amp;
export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
export DIR=$PWD &amp;&amp;
cd unix &amp;&amp;
./configure --prefix=/usr --enable-threads &amp;&amp;
make &amp;&amp;
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &amp;&amp;
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &amp;&amp;
make install &amp;&amp;
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 &amp;&amp;
install -d /usr/include/tk${V}/unix &amp;&amp;
install -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
install -d /usr/include/tk${V}/generic &amp;&amp;
@ -72,10 +75,19 @@ ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
ln -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
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 &amp;&amp;
unset V &amp;&amp;
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 @@ symbolic links.</para>
<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>

View File

@ -22,7 +22,7 @@ who wrote what.</para>
<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>

View File

@ -61,8 +61,11 @@ url="http://w1.894.telia.com/~u89404340/patches/packet/udftools-1.0.0b3.patch.bz
</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>

View File

@ -54,8 +54,11 @@ url="&tcsh-download-ftp;"/></para></listitem>
commands:</para>
<screen><userinput><command>./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
make</command></userinput></screen>
<para>Now, as the root user:</para>
<screen><userinput role='root'><command>make install &amp;&amp;
make install.man &amp;&amp;
ln -sf /usr/bin/tcsh /bin/csh</command></userinput></screen>
@ -114,8 +117,12 @@ found in the <filename>tcsh(1)</filename> man page.</para>
<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>

View File

@ -60,8 +60,11 @@ url="&zsh-download-ftp;"/></para></listitem>
commands:</para>
<screen><userinput><command>./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
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>
@ -97,8 +100,12 @@ the <filename>zsh(1)</filename> and related man pages.</para>
<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>

View File

@ -65,9 +65,9 @@ Transport Agent (<acronym>MTA</acronym>).</para>
<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 &amp;&amp;
<screen><userinput role='root'><command>groupadd smmsp &amp;&amp;
groupadd mail &amp;&amp;
useradd -c "Sendmail Daemon" -g smmsp -G mail smmsp &amp;&amp;
chmod 1777 /var/mail &amp;&amp;
@ -87,21 +87,24 @@ cd sendmail &amp;&amp;
sh Build &amp;&amp;
cd ../cf/cf &amp;&amp;
cp generic-linux.mc sendmail.mc &amp;&amp;
sh Build sendmail.cf &amp;&amp;
mkdir /etc/mail &amp;&amp;
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 &amp;&amp;
sh Build install-cf &amp;&amp;
cd ../../ &amp;&amp;
sh Build install &amp;&amp;
cp -R cf/* /etc/mail &amp;&amp;
cp cf/cf/{submit,sendmail}.mc /etc/mail &amp;&amp;
cp -v -R cf/* /etc/mail &amp;&amp;
cp -v cf/cf/{submit,sendmail}.mc /etc/mail &amp;&amp;
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 &amp;&amp;
install -m444 sendmail/aliases.5 /usr/share/man/man5 &amp;&amp;
install -m444 sendmail/mailq.1 /usr/share/man/man1 &amp;&amp;
install -m444 sendmail/newaliases.1 /usr/share/man/man1 &amp;&amp;
install -m444 vacation/vacation.1 /usr/share/man/man1</command></userinput></screen>
install -v -m444 sendmail/aliases.5 /usr/share/man/man5 &amp;&amp;
install -v -m444 sendmail/mailq.1 /usr/share/man/man1 &amp;&amp;
install -v -m444 sendmail/newaliases.1 /usr/share/man/man1 &amp;&amp;
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 @@ Operations Guide with the following commands:</para>
<screen><userinput><command>cd doc/op &amp;&amp;
sed -i -e 's/groff/GROFF_NO_SGR=1 groff/' Makefile &amp;&amp;
make op.txt op.pdf &amp;&amp;
install -d -m 755 /usr/share/doc/sendmail-&sendmail-version; &amp;&amp;
install -m 644 op.ps op.txt op.pdf /usr/share/doc/sendmail-&sendmail-version; &amp;&amp;
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; &amp;&amp;
install -v -m644 op.ps op.txt op.pdf \
/usr/share/doc/sendmail-&sendmail-version; &amp;&amp;
cd ../../</command></userinput></screen>
<para><emphasis>Note:</emphasis> remove <filename>op.pdf</filename> from the
@ -164,9 +171,9 @@ pages <command>man</command> can display properly.</para>
<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 &gt; /etc/mail/aliases &lt;&lt; "EOF"</command>
postmaster: root
MAILER-DAEMON: root
@ -194,7 +201,7 @@ can be found in <filename>/etc/mail/README</filename>.</para>
<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 @@ handling more mail may want to set it higher.</para></note>
<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>