BSD Ports

devel/libevent 2.1.12_1 MidnightBSD

API for executing callback functions on events or timeouts

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd3
Categories
devel

Description

The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also support callbacks due to signals or regular timeouts.

libevent is meant to replace the event loop found in event driven network servers. An application just needs to call event_dispatch() and then add or remove events dynamically without having to change the event loop.

Currently, libevent supports /dev/poll, kqueue(2), event ports, select(2), poll(2) and epoll(4). The internal event mechanism is completely independent of the exposed event API, and a simple update of libevent can provide new functionality without having to redesign the applications. As a result, Libevent allows for portable application development and provides the most scalable event notification mechanism available on an operating system. Libevent can also be used for multi-threaded applications.

In the other systems

SystemPortVersion
MidnightBSDdevel/libevent2.1.12_1
FreeBSDdevel/libevent2.1.13
OpenBSDdevel/libevent22.1.13
NetBSDdevel/libevent2.1.13
DragonFlydevel/libevent2.1.12
HardenedBSDdevel/libevent2.1.13
GhostBSDdevel/libevent2.1.13
OPNsensedevel/libevent2.1.12

Install

Binary package:

mport install libevent

From mports:

cd /usr/mports/devel/libevent && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libevent>0:devel/libevent
LIB_DEPENDS=	libevent.so:devel/libevent

Dependencies

Configuration

Options name: devel_libevent

OptionDefaultDescription
OPENSSLon
THREADSon
USES
cpe libtool pathfix pkgconfig python:env shebangfix
Service scripts
none

Files

pkg-plist 57
  • bin/event_rpcgen.py
  • include/evdns.h
  • include/event.h
  • include/event2/buffer.h
  • include/event2/buffer_compat.h
  • include/event2/bufferevent.h
  • include/event2/bufferevent_compat.h
  • include/event2/bufferevent_ssl.h
  • include/event2/bufferevent_struct.h
  • include/event2/dns.h
  • include/event2/dns_compat.h
  • include/event2/dns_struct.h
  • include/event2/event-config.h
  • include/event2/event.h
  • include/event2/event_compat.h
  • include/event2/event_struct.h
  • include/event2/http.h
  • include/event2/http_compat.h
  • include/event2/http_struct.h
  • include/event2/keyvalq_struct.h
  • include/event2/listener.h
  • include/event2/rpc.h
  • include/event2/rpc_compat.h
  • include/event2/rpc_struct.h
  • include/event2/tag.h
  • include/event2/tag_compat.h
  • include/event2/thread.h
  • include/event2/util.h
  • include/event2/visibility.h
  • include/evhttp.h
  • include/evrpc.h
  • include/evutil.h
  • lib/libevent-2.1.so.7
  • lib/libevent-2.1.so.7.0.1
  • lib/libevent.a
  • lib/libevent.so
  • lib/libevent_core-2.1.so.7
  • lib/libevent_core-2.1.so.7.0.1
  • lib/libevent_core.a
  • lib/libevent_core.so
  • lib/libevent_extra-2.1.so.7
  • lib/libevent_extra-2.1.so.7.0.1
  • lib/libevent_extra.a
  • lib/libevent_extra.so
  • lib/libevent_openssl-2.1.so.7
  • lib/libevent_openssl-2.1.so.7.0.1
  • lib/libevent_openssl.a
  • lib/libevent_openssl.so
  • lib/libevent_pthreads-2.1.so.7
  • lib/libevent_pthreads-2.1.so.7.0.1
  • lib/libevent_pthreads.a
  • lib/libevent_pthreads.so
  • libdata/pkgconfig/libevent.pc
  • libdata/pkgconfig/libevent_core.pc
  • libdata/pkgconfig/libevent_extra.pc
  • libdata/pkgconfig/libevent_openssl.pc
  • libdata/pkgconfig/libevent_pthreads.pc
distinfo 1
FileSizeSHA256
libevent-2.1.12-stable.tar.gz1.100847e+0692e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
Master sites 1
  • https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/