[c140ee2] | 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-boot-shadow" role="wrap">
|
---|
| 9 | <?dbhtml filename="shadow.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Shadow-&shadow-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-boot-shadow">
|
---|
| 14 | <primary sortas="a-Shadow">Shadow</primary>
|
---|
| 15 | <secondary>boot</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 19 | href="../../final-system/common/shadow.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Shadow</title>
|
---|
| 24 |
|
---|
[ca0535a] | 25 | <para os="b">Disable the installation of the <command>groups</command> and
|
---|
| 26 | <command>nologin</command> programs, as better versions
|
---|
| 27 | of these programs are provided by Coreutils and Util-linux:</para>
|
---|
[c140ee2] | 28 |
|
---|
[01672b8] | 29 | <screen os="c"><userinput>cp -v src/Makefile.in{,.orig}
|
---|
[86e4833] | 30 | sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \
|
---|
| 31 | src/Makefile.in.orig > src/Makefile.in</userinput></screen>
|
---|
[c140ee2] | 32 |
|
---|
| 33 | <para os="d">Prepare Shadow for compilation:</para>
|
---|
| 34 |
|
---|
| 35 | <screen os="e"><userinput>./configure --prefix=/tools \
|
---|
[64b4aba] | 36 | --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
|
---|
[c140ee2] | 37 |
|
---|
[64b4aba] | 38 | <para os="f">Tell Shadow to use <command>passwd</command> in
|
---|
[bf78dda] | 39 | <filename class="directory">/tools/bin</filename>:</para>
|
---|
[c140ee2] | 40 |
|
---|
[64b4aba] | 41 | <screen os="g"><userinput>cp config.h{,.orig}
|
---|
[f584773] | 42 | sed '/PASSWD_PROGRAM/s@/bin/passwd@/tools&@' config.h.orig > config.h</userinput></screen>
|
---|
[c140ee2] | 43 |
|
---|
[64b4aba] | 44 | <para os="h">Compile the package:</para>
|
---|
| 45 |
|
---|
| 46 | <screen os="i"><userinput>make</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para os="j">Install the package:</para>
|
---|
[c140ee2] | 49 |
|
---|
[64b4aba] | 50 | <screen os="k"><userinput>make install</userinput></screen>
|
---|
[c140ee2] | 51 |
|
---|
[64b4aba] | 52 | <para os="l">Create needed symlinks to be able to log on:</para>
|
---|
[c140ee2] | 53 |
|
---|
[64b4aba] | 54 | <screen os="m"><userinput>ln -sv /tools/etc/{login.{access,defs},limits} ${CLFS}/etc</userinput></screen>
|
---|
[c140ee2] | 55 |
|
---|
| 56 | </sect2>
|
---|
| 57 |
|
---|
| 58 | <sect2 role="content">
|
---|
| 59 | <title/>
|
---|
| 60 |
|
---|
| 61 | <para>Details on this package are located in <xref
|
---|
| 62 | linkend="contents-shadow" role="."/></para>
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | </sect1>
|
---|