Add acl and attr packages

Minor grammar fixes
Update standards compliance statments
Put e2fsprogs executables in /bin


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10512 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2014-03-21 19:34:09 +00:00
parent a57d556dd7
commit eec8fcb880
14 changed files with 431 additions and 17 deletions

View File

@ -37,6 +37,78 @@
the LFS book and then go back an rebuild the LFS package. In several cases,
reinstallation is addressed in BLFS.</para>
<!-- Begin Acl dependency info -->
<bridgehead renderas="sect2" id="acl-dep">acl</bridgehead>
<segmentedlist>
<segtitle>&dependencies;</segtitle>
<seglistitem>
<seg>Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make,
Perl, Sed, and Texinfo</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&testsuites;</segtitle>
<seglistitem>
<seg>Automake, Diffutils, Findutils, and Libtool</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&before;</segtitle>
<seglistitem>
<seg>Systemd</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&external;</segtitle>
<seglistitem>
<seg>None</seg>
</seglistitem>
</segmentedlist>
<!-- Begin Attr dependency info -->
<bridgehead renderas="sect2" id="attr-dep">attr</bridgehead>
<segmentedlist>
<segtitle>&dependencies;</segtitle>
<seglistitem>
<seg>Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make,
Perl, Sed, and Texinfo</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&testsuites;</segtitle>
<seglistitem>
<seg>Automake, Diffutils, Findutils, and Libtool</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&before;</segtitle>
<seglistitem>
<seg>Systemd</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&external;</segtitle>
<seglistitem>
<seg>None</seg>
</seglistitem>
</segmentedlist>
<!-- Begin Autoconf dependency info -->
<bridgehead renderas="sect2" id="autoconf-dep">Autoconf</bridgehead>

View File

@ -363,7 +363,7 @@ killproc()
fi
# For signals that do not expect a program to exit, simply
# let kill do it's job, and evaluate kills return for value
# let kill do its job, and evaluate kill's return for value
else # check_sig_type - signal is not used to terminate program
for pid in ${pidlist}; do

View File

@ -10,7 +10,7 @@
# Notes : The syntax of this file is as follows:
# <module> [<arg1> <arg2> ...]
#
# Each module should be on it's own line, and any options that you want
# Each module should be on its own line, and any options that you want
# passed to the module should follow it. The line deliminator is either
# a space or a tab.
########################################################################

View File

@ -35,6 +35,15 @@
</itemizedlist>
</listitem>
-->
<listitem>
<para>2014-03-21</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Added acl and attr to the book.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2014-03-12</para>
<itemizedlist>

View File

@ -226,6 +226,12 @@
<title>Added:</title>
<listitem><para></para></listitem> <!-- satisfy build -->
<listitem>
<para>acl-2.2.52</para>
</listitem>
<listitem>
<para>attr-2.4.47</para>
</listitem>
<listitem>
<para>eudev-1.5.1</para>
</listitem>

View File

@ -15,11 +15,20 @@
<variablelist role="materials">
<varlistentry>
<term>Autoconf (&autoconf-version;) - <token>&autoconf-size;</token>:</term>
<term>Acl (&acl-version;) - <token>&acl-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&autoconf-home;"/></para>
<para>Download: <ulink url="&autoconf-url;"/></para>
<para>MD5 sum: <literal>&autoconf-md5;</literal></para>
<para>Home page: <ulink url="&acl-home;"/></para>
<para>Download: <ulink url="&acl-url;"/></para>
<para>MD5 sum: <literal>&acl-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Attr (&attr-version;) - <token>&attr-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&attr-home;"/></para>
<para>Download: <ulink url="&attr-url;"/></para>
<para>MD5 sum: <literal>&attr-md5;</literal></para>
</listitem>
</varlistentry>

150
chapter06/acl.xml Normal file
View File

@ -0,0 +1,150 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-system-acl" role="wrap">
<?dbhtml filename="acl.html"?>
<sect1info condition="script">
<productname>acl</productname>
<productnumber>&acl-version;</productnumber>
<address>&acl-url;</address>
</sect1info>
<title>Acl-&acl-version;</title>
<indexterm zone="ch-system-acl">
<primary sortas="a-Acl">Acl</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The Acl package contains utilities to administer Access Control Lists,
which are used to define more fine-grained discretionary access rights for
files and directories.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&acl-ch6-sbu;</seg>
<seg>&acl-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Acl</title>
<para>Modify the documentation directory so that it is a versioned
directory:</para>
<screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
<para>Fix some broken tests:</para>
<screen><userinput remap="pre">sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test</userinput></screen>
<para>Prepare Acl for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr \
--bindir=/bin \
--libexecdir=/usr/lib</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>The Acl tests need to be run on a filesystem that supports access
controls after <application>Coreutils</application> has been built with the
Acl libraries. If desired, return to this package and run <command>make
tests</command> after <application>Coreutils</application> has been built
later in this chapter.</para>
<para>Install the package:</para>
<screen><userinput remap="install">make install install-dev install-lib
chmod -v 755 /usr/lib/libacl.so</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/libacl.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
</sect2>
<sect2 id="contents-acl" role="content">
<title>Contents of Acl</title>
<segmentedlist>
<segtitle>Installed programs</segtitle>
<segtitle>Installed library</segtitle>
<segtitle>Installed directories</segtitle>
<seglistitem>
<seg>chacl, getfacl, and setacl</seg>
<seg>libacl.{a,so}</seg>
<seg>/usr/include/acl, /usr/share/doc/acl-&acl-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="chacl">
<term><command>chacl</command></term>
<listitem>
<para>Changes the access control list of a file
or directory.</para>
<indexterm zone="ch-system-acl chacl">
<primary sortas="b-chacl">chacl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="getfacl">
<term><command>getfacl</command></term>
<listitem>
<para>Gets file access control lists.</para>
<indexterm zone="ch-system-acl getfacl">
<primary sortas="b-getfacl">getfacl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="setacl">
<term><command>setacl</command></term>
<listitem>
<para>Sets file access control lists.</para>
<indexterm zone="ch-system-acl setacl">
<primary sortas="b-setacl">setacl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libacl">
<term><filename class="libraryfile">libacl</filename></term>
<listitem>
<para>Contains the <application>Acl</application> API functions.</para>
<indexterm zone="ch-system-acl libacl">
<primary sortas="c-libacl">libacl</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

147
chapter06/attr.xml Normal file
View File

@ -0,0 +1,147 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-system-attr" role="wrap">
<?dbhtml filename="attr.html"?>
<sect1info condition="script">
<productname>attr</productname>
<productnumber>&attr-version;</productnumber>
<address>&attr-url;</address>
</sect1info>
<title>Attr-&attr-version;</title>
<indexterm zone="ch-system-attr">
<primary sortas="a-Attr">Attr</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The attr package contains utilities to administer the extended
attributes on filesystem objects.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&attr-ch6-sbu;</seg>
<seg>&attr-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Attr</title>
<para>Modify the documentation directory so that it is a versioned
directory:</para>
<screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
<!--
<para>Prevent installation of manual pages that were already installed by
Man-Pages package:</para>
<screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man2||" man/Makefile</userinput></screen>
-->
<para>Prepare Attr for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>The tests need to be run on a filesystem that supports extended
attributes such as the ext2, ext3, or ext4 filesystems. To test the
results, issue:</para>
<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
chmod -v 755 /usr/lib/libattr.so</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/libattr.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
</sect2>
<sect2 id="contents-attr" role="content">
<title>Contents of Attr</title>
<segmentedlist>
<segtitle>Installed programs</segtitle>
<segtitle>Installed library</segtitle>
<segtitle>Installed directories</segtitle>
<seglistitem>
<seg>attr, getfattr, and setattr</seg>
<seg>libattr.{a,so}</seg>
<seg>/usr/include/attr, /usr/share/doc/attr-&attr-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="attr">
<term><command>attr</command></term>
<listitem>
<para>Extends attributes on filesystem objects</para>
<indexterm zone="ch-system-attr attr">
<primary sortas="b-attr">attr</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="getfattr">
<term><command>getfattr</command></term>
<listitem>
<para>Gets the extended attributes of filesystem objects.</para>
<indexterm zone="ch-system-attr getfattr">
<primary sortas="b-getfattr">getfattr</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="setattr">
<term><command>setattr</command></term>
<listitem>
<para>Sets the extended attributes of filesystem objects</para>
<indexterm zone="ch-system-attr setattr">
<primary sortas="b-setattr">setattr</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libattr">
<term><filename class="libraryfile">libattr</filename></term>
<listitem>
<para>Contains the <application>Attr</application> API functions.</para>
<indexterm zone="ch-system-attr libattr">
<primary sortas="c-libattr">libattr</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

View File

@ -32,6 +32,8 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bzip2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pkgconfig.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ncurses.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="attr.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="acl.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="shadow.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="psmisc.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="procps.xml"/>

View File

@ -61,6 +61,7 @@ cd build</userinput></screen>
CFLAGS=-I/tools/include \
PKG_CONFIG_PATH=/tools/lib/pkgconfig \
../configure --prefix=/usr \
--bindir=/bin \
--with-root-prefix="" \
--enable-elf-shlibs \
--disable-libblkid \
@ -80,7 +81,8 @@ PKG_CONFIG_PATH=/tools/lib/pkgconfig \
</varlistentry>
<varlistentry>
<term><parameter>--with-root-prefix=""</parameter></term>
<term><parameter>--with-root-prefix=""</parameter> and
<parameter>--bindir=/bin</parameter></term>
<listitem>
<para>Certain programs (such as the <command>e2fsck</command>
program) are considered essential programs. When, for example,

View File

@ -44,7 +44,7 @@
<listitem><para>If you want to access your new system from a remote system
within a comfortable GUI environment, install <ulink
url='&blfs-root;/view/svn/postlfs/openssh.html'>openssh</ulink> and it's
url='&blfs-root;/view/svn/postlfs/openssh.html'>openssh</ulink> and its
prerequsite, <ulink
url='&blfs-root;/view/svn/postlfs/openssl.html'>openssl</ulink>.
</para></listitem>

View File

@ -1,5 +1,5 @@
<!ENTITY version "SVN-20140312">
<!ENTITY releasedate "March 12, 2014">
<!ENTITY version "SVN-20140321">
<!ENTITY releasedate "March 21, 2014">
<!ENTITY copyrightdate "1999-2014"><!-- jhalfs needs a literal dash, not &ndash; -->
<!ENTITY milestone "7.6">
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
@ -34,6 +34,7 @@
<!ENTITY alpha-gnu "http://alpha.gnu.org/gnu/">
<!ENTITY kernel "https://www.kernel.org/pub/">
<!ENTITY sourceforge "http://prdownloads.sourceforge.net/">
<!ENTITY savannah "http://download.savannah.gnu.org">
<!ENTITY % packages-entities SYSTEM "packages.ent">
%packages-entities;

View File

@ -7,6 +7,22 @@
Allowed deviation in disk usage : 2% -->
<!ENTITY acl-version "2.2.52">
<!ENTITY acl-size "380 KB">
<!ENTITY acl-url "&savannah;/releases/acl/acl-&acl-version;.src.tar.gz">
<!ENTITY acl-md5 "a61415312426e9c2212bd7dc7929abda">
<!ENTITY acl-home " ">
<!ENTITY acl-ch6-du "5.4 MB">
<!ENTITY acl-ch6-sbu "0.2 SBU">
<!ENTITY attr-version "2.4.47">
<!ENTITY attr-size "336 KB">
<!ENTITY attr-url "&savannah;/releases/attr/attr-&attr-version;.src.tar.gz">
<!ENTITY attr-md5 "84f58dec00b60f2dc8fd1c9709291cc7">
<!ENTITY attr-home "&gnu-software;attr/">
<!ENTITY attr-ch6-du "17.1 MB">
<!ENTITY attr-ch6-sbu "4.5 SBU">
<!ENTITY autoconf-version "2.69">
<!ENTITY autoconf-size "1,186 KB">
<!ENTITY autoconf-url "&gnu;autoconf/autoconf-&autoconf-version;.tar.xz">
@ -322,7 +338,7 @@
<!ENTITY less-ch6-du "3.6 MB">
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
<!ENTITY lfs-bootscripts-version "20140307"> <!-- Scripts depend on this format -->
<!ENTITY lfs-bootscripts-version "20140321"> <!-- Scripts depend on this format -->
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
@ -332,7 +348,7 @@
<!ENTITY libpipeline-version "1.2.6">
<!ENTITY libpipeline-size "761 KB">
<!ENTITY libpipeline-url "http://download.savannah.gnu.org/releases/libpipeline/libpipeline-&libpipeline-version;.tar.gz">
<!ENTITY libpipeline-url "&savannah;/releases/libpipeline/libpipeline-&libpipeline-version;.tar.gz">
<!ENTITY libpipeline-md5 "6d1d51a5dc102af41e0d269d2a31e6f9">
<!ENTITY libpipeline-home "http://libpipeline.nongnu.org/">
<!ENTITY libpipeline-ch6-du "7.4 MB">
@ -391,7 +407,7 @@
<!ENTITY man-db-version "2.6.6">
<!ENTITY man-db-size "1,415 KB">
<!ENTITY man-db-url "http://download.savannah.gnu.org/releases/man-db/man-db-&man-db-version;.tar.xz">
<!ENTITY man-db-url "&savannah;/releases/man-db/man-db-&man-db-version;.tar.xz">
<!ENTITY man-db-md5 "5d65d66191080c144437a6c854e17868">
<!ENTITY man-db-home "http://www.nongnu.org/man-db/">
<!ENTITY man-db-ch6-du "27 MB">
@ -439,7 +455,7 @@
<!ENTITY patch-size "660 KB">
<!ENTITY patch-url "&gnu;patch/patch-&patch-version;.tar.xz">
<!ENTITY patch-md5 "e9ae5393426d3ad783a300a338c09b72">
<!ENTITY patch-home "http://savannah.gnu.org/projects/patch/">
<!ENTITY patch-home "&savannah;/projects/patch/">
<!ENTITY patch-ch5-du "3.4 MB">
<!ENTITY patch-ch5-sbu "0.1 SBU">
<!ENTITY patch-ch6-du "3.4 MB">
@ -515,7 +531,7 @@
<!ENTITY sysvinit-version "2.88dsf">
<!ENTITY sysvinit-size "108 KB">
<!ENTITY sysvinit-url "http://download.savannah.gnu.org/releases/sysvinit/sysvinit-&sysvinit-version;.tar.bz2">
<!ENTITY sysvinit-url "&savannah;/releases/sysvinit/sysvinit-&sysvinit-version;.tar.bz2">
<!ENTITY sysvinit-md5 "6eda8a97b86e0a6f59dabbf25202aa6f">
<!ENTITY sysvinit-home "http://savannah.nongnu.org/projects/sysvinit">
<!ENTITY sysvinit-ch6-du "1.4 MB">

View File

@ -113,7 +113,7 @@
<term><emphasis>LSB Core:</emphasis></term>
<listitem>
<para>At, Batch (a part of At), Cpio, Ed, Fcrontab, Initd-tools,
Lsb_release, PAM, Sendmail (or Postfix or Exim) </para>
Lsb_release, PAM, Pax, Sendmail (or Postfix or Exim), time </para>
</listitem>
</varlistentry>
@ -165,7 +165,7 @@
<varlistentry>
<term><emphasis>LSB Core:</emphasis></term>
<listitem>
<para>time (executable) and pax</para>
<para>None</para>
</listitem>
</varlistentry>