Fixes to Attr and libcap pages. Don't move coreutils' utils in /bin which are not specified by FHS to be there - they aren't necesary for systemd.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10150 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Krejzi 2013-02-15 13:56:39 +00:00
parent 2acccb96a1
commit c97d81d719
6 changed files with 32 additions and 17 deletions

View File

@ -269,7 +269,7 @@
</listitem>
<listitem>
<para>Libcap2-&libcap-version;</para>
<para>Libcap-&libcap-version;</para>
</listitem>
<listitem>

View File

@ -357,7 +357,7 @@
</varlistentry>
<varlistentry>
<term>Libcap2 (&libcap-version;) - <token>&libcap-size;</token>:</term>
<term>Libcap (&libcap-version;) - <token>&libcap-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&libcap-home;"/></para>
<para>Download: <ulink url="&libcap-url;"/></para>

View File

@ -57,11 +57,25 @@
<para>The attr tests need to be run on a filesystem that supports extended
attributes. To test the results, issue:</para>
<screen><userinput remap="test">make tests root-tests ext-tests</userinput></screen>
<!-- ext-tests fail for some reason -->
<screen><userinput remap="test">make tests root-tests</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">make install install-dev install-lib</userinput></screen>
<screen><userinput remap="install">make install install-dev install-lib &amp;&amp;
chmod -v 0755 /lib/libattr.so.1.1.0</userinput></screen>
<para>Remove static library and libtool archive from
<filename class="directory">/lib</filename>, they exist in
<filename class="directory">/usr/lib</filename>:</para>
<screen><userinput remap="install">rm -v /lib/libattr.{a,la,so}</userinput></screen>
<para>Change default location for the libtool archive and recreate
symlink to shared library since it points to removed file:</para>
<screen><userinput remap="install">sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la &amp;&amp;
ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
</sect2>
@ -76,7 +90,7 @@
<seglistitem>
<seg>attr, getfattr, and setattr</seg>
<seg>libattr.{so,a}</seg>
<seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
<seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
</seglistitem>
</segmentedlist>

View File

@ -120,19 +120,11 @@
<screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
mv -v /usr/bin/{rmdir,stty,sync,true,uname,test,[} /bin
mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8</userinput></screen>
<para>Some of the scripts in the LFS-Bootscripts package depend on
<command>head</command>, <command>sleep</command>, and
<command>nice</command>. As <filename class="directory">/usr</filename>
may not be available during the early stages of booting, those binaries
need to be on the root partition:</para>
<screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen>
</sect2>

View File

@ -14,7 +14,7 @@
<address>&libcap-url;</address>
</sect1info>
<title>Libcap2-&libcap-version;</title>
<title>Libcap-&libcap-version;</title>
<indexterm zone="ch-system-libcap">
<primary sortas="a-Libcap">Libcap</primary>
@ -51,7 +51,16 @@
<para>Install the package:</para>
<screen><userinput remap="install">make RAISE_SETFCAP=no install</userinput></screen>
<screen><userinput remap="install">make RAISE_SETFCAP=no prefix=/usr install &amp;&amp;
chmod -v 0755 /usr/lib/libcap.so.2.22</userinput></screen>
<para>The shared library needs to be moved to
<filename class="directory">/lib</filename>, and as a result the
<filename class="extension">.so</filename> file in
<filename class="directory">/usr/lib</filename> will need to be recreated:</para>
<screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib &amp;&amp;
ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
</sect2>

View File

@ -294,7 +294,7 @@
</listitem>
<listitem>
<para>Libcap2</para>
<para>Libcap</para>
<para>This package contains functions that enable root privileges to be
partitioned into a set of distinct privileges. It is required by