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

Last change on this file since 1d53724 was 2078b85, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Added a native compile of Shadow. The native utilities are configured to work with the target system. The password and group files can now be shadowed and the root password can be set before booting into the system.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
17 href="../../final-system/common/shadow.xml"
18 xpointer="xpointer(//*[@os='p1'])"/>
19
20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../../final-system/common/shadow.xml"
22 xpointer="xpointer(//*[@os='p2'])"/>
23
24 <para>The following patch changes the hard-coded <filename>/etc</filename>
25 in the sources to whatever was passed to configure. It also allows the
26 utilities to run as a user other then root.</para>
27
28<screen><userinput>patch -Np1 -i ../&shadow-sysroot_hacks-patch;</userinput></screen>
29
30 <para>The following value is added to <filename>config.cache</filename> to
31 make sure that the <filename>passwd</filename> program is found.</para>
32
33<screen><userinput>echo "shadow_cv_passwd_dir=${CLFS}/bin" &gt; config.cache</userinput></screen>
34
35 <para>The following value causes Shadow to use it's internal lckpwdf
36 instead of the one provided by glibc. The one provided by glibc will
37 attempt to modify the host system:</para>
38
39<screen><userinput>echo "ac_cv_func_lckpwdf=no" &gt;&gt; config.cache</userinput></screen>
40
41 <para>Prepare Shadow for compilation:</para>
42
43<screen><userinput>./configure --prefix=${CLFS}/cross-tools --sbindir=${CLFS}/cross-tools/bin \
44 --sysconfdir=$CLFS/etc --disable-shared --without-libpam --without-audit \
45 --without-selinux --program-prefix=${CLFS_TARGET}- --cache-file=config.cache</userinput></screen>
46
47 <para>Add the proper suffix to the <filename>passwd</filename> program.</para>
48
49<screen><userinput>cp config.h{,.orig}
50sed "/PASSWD_PROGRAM/s/passwd/${CLFS_TARGET}-&amp;/" config.h.orig > config.h</userinput></screen>
51
52 <para>Compile the package:</para>
53
54<screen><userinput>make</userinput></screen>
55
56 <para>Install the package:</para>
57
58<screen><userinput>make install</userinput></screen>
59
60 <note>
61 <para>The tools built on this page will be used later in this book.</para>
62 </note>
63
64 </sect2>
65
66 <sect2 role="content">
67 <title/>
68
69 <para>Details on this package are located in <xref
70 linkend="contents-shadow" role="."/></para>
71
72 </sect2>
73
74</sect1>
Note: See TracBrowser for help on using the repository browser.