mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
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:
parent
c2688a0cee
commit
d86145218f
@ -51,8 +51,11 @@ domain name.</para>
|
||||
<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>
|
||||
|
||||
@ -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>
|
||||
|
||||
|
@ -67,8 +67,11 @@ commands:</para>
|
||||
./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>
|
||||
|
||||
@ -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>
|
||||
|
@ -62,8 +62,11 @@ commands:</para>
|
||||
|
||||
<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>
|
||||
|
@ -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; &&
|
||||
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}/unix:/usr/lib:" tclConfig.sh &&
|
||||
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 -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
||||
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 @@ 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>
|
||||
|
||||
|
@ -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; &&
|
||||
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 -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
||||
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 @@ 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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -54,8 +54,11 @@ url="&tcsh-download-ftp;"/></para></listitem>
|
||||
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 @@ 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>
|
||||
|
||||
|
@ -60,8 +60,11 @@ url="&zsh-download-ftp;"/></para></listitem>
|
||||
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>
|
||||
|
||||
@ -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>
|
||||
|
||||
|
@ -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 &&
|
||||
<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 @@ cd sendmail &&
|
||||
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 @@ Operations Guide with the following commands:</para>
|
||||
|
||||
<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 @@ 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 > /etc/mail/aliases << "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>
|
||||
|
Loading…
Reference in New Issue
Block a user