Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2001 20:10:05 -0400 (EDT)
From:      Pete Fritchman <petef@databits.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28302: New port: devel/libevent
Message-ID:  <200106210010.f5L0A5D54606@electron.databits.net>

next in thread | raw e-mail | index | archive | help

>Number:         28302
>Category:       ports
>Synopsis:       New port: devel/libevent
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 20 17:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Pete Fritchman
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Databits Network Services, Inc.
>Environment:
System: FreeBSD electron.databits.net 4.3-STABLE FreeBSD 4.3-STABLE #7: Mon Jun 11 10:15:45 EDT 2001 root@electron.databits.net:/usr/obj/usr/src/sys/ELECTRON i386

>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.

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

Currently, libevent supports kqueue(2) and select(2). Support for
poll(2) and /dev/poll is planned. The internal event mechanism is
completely independent of the exposed event API, and a simple update
of libevent can provide this new functionality without having to
redesign the server applications.

WWW: http://www.monkey.org/~provos/libevent/

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libevent
#	libevent/distinfo
#	libevent/pkg-descr
#	libevent/pkg-plist
#	libevent/pkg-comment
#	libevent/Makefile
#
echo c - libevent
mkdir -p libevent > /dev/null 2>&1
echo x - libevent/distinfo
sed 's/^X//' >libevent/distinfo << 'END-of-libevent/distinfo'
XMD5 (libevent-0.3d.tar.gz) = 993696c2f5407a912ba4950b19359fba
END-of-libevent/distinfo
echo x - libevent/pkg-descr
sed 's/^X//' >libevent/pkg-descr << 'END-of-libevent/pkg-descr'
XThe libevent API provides a mechanism to execute a callback function
Xwhen a specific event occurs on a file descriptor or after a timeout
Xhas been reached.
X
Xlibevent is meant to replace the asynchronous event loop found in
Xevent driven network servers. An application just needs to call
Xevent_dispatch() and can then add or remove events dynamically
Xwithout having to change the event loop.
X
XCurrently, libevent supports kqueue(2) and select(2). Support for
Xpoll(2) and /dev/poll is planned. The internal event mechanism is
Xcompletely independent of the exposed event API, and a simple update
Xof libevent can provide this new functionality without having to
Xredesign the server applications.
X
XWWW: http://www.monkey.org/~provos/libevent/
X
X- Pete
Xpetef@databits.net
END-of-libevent/pkg-descr
echo x - libevent/pkg-plist
sed 's/^X//' >libevent/pkg-plist << 'END-of-libevent/pkg-plist'
Xlib/libevent.a
Xinclude/event.h
END-of-libevent/pkg-plist
echo x - libevent/pkg-comment
sed 's/^X//' >libevent/pkg-comment << 'END-of-libevent/pkg-comment'
XProvides an API to execute a fallback function at certain events
END-of-libevent/pkg-comment
echo x - libevent/Makefile
sed 's/^X//' >libevent/Makefile << 'END-of-libevent/Makefile'
X# New ports collection makefile for:	libevent
X# Date created:				20 June 2001
X# Whom:					Pete Fritchman <petef@databits.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libevent
XPORTVERSION=	0.3d
XCATEGORIES=	devel
XMASTER_SITES=	http://www.monkey.org/~provos/
X
XMAINTAINER=	petef@databits.net
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XGNU_CONFIGURE=	yes
X
XMAN3=	event.3
XMLINKS=	event.3 event_init.3 event.3 event_dispatch.3 event.3 event_set.3 \
X	event.3 event_add.3 event.3 event_del.3 event.3 event_pending.3 \
X	event.3 event_initalized.3 event.3 timeout_set.3 event.3 timeout_add.3 \
X	event.3 timeout_del.3 event.3 timeout_pending.3 event.3 \
X	timeout_initalized.3
X
Xpost-patch:
X	@${PERL} -pi -e 's!\*\.h!event.h!' ${WRKSRC}/Makefile.in
X
X.include <bsd.port.mk>
END-of-libevent/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106210010.f5L0A5D54606>