diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/chapter06.xml | 2 | ||||
-rw-r--r-- | chapter06/kmod.xml | 6 | ||||
-rw-r--r-- | chapter06/libpipeline.xml | 8 | ||||
-rw-r--r-- | chapter06/man-db.xml | 5 | ||||
-rw-r--r-- | chapter06/pkgconfig.xml | 103 | ||||
-rw-r--r-- | chapter06/popt.xml | 94 | ||||
-rw-r--r-- | chapter06/udev.xml | 6 |
7 files changed, 205 insertions, 19 deletions
diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 71a37a182..9ee047f98 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -46,6 +46,8 @@ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gdbm.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="inetutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="perl.xml"/> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="popt.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="autoconf.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="automake.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/> diff --git a/chapter06/kmod.xml b/chapter06/kmod.xml index 649cb76d3..f04f89303 100644 --- a/chapter06/kmod.xml +++ b/chapter06/kmod.xml @@ -43,11 +43,7 @@ <para>Prepare Kmod for compilation:</para> -<screen><userinput remap="configure">liblzma_CFLAGS="-I/usr/include" \ -liblzma_LIBS="-L/lib -llzma" \ -zlib_CFLAGS="-I/usr/include" \ -zlib_LIBS="-L/lib -lz" \ -./configure --prefix=/usr \ +<screen><userinput remap="configure">./configure --prefix=/usr \ --bindir=/bin \ --libdir=/lib \ --sysconfdir=/etc \ diff --git a/chapter06/libpipeline.xml b/chapter06/libpipeline.xml index 04bc472b4..e3e248760 100644 --- a/chapter06/libpipeline.xml +++ b/chapter06/libpipeline.xml @@ -43,10 +43,8 @@ <para>Prepare Libpipeline for compilation:</para> -<screen><userinput remap="configure">./configure CHECK_CFLAGS=-I/tools/include \ - CHECK_LIBS="-L/tools/lib -lcheck" \ - --prefix=/usr</userinput></screen> - +<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> +<!-- <variablelist> <title>The meaning of the configure options:</title> @@ -59,7 +57,7 @@ </varlistentry> </variablelist> - +--> <para>Compile the package:</para> <screen><userinput remap="make">make</userinput></screen> diff --git a/chapter06/man-db.xml b/chapter06/man-db.xml index d5fa4f5bf..9adb42318 100644 --- a/chapter06/man-db.xml +++ b/chapter06/man-db.xml @@ -43,10 +43,7 @@ <para>Prepare Man-DB for compilation:</para> -<screen><userinput remap="configure">PKG_CONFIG=/tools/bin/true \ -libpipeline_CFLAGS='' \ -libpipeline_LIBS='-lpipeline' \ -./configure --prefix=/usr \ +<screen><userinput remap="configure">./configure --prefix=/usr \ --libexecdir=/usr/lib \ --docdir=/usr/share/doc/man-db-&man-db-version; \ --sysconfdir=/etc \ diff --git a/chapter06/pkgconfig.xml b/chapter06/pkgconfig.xml new file mode 100644 index 000000000..8419f1439 --- /dev/null +++ b/chapter06/pkgconfig.xml @@ -0,0 +1,103 @@ +<?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-pkgconfig" role="wrap"> + <?dbhtml filename="pkg-config.html"?> + + <sect1info condition="script"> + <productname>pkgconfig</productname> + <productnumber>&pkgconfig-version;</productnumber> + <address>&pkgconfig-url;</address> + </sect1info> + + <title>Pkg-config-&pkgconfig-version;</title> + + <indexterm zone="ch-system-pkgconfig"> + <primary sortas="a-pkgconfig">pkgconfig</primary> + </indexterm> + + <sect2 role="package"> + <title/> + + <para> The pkg-config package contains a tool for passing the include path + and/or library paths to build tools during the configure and make file + execution.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&pkgconfig-ch6-sbu;</seg> + <seg>&pkgconfig-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Pkg-config</title> + + <para>Prepare Pkg-config for compilation:</para> + +<screen><userinput remap="configure">./configure --prefix=/usr \ + --with-installed-popt \ + --with-internal-glib \ + --docdir=/usr/share/doc/pkg-config-&pkgconfig-version; + +</userinput></screen> + + <para>Compile the package:</para> + +<screen><userinput remap="make">make</userinput></screen> + + <para>To test the results, issue:</para> + +<screen><userinput remap="test">make check</userinput></screen> + + <para>Install the package:</para> + +<screen><userinput remap="install">make install</userinput></screen> + + </sect2> + + + <sect2 id="contents-pkgconfig" role="content"> + <title>Contents of Pkg-config</title> + + <segmentedlist> + <segtitle>Installed program</segtitle> + <segtitle>Installed directory</segtitle> + + <seglistitem> + <seg>pkg-config</seg> + <seg>/usr/share/doc/pkg-config-0.26</seg> + </seglistitem> + </segmentedlist> + + <variablelist> + <bridgehead renderas="sect3">Short Descriptions</bridgehead> + <?dbfo list-presentation="list"?> + <?dbhtml list-presentation="table"?> + + <varlistentry id="pkgconfig"> + <!-- Don't remove the extra space, it prevents a FOP warning. --> + <term><command>pkg-config </command></term> + <listitem> + <para>returns meta information for the specified library or package. + </para> + <indexterm zone="ch-system-pkgconfig pkgconfig"> + <primary sortas="b-pkgconfig">pkg-config</primary> + </indexterm> + </listitem> + </varlistentry> + + </variablelist> + + </sect2> + +</sect1> diff --git a/chapter06/popt.xml b/chapter06/popt.xml new file mode 100644 index 000000000..1423f12d5 --- /dev/null +++ b/chapter06/popt.xml @@ -0,0 +1,94 @@ +<?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-popt" role="wrap"> + <?dbhtml filename="popt.html"?> + + <sect1info condition="script"> + <productname>popt</productname> + <productnumber>&popt-version;</productnumber> + <address>&popt-url;</address> + </sect1info> + + <title>Popt-&popt-version;</title> + + <indexterm zone="ch-system-popt"> + <primary sortas="a-popt">popt</primary> + </indexterm> + + <sect2 role="package"> + <title/> + + <para>The Popt package contains a library used by some programs + to parse command-line options.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&popt-ch6-sbu;</seg> + <seg>&popt-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Popt</title> + + <para>Prepare Popt4 for compilation:</para> + +<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> + + <para>Compile the package:</para> + +<screen><userinput remap="make">make</userinput></screen> + + <para>To test the results, issue:</para> + +<screen><userinput remap="test">make check</userinput></screen> + + <para>Install the package:</para> + +<screen><userinput remap="install">make install</userinput></screen> + + </sect2> + + + <sect2 id="contents-popt" role="content"> + <title>Contents of Popt</title> + + <segmentedlist> + <segtitle>Installed libraries:</segtitle> + + <seglistitem> + <seg>libpopt.{a,so}</seg> + </seglistitem> + </segmentedlist> + + <variablelist> + <bridgehead renderas="sect3">Short Descriptions</bridgehead> + <?dbfo list-presentation="list"?> + <?dbhtml list-presentation="table"?> + + <varlistentry id="libpopt"> + <!-- Don't remove the extra space, it prevet a FOP warning. --> + <term><filename class="libraryfile">libpopt</filename></term> + <listitem> + <para>is used to parse command-line options.</para> + <indexterm zone="ch-system-popt libpopt"> + <primary sortas="b-libpopt">libpopt</primary> + </indexterm> + </listitem> + </varlistentry> + + </variablelist> + + </sect2> + +</sect1> diff --git a/chapter06/udev.xml b/chapter06/udev.xml index e779717b6..9ce3350c9 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -54,11 +54,7 @@ mknod -m0666 /lib/udev/devices/null c 1 3</userinput></screen> <para>Prepare the package for compilation:</para> <!-- Note that "libdir=/usr/lib64" would be required for multilib. --> -<screen><userinput remap="configure">BLKID_CFLAGS="-I/usr/include/blkid" \ -BLKID_LIBS="-L/lib -lblkid" \ -KMOD_CFLAGS="-I/usr/include" \ -KMOD_LIBS="-L/lib -lkmod" \ -./configure --prefix=/usr \ +<screen><userinput remap="configure">./configure --prefix=/usr \ --with-rootprefix='' \ --bindir=/sbin \ --sysconfdir=/etc \ |