Changes in BOOK/boot/common/shadow.xml [94ff357:83b1e52]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/shadow.xml
r94ff357 r83b1e52 23 23 <title>Installation of Shadow</title> 24 24 25 <para os="b">Disable the installation of the <command>groups</command> 26 program, as Coreutils provides a better version:</para> 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> 27 28 28 29 <screen os="c"><userinput>cp -v src/Makefile.in{,.orig} 29 sed -e 's/groups$(EXEEXT) //' src/Makefile.in.orig > src/Makefile.in</userinput></screen> 30 sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \ 31 src/Makefile.in.orig > src/Makefile.in</userinput></screen> 30 32 31 33 <para os="d">Prepare Shadow for compilation:</para> 32 34 33 35 <screen os="e"><userinput>./configure --prefix=/tools \ 34 --build=${CLFS_HOST} --host=${CLFS_TARGET} --sysconfdir=/etc</userinput></screen>36 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 35 37 36 <para os="f">The meaning of the configure options:</para> 38 <para os="f">Tell Shadow to use <command>passwd</command> in 39 <filename class="directory">/tools/bin</filename>:</para> 37 40 38 <variablelist os="g"> 39 <varlistentry> 40 <term><parameter>--sysconfdir=/etc</parameter></term> 41 <listitem><para>Tells Shadow to install its configuration files into 42 <filename class="directory">/etc</filename>, rather than 43 <filename class="directory">/tools/etc</filename>.</para></listitem> 44 </varlistentry> 45 46 </variablelist> 41 <screen os="g"><userinput>cp -v config.h{,.orig} 42 sed '/PASSWD_PROGRAM/s@/bin/passwd@/tools&@' config.h.orig > config.h</userinput></screen> 47 43 44 <para os="h">Prevent Shadow from setting installed programs suid:</para> 48 45 49 <para os="h">Compile the package:</para> 46 <screen os="i"><userinput>cp -v src/Makefile{,.orig} 47 sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.orig > src/Makefile</userinput></screen> 50 48 51 <screen os="i"><userinput>make</userinput></screen>49 <para os="j">Compile the package:</para> 52 50 53 <para os="j">This package does not come with a test suite.</para>51 <screen os="k"><userinput>make</userinput></screen> 54 52 55 <para os=" k">Install the package:</para>53 <para os="l">Install the package:</para> 56 54 57 <screen os=" l"><userinput>make DESTDIR=${CLFS}install</userinput></screen>55 <screen os="m"><userinput>make install</userinput></screen> 58 56 59 57 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.