[5ef6186] | 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
|
---|
[ea21196] | 8 | "https://github.com/downloads/libevent/libevent/libevent-&libevent-version;-stable.tar.gz">
|
---|
[5ef6186] | 9 | <!ENTITY libevent-download-ftp " ">
|
---|
[ea21196] | 10 | <!ENTITY libevent-md5sum "b2405cc9ebf264aa47ff615d9de527a2">
|
---|
[5bffe1dd] | 11 | <!ENTITY libevent-size "832 KB">
|
---|
[ea21196] | 12 | <!ENTITY libevent-buildsize "21 MB">
|
---|
[5bffe1dd] | 13 | <!ENTITY libevent-time "0.2 SBU">
|
---|
[5ef6186] | 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">
|
---|
[ea21196] | 27 | <primary sortas="a-libevent">libevent</primary>
|
---|
[5ef6186] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[ea21196] | 31 | <title>Introduction to libevent</title>
|
---|
[5ef6186] | 32 |
|
---|
| 33 | <para>
|
---|
[ea21196] | 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.
|
---|
[5ef6186] | 40 | </para>
|
---|
| 41 |
|
---|
[3e06289] | 42 | &lfs76_checked;
|
---|
[5ef6186] | 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 |
|
---|
[ea21196] | 78 | <bridgehead renderas="sect3">libevent Dependencies</bridgehead>
|
---|
[5ef6186] | 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[ea21196] | 81 | <para role="recommended">
|
---|
| 82 | <xref linkend="openssl"/>
|
---|
| 83 | </para>
|
---|
[5ef6186] | 84 |
|
---|
[be00429] | 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
| 87 | <xref linkend="doxygen"/> (for API documentation)
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
[5ef6186] | 90 | <para condition="html" role="usernotes">
|
---|
| 91 | User Notes: <ulink url="&blfs-wiki;/libevent"/>
|
---|
| 92 | </para>
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
[ea21196] | 96 | <title>Installation of libevent</title>
|
---|
[5ef6186] | 97 |
|
---|
| 98 | <para>
|
---|
[ea21196] | 99 | Install <application>libevent</application> by running the following
|
---|
[5ef6186] | 100 | commands:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
| 104 | make</userinput></screen>
|
---|
| 105 |
|
---|
[101030d] | 106 | <para>
|
---|
| 107 | If you have <xref linkend="doxygen"/> installed and wish to build API
|
---|
| 108 | documentation, issue <command>doxygen Doxyfile</command>.
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
[5ef6186] | 111 | <para>
|
---|
| 112 | To test the results, issue: <command>make check</command>.
|
---|
[ea21196] | 113 | </para>
|
---|
[5ef6186] | 114 |
|
---|
| 115 | <para>
|
---|
| 116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[101030d] | 120 |
|
---|
| 121 | <para>
|
---|
| 122 | If you built the API documentation, install it by issuing the following
|
---|
| 123 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/libevent-&libevent-version;/api &&
|
---|
| 127 | cp -v -R doxygen/html/* \
|
---|
| 128 | /usr/share/doc/libevent-&libevent-version;/api</userinput></screen>
|
---|
[5ef6186] | 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2 role="commands">
|
---|
| 132 | <title>Command Explanations</title>
|
---|
| 133 |
|
---|
| 134 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 135 | href="../../xincludes/static-libraries.xml"/>
|
---|
[ea21196] | 136 |
|
---|
[5ef6186] | 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="content">
|
---|
| 140 | <title>Contents</title>
|
---|
| 141 |
|
---|
| 142 | <segmentedlist>
|
---|
| 143 | <segtitle>Installed Program</segtitle>
|
---|
| 144 | <segtitle>Installed Libraries</segtitle>
|
---|
| 145 | <segtitle>Installed Directory</segtitle>
|
---|
| 146 |
|
---|
| 147 | <seglistitem>
|
---|
[ea21196] | 148 | <seg>
|
---|
| 149 | event_rpcgen.py
|
---|
| 150 | </seg>
|
---|
[5ef6186] | 151 | <seg>
|
---|
| 152 | libevent_core.so,
|
---|
| 153 | libevent_extra.so,
|
---|
| 154 | libevent_openssl.so,
|
---|
| 155 | libevent_pthreads.so and
|
---|
| 156 | libevent.so
|
---|
| 157 | </seg>
|
---|
[ea21196] | 158 | <seg>
|
---|
| 159 | /usr/include/event2
|
---|
| 160 | </seg>
|
---|
[5ef6186] | 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
| 163 |
|
---|
| 164 | <!-- Who knows what these things do?
|
---|
| 165 | <variablelist>
|
---|
| 166 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 167 | <?dbfo list-presentation="list"?>
|
---|
| 168 | <?dbhtml list-presentation="table"?>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="event_rpcgen.py">
|
---|
| 171 | <term><command>event_rpcgen.py</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>
|
---|
| 174 | does this .....
|
---|
| 175 | </para>
|
---|
| 176 | <indexterm zone="libevent event_rpcgen.py">
|
---|
| 177 | <primary sortas="b-event_rpcgen.py">event_rpcgen.py</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="libevent_core">
|
---|
| 183 | <term><filename class="libraryfile">libevent_core.so</filename></term>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>
|
---|
| 186 | contains functions that .....
|
---|
| 187 | </para>
|
---|
| 188 | <indexterm zone="libevent libevent_core">
|
---|
| 189 | <primary sortas="c-libevent_core">libevent_core.so</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 | </variablelist>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="libevent_extra">
|
---|
| 196 | <term><filename class="libraryfile">libevent_extra.so</filename></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>
|
---|
| 199 | contains functions that .....
|
---|
| 200 | </para>
|
---|
| 201 | <indexterm zone="libevent libevent_extra">
|
---|
| 202 | <primary sortas="c-libevent_extra">libevent_extra.so</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 | </variablelist>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="libevent_openssl">
|
---|
| 209 | <term><filename class="libraryfile">libevent_openssl.so</filename></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>
|
---|
| 212 | contains functions that .....
|
---|
| 213 | </para>
|
---|
| 214 | <indexterm zone="libevent libevent_openssl">
|
---|
| 215 | <primary sortas="c-libevent_openssl">libevent_openssl.so</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 | </variablelist>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="libevent_pthreads">
|
---|
| 222 | <term><filename class="libraryfile">libevent_pthreads.so</filename></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>
|
---|
| 225 | contains functions that .....
|
---|
| 226 | </para>
|
---|
| 227 | <indexterm zone="libevent libevent_pthreads">
|
---|
| 228 | <primary sortas="c-libevent_pthreads">libevent_pthreads.so</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 | </variablelist>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="libevent-lib">
|
---|
| 235 | <term><filename class="libraryfile">libevent.so</filename></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>
|
---|
| 238 | contains functions that .....
|
---|
| 239 | </para>
|
---|
| 240 | <indexterm zone="libevent libevent-lib">
|
---|
| 241 | <primary sortas="c-libevent">libevent.so</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
[ea21196] | 245 |
|
---|
[5ef6186] | 246 | </variablelist> -->
|
---|
[ea21196] | 247 |
|
---|
[5ef6186] | 248 | </sect2>
|
---|
[ea21196] | 249 |
|
---|
[5ef6186] | 250 | </sect1>
|
---|