Changeset 196919d for BOOK


Ignore:
Timestamp:
Aug 11, 2014, 8:34:57 AM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-sysvinit, sysvinit
Children:
aabf475b
Parents:
ee4c6a2
git-author:
Chris Staub <chris@…> (08/11/14 07:53:18)
git-committer:
Chris Staub <chris@…> (08/11/14 08:34:57)
Message:

Improved organization on Shadow boot page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/shadow.xml

    ree4c6a2 r196919d  
    2323    <title>Installation of Shadow</title>
    2424
    25     <para os="b">Disable the installation of the <command>groups</command> and
     25    <para os="a">Disable the installation of the <command>groups</command> and
    2626    <command>nologin</command> programs, as better versions
    2727    of these programs are provided by Coreutils and Util-linux:</para>
    2828
    29 <screen os="c"><userinput>cp -v src/Makefile.in{,.orig}
     29<screen os="b"><userinput>cp -v src/Makefile.in{,.orig}
    3030sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \
    3131    src/Makefile.in.orig &gt; src/Makefile.in</userinput></screen>
    3232
    33     <para os="d">Prepare Shadow for compilation:</para>
     33    <para os="c">Prevent Shadow from setting installed programs suid:</para>
    3434
    35 <screen os="e"><userinput>./configure --prefix=/tools \
    36     --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
     35<screen os="d"><userinput>cp -v src/Makefile.in{,.orig}
     36sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.in.orig &gt; src/Makefile.in</userinput></screen>
    3737
    38     <para os="f">Tell Shadow to use <command>passwd</command> in
     38    <para os="e">Tell Shadow to use <command>passwd</command> in
    3939    <filename class="directory">/tools/bin</filename>:</para>
    4040
    41 <screen os="g"><userinput>cp -v config.h{,.orig}
    42 sed '/PASSWD_PROGRAM/s@/bin/passwd@/tools&amp;@' config.h.orig &gt; config.h</userinput></screen>
     41<screen os="f"><userinput>cat > config.cache &lt;&lt; "EOF"
     42shadow_cv_passwd_dir=/tools/bin
     43EOF</userinput></screen>
    4344
    44     <para os="h">Prevent Shadow from setting installed programs suid:</para>
     45    <para os="g">Prepare Shadow for compilation:</para>
    4546
    46 <screen os="i"><userinput>cp -v src/Makefile{,.orig}
    47 sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.orig &gt; src/Makefile</userinput></screen>
     47<screen os="h"><userinput>./configure --prefix=/tools \
     48    --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache</userinput></screen>
    4849
    49     <para os="j">Compile the package:</para>
     50    <para os="i">Compile the package:</para>
    5051
    51 <screen os="k"><userinput>make</userinput></screen>
     52<screen os="j"><userinput>make</userinput></screen>
    5253
    53     <para os="l">Install the package:</para>
     54    <para os="k">Install the package:</para>
    5455
    55 <screen os="m"><userinput>make install</userinput></screen>
     56<screen os="l"><userinput>make install</userinput></screen>
    5657
    5758  </sect2>
Note: See TracChangeset for help on using the changeset viewer.