Ignore:
File:
1 edited

Legend:

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

    r94ff357 r83b1e52  
    2323    <title>Installation of Shadow</title>
    2424
    25     <para os="b">Disable the installation of the <command>groups</command>
    26     program, as Coreutils provides a better version:</para>
     25    <para os="b">Disable the installation of the <command>groups</command> and
     26    <command>nologin</command> programs, as better versions
     27    of these programs are provided by Coreutils and Util-linux:</para>
    2728
    2829<screen os="c"><userinput>cp -v src/Makefile.in{,.orig}
    29 sed -e 's/groups$(EXEEXT) //' src/Makefile.in.orig > src/Makefile.in</userinput></screen>
     30sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \
     31    src/Makefile.in.orig > src/Makefile.in</userinput></screen>
    3032
    3133    <para os="d">Prepare Shadow for compilation:</para>
    3234
    3335<screen os="e"><userinput>./configure --prefix=/tools \
    34     --build=${CLFS_HOST} --host=${CLFS_TARGET} --sysconfdir=/etc</userinput></screen>
     36    --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
    3537
    36 <para os="f">The meaning of the configure options:</para>
     38    <para os="f">Tell Shadow to use <command>passwd</command> in
     39    <filename class="directory">/tools/bin</filename>:</para>
    3740
    38   <variablelist os="g">
    39     <varlistentry>
    40       <term><parameter>--sysconfdir=/etc</parameter></term>
    41       <listitem><para>Tells Shadow to install its configuration files into
    42       <filename class="directory">/etc</filename>, rather than
    43       <filename class="directory">/tools/etc</filename>.</para></listitem>
    44     </varlistentry>
    45    
    46   </variablelist>
     41<screen os="g"><userinput>cp -v config.h{,.orig}
     42sed '/PASSWD_PROGRAM/s@/bin/passwd@/tools&amp;@' config.h.orig &gt; config.h</userinput></screen>
    4743
     44    <para os="h">Prevent Shadow from setting installed programs suid:</para>
    4845
    49     <para os="h">Compile the package:</para>
     46<screen os="i"><userinput>cp -v src/Makefile{,.orig}
     47sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.orig &gt; src/Makefile</userinput></screen>
    5048
    51 <screen os="i"><userinput>make</userinput></screen>
     49    <para os="j">Compile the package:</para>
    5250
    53     <para os="j">This package does not come with a test suite.</para>
     51<screen os="k"><userinput>make</userinput></screen>
    5452
    55     <para os="k">Install the package:</para>
     53    <para os="l">Install the package:</para>
    5654
    57 <screen os="l"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
     55<screen os="m"><userinput>make install</userinput></screen>
    5856
    5957  </sect2>
Note: See TracChangeset for help on using the changeset viewer.