source: networking/netlibs/libevent.xml@ 5af5876

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 5af5876 was 5f3bda7, checked in by Xi Ruoyao <xry111@…>, 12 months ago

network: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 7.8 KB
Line 
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-source "https://github.com/libevent/libevent/releases/download">
8
9 <!ENTITY libevent-download-http "&libevent-source;/release-&libevent-version;-stable/libevent-&libevent-version;-stable.tar.gz">
10 <!ENTITY libevent-download-ftp " ">
11 <!ENTITY libevent-md5sum "b5333f021f880fe76490d8a799cd79f4">
12 <!ENTITY libevent-size "1.0 MB">
13 <!ENTITY libevent-buildsize "20 MB (add 4 MB for tests and 4 MB for API docs)">
14 <!ENTITY libevent-time "0.3 SBU (add 11 SBU for tests)">
15]>
16
17<sect1 id="libevent" xreflabel="libevent-&libevent-version;">
18 <?dbhtml filename="libevent.html"?>
19
20
21 <title>libevent-&libevent-version;</title>
22
23 <indexterm zone="libevent">
24 <primary sortas="a-libevent">libevent</primary>
25 </indexterm>
26
27 <sect2 role="package">
28 <title>Introduction to libevent</title>
29
30 <para>
31 <application>libevent</application> is an asynchronous event notification
32 software library. The <application>libevent</application> API provides a
33 mechanism to execute a callback function when a specific event occurs on
34 a file descriptor or after a timeout has been reached. Furthermore,
35 <application>libevent</application> also supports callbacks due to
36 signals or regular timeouts.
37 </para>
38
39 &lfs113_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&libevent-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&libevent-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &libevent-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &libevent-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &libevent-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &libevent-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">libevent Dependencies</bridgehead>
76 <!-- Python3 ports of the rpcgen_event.py file were produced in 2.1.9 -->
77<!--
78 <bridgehead renderas="sect4">Recommended</bridgehead>
79 <para role="recommended">
80 <xref linkend="openssl"/>
81 </para>
82-->
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="doxygen"/> (for API documentation)
86 </para>
87
88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of libevent</title>
92
93 <para>
94 First, fix an issue that prevents event_rpcgen.py from working:
95 </para>
96
97<screen><userinput remap="pre">sed -i 's/python/&amp;3/' event_rpcgen.py</userinput></screen>
98
99 <para>
100 Install <application>libevent</application> by running the following
101 commands:
102 </para>
103
104<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
105make</userinput></screen>
106
107 <para>
108 If you have <xref linkend="doxygen"/> installed and wish to build API
109 documentation, issue :
110 </para>
111
112<screen remap="doc"><userinput>doxygen Doxyfile</userinput></screen>
113
114 <para>
115 To test the results, issue: <command>make verify</command>. Six tests in
116 every suite related to <filename>regress_ssl.c</filename> and
117 <filename>regress_http.c</filename> are known to fail due to
118 incompatibilities with OpenSSL-3.
119 </para>
120
121 <para>
122 Now, as the <systemitem class="username">root</systemitem> user:
123 </para>
124
125<screen role="root"><userinput>make install</userinput></screen>
126
127 <para>
128 If you built the API documentation, install it by issuing the following
129 commands as the <systemitem class="username">root</systemitem> user:
130 </para>
131
132<screen role="root"
133 remap="doc"><userinput>install -v -m755 -d /usr/share/doc/libevent-&libevent-version;/api &amp;&amp;
134cp -v -R doxygen/html/* \
135 /usr/share/doc/libevent-&libevent-version;/api</userinput></screen>
136 </sect2>
137
138 <sect2 role="commands">
139 <title>Command Explanations</title>
140
141 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
142 href="../../xincludes/static-libraries.xml"/>
143
144 </sect2>
145
146 <sect2 role="content">
147 <title>Contents</title>
148
149 <segmentedlist>
150 <segtitle>Installed Program</segtitle>
151 <segtitle>Installed Libraries</segtitle>
152 <segtitle>Installed Directory</segtitle>
153
154 <seglistitem>
155 <seg>
156 event_rpcgen.py
157 </seg>
158 <seg>
159 libevent_core.so,
160 libevent_extra.so,
161 libevent_openssl.so,
162 libevent_pthreads.so and
163 libevent.so
164 </seg>
165 <seg>
166 /usr/include/event2 and
167 /usr/share/doc/libevent-&libevent-version;
168 </seg>
169 </seglistitem>
170 </segmentedlist>
171
172 <!-- Who knows what these things do?
173 <variablelist>
174 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
175 <?dbfo list-presentation="list"?>
176 <?dbhtml list-presentation="table"?>
177
178 <varlistentry id="event_rpcgen.py">
179 <term><command>event_rpcgen.py</command></term>
180 <listitem>
181 <para>
182 does this .....
183 </para>
184 <indexterm zone="libevent event_rpcgen.py">
185 <primary sortas="b-event_rpcgen.py">event_rpcgen.py</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="libevent_core">
191 <term><filename class="libraryfile">libevent_core.so</filename></term>
192 <listitem>
193 <para>
194 contains functions that .....
195 </para>
196 <indexterm zone="libevent libevent_core">
197 <primary sortas="c-libevent_core">libevent_core.so</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201 </variablelist>
202
203 <varlistentry id="libevent_extra">
204 <term><filename class="libraryfile">libevent_extra.so</filename></term>
205 <listitem>
206 <para>
207 contains functions that .....
208 </para>
209 <indexterm zone="libevent libevent_extra">
210 <primary sortas="c-libevent_extra">libevent_extra.so</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214 </variablelist>
215
216 <varlistentry id="libevent_openssl">
217 <term><filename class="libraryfile">libevent_openssl.so</filename></term>
218 <listitem>
219 <para>
220 contains functions that .....
221 </para>
222 <indexterm zone="libevent libevent_openssl">
223 <primary sortas="c-libevent_openssl">libevent_openssl.so</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227 </variablelist>
228
229 <varlistentry id="libevent_pthreads">
230 <term><filename class="libraryfile">libevent_pthreads.so</filename></term>
231 <listitem>
232 <para>
233 contains functions that .....
234 </para>
235 <indexterm zone="libevent libevent_pthreads">
236 <primary sortas="c-libevent_pthreads">libevent_pthreads.so</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240 </variablelist>
241
242 <varlistentry id="libevent-lib">
243 <term><filename class="libraryfile">libevent.so</filename></term>
244 <listitem>
245 <para>
246 contains functions that .....
247 </para>
248 <indexterm zone="libevent libevent-lib">
249 <primary sortas="c-libevent">libevent.so</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 </variablelist> -->
255
256 </sect2>
257
258</sect1>
Note: See TracBrowser for help on using the repository browser.