Ignore:
File:
1 edited

Legend:

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

    r83b1e52 r94ff357  
    2323    <title>Installation of Shadow</title>
    2424
    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>
     25    <para os="b">Disable the installation of the <command>groups</command>
     26    program, as Coreutils provides a better version:</para>
    2827
    2928<screen os="c"><userinput>cp -v src/Makefile.in{,.orig}
    30 sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \
    31     src/Makefile.in.orig > src/Makefile.in</userinput></screen>
     29sed -e 's/groups$(EXEEXT) //' src/Makefile.in.orig > src/Makefile.in</userinput></screen>
    3230
    3331    <para os="d">Prepare Shadow for compilation:</para>
    3432
    3533<screen os="e"><userinput>./configure --prefix=/tools \
    36     --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
     34    --build=${CLFS_HOST} --host=${CLFS_TARGET} --sysconfdir=/etc</userinput></screen>
    3735
    38     <para os="f">Tell Shadow to use <command>passwd</command> in
    39     <filename class="directory">/tools/bin</filename>:</para>
     36<para os="f">The meaning of the configure options:</para>
    4037
    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>
     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>
    4347
    44     <para os="h">Prevent Shadow from setting installed programs suid:</para>
    4548
    46 <screen os="i"><userinput>cp -v src/Makefile{,.orig}
    47 sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.orig &gt; src/Makefile</userinput></screen>
     49    <para os="h">Compile the package:</para>
    4850
    49     <para os="j">Compile the package:</para>
     51<screen os="i"><userinput>make</userinput></screen>
    5052
    51 <screen os="k"><userinput>make</userinput></screen>
     53    <para os="j">This package does not come with a test suite.</para>
    5254
    53     <para os="l">Install the package:</para>
     55    <para os="k">Install the package:</para>
    5456
    55 <screen os="m"><userinput>make install</userinput></screen>
     57<screen os="l"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5658
    5759  </sect2>
Note: See TracChangeset for help on using the changeset viewer.