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

Last change on this file since 8909252 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
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
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
18 utilities to run as a user other then root:</para>
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
23 make sure that the <filename>passwd</filename> program is found:</para>
24
25<screen><userinput>cat &gt; config.cache &lt;&lt; EOF
26shadow_cv_passwd_dir=${CLFS}/bin"
27EOF</userinput></screen>
28
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
31 attempt to modify the host system:</para>
32
33<screen><userinput>cat &gt; config.cache &lt;&lt; EOF
34ac_cv_func_lckpwdf=no
35EOF</userinput></screen>
36
37 <para>Prepare Shadow for compilation:</para>
38
39<screen><userinput>./configure --prefix=${CLFS}/cross-tools --sbindir=${CLFS}/cross-tools/bin \
40 --sysconfdir=$CLFS/etc --disable-shared --without-libpam \
41 --without-audit --without-selinux --program-prefix=${CLFS_TARGET}- \
42 --cache-file=config.cache</userinput></screen>
43
44 <para>Add the proper prefix to the <filename>passwd</filename> program:</para>
45
46<screen><userinput>cp config.h{,.orig}
47sed "/PASSWD_PROGRAM/s/passwd/${CLFS_TARGET}-&amp;/" config.h.orig &gt; config.h</userinput></screen>
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.