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

Last change on this file since 3423c60 was 2270211, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Update Patches in the book.

  • Property mode set to 100644
File size: 2.2 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
25<screen><userinput>echo "shadow_cv_passwd_dir=${CLFS}/bin" &gt; config.cache</userinput></screen>
26
[e4f6ff4]27 <para>The following value causes Shadow to use its internal lckpwdf
28 instead of the one provided by Glibc. The one provided by Glibc will
[2078b85]29 attempt to modify the host system:</para>
30
31<screen><userinput>echo "ac_cv_func_lckpwdf=no" &gt;&gt; config.cache</userinput></screen>
32
33 <para>Prepare Shadow for compilation:</para>
34
35<screen><userinput>./configure --prefix=${CLFS}/cross-tools --sbindir=${CLFS}/cross-tools/bin \
[a074923]36 --sysconfdir=$CLFS/etc --disable-shared --without-libpam \
37 --without-audit --without-selinux --program-prefix=${CLFS_TARGET}- \
38 --cache-file=config.cache</userinput></screen>
[2078b85]39
[e4f6ff4]40 <para>Add the proper prefix to the <filename>passwd</filename> program:</para>
[2078b85]41
42<screen><userinput>cp config.h{,.orig}
43sed "/PASSWD_PROGRAM/s/passwd/${CLFS_TARGET}-&amp;/" config.h.orig > config.h</userinput></screen>
44
45 <para>Compile the package:</para>
46
47<screen><userinput>make</userinput></screen>
48
49 <para>Install the package:</para>
50
51<screen><userinput>make install</userinput></screen>
52
53 <note>
54 <para>The tools built on this page will be used later in this book.</para>
55 </note>
56
57 </sect2>
58
59 <sect2 role="content">
60 <title/>
61
62 <para>Details on this package are located in <xref
63 linkend="contents-shadow" role="."/></para>
64
65 </sect2>
66
67</sect1>
Note: See TracBrowser for help on using the repository browser.