source: clfs-sysroot/BOOK/cross-tools/common/shadow.xml@ 85fb0c2

Last change on this file since 85fb0c2 was cc8d737, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Use cat instead of echo wherever possible.

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[2078b85]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c439b8a]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[2078b85]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-cross-tools-shadow">
9 <?dbhtml filename="shadow.html"?>
10
11 <title>Shadow-&shadow-version; - Native</title>
12
13 <sect2 role="installation">
14 <title>Installation of Shadow</title>
15
16 <para>The following patch changes the hard-coded <filename>/etc</filename>
17 in the sources to whatever was passed to configure. It also allows the
[e4f6ff4]18 utilities to run as a user other then root:</para>
[2078b85]19
20<screen><userinput>patch -Np1 -i ../&shadow-sysroot_hacks-patch;</userinput></screen>
21
22 <para>The following value is added to <filename>config.cache</filename> to
[e4f6ff4]23 make sure that the <filename>passwd</filename> program is found:</para>
[2078b85]24
[cc8d737]25<screen><userinput>cat &gt; config.cache &lt;&lt; EOF
26shadow_cv_passwd_dir=${CLFS}/bin"
27EOF</userinput></screen>
[2078b85]28
[e4f6ff4]29 <para>The following value causes Shadow to use its internal lckpwdf
30 instead of the one provided by Glibc. The one provided by Glibc will
[2078b85]31 attempt to modify the host system:</para>
32
[cc8d737]33<screen><userinput>cat &gt; config.cache &lt;&lt; EOF
34ac_cv_func_lckpwdf=no
35EOF</userinput></screen>
[2078b85]36
37 <para>Prepare Shadow for compilation:</para>
38
39<screen><userinput>./configure --prefix=${CLFS}/cross-tools --sbindir=${CLFS}/cross-tools/bin \
[a074923]40 --sysconfdir=$CLFS/etc --disable-shared --without-libpam \
41 --without-audit --without-selinux --program-prefix=${CLFS_TARGET}- \
42 --cache-file=config.cache</userinput></screen>
[2078b85]43
[e4f6ff4]44 <para>Add the proper prefix to the <filename>passwd</filename> program:</para>
[2078b85]45
46<screen><userinput>cp config.h{,.orig}
[73b1cbb]47sed "/PASSWD_PROGRAM/s/passwd/${CLFS_TARGET}-&amp;/" config.h.orig &gt; config.h</userinput></screen>
[2078b85]48
49 <para>Compile the package:</para>
50
51<screen><userinput>make</userinput></screen>
52
53 <para>Install the package:</para>
54
55<screen><userinput>make install</userinput></screen>
56
57 <note>
58 <para>The tools built on this page will be used later in this book.</para>
59 </note>
60
61 </sect2>
62
63 <sect2 role="content">
64 <title/>
65
66 <para>Details on this package are located in <xref
67 linkend="contents-shadow" role="."/></para>
68
69 </sect2>
70
71</sect1>
Note: See TracBrowser for help on using the repository browser.