1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
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 libevent-download-http
|
---|
8 | "https://github.com/downloads/libevent/libevent/libevent-&libevent-version;-stable.tar.gz">
|
---|
9 | <!ENTITY libevent-download-ftp " ">
|
---|
10 | <!ENTITY libevent-md5sum "b2405cc9ebf264aa47ff615d9de527a2">
|
---|
11 | <!ENTITY libevent-size "832 KB">
|
---|
12 | <!ENTITY libevent-buildsize "21 MB">
|
---|
13 | <!ENTITY libevent-time "0.2 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="libevent" xreflabel="libevent-&libevent-version;">
|
---|
17 | <?dbhtml filename="libevent.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>libevent-&libevent-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="libevent">
|
---|
27 | <primary sortas="a-libevent">libevent</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to libevent</title>
|
---|
32 |
|
---|
33 | <para>
|
---|
34 | <application>libevent</application> is an asynchronous event notification
|
---|
35 | software library. The <application>libevent</application> API provides a
|
---|
36 | mechanism to execute a callback function when a specific event occurs on
|
---|
37 | a file descriptor or after a timeout has been reached. Furthermore,
|
---|
38 | <application>libevent</application> also supports callbacks due to
|
---|
39 | signals or regular timeouts.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs72_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (HTTP): <ulink url="&libevent-download-http;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (FTP): <ulink url="&libevent-download-ftp;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download MD5 sum: &libevent-md5sum;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download size: &libevent-size;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated disk space required: &libevent-buildsize;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated build time: &libevent-time;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect3">libevent Dependencies</bridgehead>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
81 | <para role="recommended">
|
---|
82 | <xref linkend="openssl"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">
|
---|
86 | User Notes: <ulink url="&blfs-wiki;/libevent"/>
|
---|
87 | </para>
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of libevent</title>
|
---|
92 |
|
---|
93 | <para>
|
---|
94 | Install <application>libevent</application> by running the following
|
---|
95 | commands:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
99 | make</userinput></screen>
|
---|
100 |
|
---|
101 | <para>
|
---|
102 | To test the results, issue: <command>make check</command>.
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
110 | </sect2>
|
---|
111 |
|
---|
112 | <sect2 role="commands">
|
---|
113 | <title>Command Explanations</title>
|
---|
114 |
|
---|
115 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
116 | href="../../xincludes/static-libraries.xml"/>
|
---|
117 |
|
---|
118 | </sect2>
|
---|
119 |
|
---|
120 | <sect2 role="content">
|
---|
121 | <title>Contents</title>
|
---|
122 |
|
---|
123 | <segmentedlist>
|
---|
124 | <segtitle>Installed Program</segtitle>
|
---|
125 | <segtitle>Installed Libraries</segtitle>
|
---|
126 | <segtitle>Installed Directory</segtitle>
|
---|
127 |
|
---|
128 | <seglistitem>
|
---|
129 | <seg>
|
---|
130 | event_rpcgen.py
|
---|
131 | </seg>
|
---|
132 | <seg>
|
---|
133 | libevent_core.so,
|
---|
134 | libevent_extra.so,
|
---|
135 | libevent_openssl.so,
|
---|
136 | libevent_pthreads.so and
|
---|
137 | libevent.so
|
---|
138 | </seg>
|
---|
139 | <seg>
|
---|
140 | /usr/include/event2
|
---|
141 | </seg>
|
---|
142 | </seglistitem>
|
---|
143 | </segmentedlist>
|
---|
144 |
|
---|
145 | <!-- Who knows what these things do?
|
---|
146 | <variablelist>
|
---|
147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
148 | <?dbfo list-presentation="list"?>
|
---|
149 | <?dbhtml list-presentation="table"?>
|
---|
150 |
|
---|
151 | <varlistentry id="event_rpcgen.py">
|
---|
152 | <term><command>event_rpcgen.py</command></term>
|
---|
153 | <listitem>
|
---|
154 | <para>
|
---|
155 | does this .....
|
---|
156 | </para>
|
---|
157 | <indexterm zone="libevent event_rpcgen.py">
|
---|
158 | <primary sortas="b-event_rpcgen.py">event_rpcgen.py</primary>
|
---|
159 | </indexterm>
|
---|
160 | </listitem>
|
---|
161 | </varlistentry>
|
---|
162 |
|
---|
163 | <varlistentry id="libevent_core">
|
---|
164 | <term><filename class="libraryfile">libevent_core.so</filename></term>
|
---|
165 | <listitem>
|
---|
166 | <para>
|
---|
167 | contains functions that .....
|
---|
168 | </para>
|
---|
169 | <indexterm zone="libevent libevent_core">
|
---|
170 | <primary sortas="c-libevent_core">libevent_core.so</primary>
|
---|
171 | </indexterm>
|
---|
172 | </listitem>
|
---|
173 | </varlistentry>
|
---|
174 | </variablelist>
|
---|
175 |
|
---|
176 | <varlistentry id="libevent_extra">
|
---|
177 | <term><filename class="libraryfile">libevent_extra.so</filename></term>
|
---|
178 | <listitem>
|
---|
179 | <para>
|
---|
180 | contains functions that .....
|
---|
181 | </para>
|
---|
182 | <indexterm zone="libevent libevent_extra">
|
---|
183 | <primary sortas="c-libevent_extra">libevent_extra.so</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 | </variablelist>
|
---|
188 |
|
---|
189 | <varlistentry id="libevent_openssl">
|
---|
190 | <term><filename class="libraryfile">libevent_openssl.so</filename></term>
|
---|
191 | <listitem>
|
---|
192 | <para>
|
---|
193 | contains functions that .....
|
---|
194 | </para>
|
---|
195 | <indexterm zone="libevent libevent_openssl">
|
---|
196 | <primary sortas="c-libevent_openssl">libevent_openssl.so</primary>
|
---|
197 | </indexterm>
|
---|
198 | </listitem>
|
---|
199 | </varlistentry>
|
---|
200 | </variablelist>
|
---|
201 |
|
---|
202 | <varlistentry id="libevent_pthreads">
|
---|
203 | <term><filename class="libraryfile">libevent_pthreads.so</filename></term>
|
---|
204 | <listitem>
|
---|
205 | <para>
|
---|
206 | contains functions that .....
|
---|
207 | </para>
|
---|
208 | <indexterm zone="libevent libevent_pthreads">
|
---|
209 | <primary sortas="c-libevent_pthreads">libevent_pthreads.so</primary>
|
---|
210 | </indexterm>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry>
|
---|
213 | </variablelist>
|
---|
214 |
|
---|
215 | <varlistentry id="libevent-lib">
|
---|
216 | <term><filename class="libraryfile">libevent.so</filename></term>
|
---|
217 | <listitem>
|
---|
218 | <para>
|
---|
219 | contains functions that .....
|
---|
220 | </para>
|
---|
221 | <indexterm zone="libevent libevent-lib">
|
---|
222 | <primary sortas="c-libevent">libevent.so</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | </variablelist> -->
|
---|
228 |
|
---|
229 | </sect2>
|
---|
230 |
|
---|
231 | </sect1>
|
---|