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

Last change on this file since 2e7a86a was e4f6ff4, checked in by Chris Staub <chris@…>, 18 years ago

Text updates

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[2078b85]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
[e4f6ff4]26 utilities to run as a user other then root:</para>
[2078b85]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
[e4f6ff4]31 make sure that the <filename>passwd</filename> program is found:</para>
[2078b85]32
33<screen><userinput>echo "shadow_cv_passwd_dir=${CLFS}/bin" &gt; config.cache</userinput></screen>
34
[e4f6ff4]35 <para>The following value causes Shadow to use its internal lckpwdf
36 instead of the one provided by Glibc. The one provided by Glibc will
[2078b85]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
[e4f6ff4]47 <para>Add the proper prefix to the <filename>passwd</filename> program:</para>
[2078b85]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.