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

Last change on this file since 9c7073b was 5e7d8bf, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Add --without-nscd to the cross-tools shadow.

  • Property mode set to 100644
File size: 2.4 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
[c58c3d1]13 <indexterm zone="ch-cross-tools-shadow">
14 <primary sortas="a-Shadow">Shadow</primary>
15 <secondary>cross tools</secondary>
16 </indexterm>
17
[2078b85]18 <sect2 role="installation">
19 <title>Installation of Shadow</title>
20
21 <para>The following patch changes the hard-coded <filename>/etc</filename>
22 in the sources to whatever was passed to configure. It also allows the
[e4f6ff4]23 utilities to run as a user other then root:</para>
[2078b85]24
25<screen><userinput>patch -Np1 -i ../&shadow-sysroot_hacks-patch;</userinput></screen>
26
27 <para>The following value is added to <filename>config.cache</filename> to
[e4f6ff4]28 make sure that the <filename>passwd</filename> program is found:</para>
[2078b85]29
[cc8d737]30<screen><userinput>cat &gt; config.cache &lt;&lt; EOF
31shadow_cv_passwd_dir=${CLFS}/bin"
32EOF</userinput></screen>
[2078b85]33
[e4f6ff4]34 <para>The following value causes Shadow to use its internal lckpwdf
[fef8487]35 instead of the one provided by EGLIBC. The one provided by EGLIBC will
[2078b85]36 attempt to modify the host system:</para>
37
[f0270f3]38<screen><userinput>cat &gt;&gt; config.cache &lt;&lt; EOF
[cc8d737]39ac_cv_func_lckpwdf=no
40EOF</userinput></screen>
[2078b85]41
42 <para>Prepare Shadow for compilation:</para>
43
44<screen><userinput>./configure --prefix=${CLFS}/cross-tools --sbindir=${CLFS}/cross-tools/bin \
[a074923]45 --sysconfdir=$CLFS/etc --disable-shared --without-libpam \
46 --without-audit --without-selinux --program-prefix=${CLFS_TARGET}- \
[5e7d8bf]47 --without-nscd --cache-file=config.cache</userinput></screen>
[2078b85]48
[e4f6ff4]49 <para>Add the proper prefix to the <filename>passwd</filename> program:</para>
[2078b85]50
51<screen><userinput>cp config.h{,.orig}
[73b1cbb]52sed "/PASSWD_PROGRAM/s/passwd/${CLFS_TARGET}-&amp;/" config.h.orig &gt; config.h</userinput></screen>
[2078b85]53
54 <para>Compile the package:</para>
55
56<screen><userinput>make</userinput></screen>
57
58 <para>Install the package:</para>
59
60<screen><userinput>make install</userinput></screen>
61
62 <note>
63 <para>The tools built on this page will be used later in this book.</para>
64 </note>
65
66 </sect2>
67
68 <sect2 role="content">
69 <title/>
70
71 <para>Details on this package are located in <xref
72 linkend="contents-shadow" role="."/></para>
73
74 </sect2>
75
76</sect1>
Note: See TracBrowser for help on using the repository browser.