source: general/genlib/apr.xml

trunk
Last change on this file was 5d0e7b8, checked in by Douglas R. Reno <renodr@…>, 2 months ago

A bunch of tags

  • Property mode set to 100644
File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <!ENTITY apr-download-http
8 "https://archive.apache.org/dist/apr/apr-&apr-version;.tar.bz2">
9 <!ENTITY apr-download-ftp " ">
10 <!ENTITY apr-md5sum "f8a62f3984898ba0ea8b6f26b851cb99">
11 <!ENTITY apr-size "876 KB">
12 <!ENTITY apr-buildsize "11 MB (additional 4 MB for the tests)">
13 <!ENTITY apr-time "0.1 SBU (add 1.4 SBU for tests)">
14]>
15
16<sect1 id="apr" xreflabel="Apr-&apr-version;">
17 <?dbhtml filename="apr.html"?>
18
19
20 <title>Apr-&apr-version;</title>
21
22 <indexterm zone="apr">
23 <primary sortas="a-apr">Apr</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Apr</title>
28
29 <para>
30 The Apache Portable Runtime (APR) is a supporting library for the
31 Apache web server. It provides a set of application programming interfaces
32 (APIs) that map to the underlying Operating System (OS). Where the OS
33 doesn't support a particular function, APR will provide an emulation. Thus
34 programmers can use the APR to make a program portable across different
35 platforms.
36 </para>
37
38 &lfs121_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&apr-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&apr-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &apr-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &apr-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &apr-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &apr-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 </sect2>
75
76 <sect2 role="installation">
77 <title>Installation of Apr</title>
78
79<!--
80 <para>
81 First, fix a security issue:
82 </para>
83<!- -
84<screen><userinput>sed '/{306/a \
85\
86 if (xt-&gt;tm_mon &lt; 0 || xt-&gt;tm_mon &gt;= 12) \
87 return APR_EBADDATE;' -i time/unix/time.c</userinput></screen>
88- ->
89<screen><userinput>sed -e "/shift/i \
90\ if (xt-&gt;tm_mon &lt; 0 || xt-&gt;tm_mon &gt;= 12) return APR_EBADDATE;" \
91 -i time/unix/time.c</userinput></screen>
92-->
93<!--
94 <para>
95 Fix an issue checking a location in a script template:
96 </para>
97<screen><userinput>sed -e '/^case "$0"/s;$0;$(readlink -f $0);' \
98 -i apr-config.in</userinput></screen>
99-->
100 <para>
101 Install <application>Apr</application> by running the following commands:
102 </para>
103
104<screen><userinput>./configure --prefix=/usr \
105 --disable-static \
106 --with-installbuilddir=/usr/share/apr-1/build &amp;&amp;
107make</userinput></screen>
108
109 <para>
110 To test the results, issue: <command>make test</command>. <!-- teststr is
111 known to hang on some systems. - WORKS AS OF 1.6.5 (renodr) -->
112 </para>
113
114 <para>
115 Now, as the <systemitem class="username">root</systemitem> user:
116 </para>
117
118<screen role="root"><userinput>make install</userinput></screen>
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
125 href="../../xincludes/static-libraries.xml"/>
126
127 </sect2>
128
129 <sect2 role="content">
130 <title>Contents</title>
131
132 <segmentedlist>
133 <segtitle>Installed Program</segtitle>
134 <segtitle>Installed Library</segtitle>
135 <segtitle>Installed Directories</segtitle>
136
137 <seglistitem>
138 <seg>
139 apr-1-config
140 </seg>
141 <seg>
142 libapr-1.so
143 </seg>
144 <seg>
145 /usr/include/apr-1 and
146 /usr/share/apr-1
147 </seg>
148 </seglistitem>
149 </segmentedlist>
150
151 <variablelist>
152 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
153 <?dbfo list-presentation="list"?>
154 <?dbhtml list-presentation="table"?>
155
156 <varlistentry id="apr-1-config">
157 <term><command>apr-1-config</command></term>
158 <listitem>
159 <para>
160 is a shell script used to retrieve information about the apr
161 library in the system. It is typically used to compile and link
162 against the library
163 </para>
164 <indexterm zone="apr apr-1-config">
165 <primary sortas="b-apr-1-config">apr-1-config</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="libapr-1">
171 <term><filename class="libraryfile">libapr-1.so</filename></term>
172 <listitem>
173 <para>
174 is the Apache Portable Runtime library
175 </para>
176 <indexterm zone="apr libapr-1">
177 <primary sortas="c-libapr-1">libapr-1.so</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181 </variablelist>
182
183 </sect2>
184
185</sect1>
Note: See TracBrowser for help on using the repository browser.