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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/libevent | 2.1.12_1 |
| FreeBSD | devel/libevent | 2.1.13 |
| OpenBSD | devel/libevent2 | 2.1.13 |
| NetBSD | devel/libevent | 2.1.13 |
| DragonFly | devel/libevent | 2.1.12 |
| HardenedBSD | devel/libevent | 2.1.13 |
| GhostBSD | devel/libevent | 2.1.13 |
| OPNsense | devel/libevent | 2.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
Required by 30
- cad/camotics
- databases/libmemcached
- databases/memcached
- databases/mysql80-server
- databases/mysql84-server
- devel/cbang
- devel/electron39
- devel/electron40
- devel/electron41
- devel/electron42
- devel/electron43
- devel/fstrm
- devel/thrift
- devel/thrift-cpp
- editors/vscode
- mail/thunderbird
- net-mgmt/lldpd
- net-p2p/transmission-components
- net/netatalk3
- net/ntp
- net/openmpi
- net/openmpi4
- science/zotero
- www/chromium
- www/firefox
- www/firefox-esr
- www/firefox-freebsd
- www/palemoon
- www/ungoogled-chromium
- www/waterfox
Configuration
Options name: devel_libevent
| Option | Default | Description |
|---|---|---|
| OPENSSL | on | |
| THREADS | on |
- 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
| File | Size | SHA256 |
|---|---|---|
| libevent-2.1.12-stable.tar.gz | 1.100847e+06 | 92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb |
Master sites 1
- https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/