diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/libevent |
Initial import
Diffstat (limited to 'package/libevent')
-rw-r--r-- | package/libevent/Config.in | 17 | ||||
-rw-r--r-- | package/libevent/Makefile | 27 | ||||
-rw-r--r-- | package/libevent/ipkg/libevent.control | 4 | ||||
-rw-r--r-- | package/libevent/patches/patch-Makefile_in | 45 | ||||
-rw-r--r-- | package/libevent/patches/patch-evdns_c | 11 | ||||
-rw-r--r-- | package/libevent/patches/patch-event_c | 18 |
6 files changed, 122 insertions, 0 deletions
diff --git a/package/libevent/Config.in b/package/libevent/Config.in new file mode 100644 index 000000000..d0f91a2a9 --- /dev/null +++ b/package/libevent/Config.in @@ -0,0 +1,17 @@ +config ADK_PACKAGE_LIBEVENT + prompt "libevent.......................... Event notification library for event-driven network servers" + tristate + default n + help + 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. + + http://www.monkey.org/~provos/libevent/ + diff --git a/package/libevent/Makefile b/package/libevent/Makefile new file mode 100644 index 000000000..37cc0cc04 --- /dev/null +++ b/package/libevent/Makefile @@ -0,0 +1,27 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= libevent +PKG_VERSION:= 1.3 +PKG_RELEASE:= 2 +PKG_MD5SUM:= d87b05143c6c2bc9464758e68e9c6e25 +MASTER_SITES:= http://www.monkey.org/~provos/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,LIBEVENT,libevent,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +CONFIGURE_STYLE= gnu +BUILD_STYLE= auto +INSTALL_STYLE= auto + +post-install: + $(INSTALL_DIR) $(IDIR_LIBEVENT)/usr/lib + $(CP) $(WRKINST)/usr/lib/libevent-$(PKG_VERSION).so.* \ + $(IDIR_LIBEVENT)/usr/lib/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/libevent/ipkg/libevent.control b/package/libevent/ipkg/libevent.control new file mode 100644 index 000000000..31da5b27e --- /dev/null +++ b/package/libevent/ipkg/libevent.control @@ -0,0 +1,4 @@ +Package: libevent +Priority: optional +Section: libs +Description: Event notification library for event-driven network servers diff --git a/package/libevent/patches/patch-Makefile_in b/package/libevent/patches/patch-Makefile_in new file mode 100644 index 000000000..4b3517454 --- /dev/null +++ b/package/libevent/patches/patch-Makefile_in @@ -0,0 +1,45 @@ +$Id$ + * sample does not compile +--- libevent-1.3.orig/Makefile.in 2007-02-16 01:52:33.000000000 +0100 ++++ libevent-1.3/Makefile.in 2007-02-18 02:12:04.000000000 +0100 +@@ -102,7 +102,7 @@ includeHEADERS_INSTALL = $(INSTALL_HEADE + HEADERS = $(include_HEADERS) + ETAGS = etags + CTAGS = ctags +-DIST_SUBDIRS = . sample test ++DIST_SUBDIRS = . + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + distdir = $(PACKAGE)-$(VERSION) + top_distdir = $(distdir) +@@ -227,11 +227,6 @@ EXTRA_DIST = acconfig.h event.h event-in + event.3 \ + kqueue.c epoll_sub.c epoll.c select.c rtsig.c poll.c signal.c \ + evport.c devpoll.c event_rpcgen.py \ +- sample/Makefile.am sample/Makefile.in sample/event-test.c \ +- sample/signal-test.c sample/time-test.c \ +- test/Makefile.am test/Makefile.in test/bench.c test/regress.c \ +- test/test-eof.c test/test-weof.c test/test-time.c \ +- test/test-init.c test/test.sh \ + compat/sys/queue.h compat/sys/tree.h compat/sys/_time.h \ + WIN32-Code/config.h WIN32-Code/misc.c \ + WIN32-Code/win32.c WIN32-Code/misc.h \ +@@ -241,8 +236,8 @@ EXTRA_DIST = acconfig.h event.h event-in + WIN32-Prj/time_test/time_test.dsp + + lib_LTLIBRARIES = libevent.la +-@BUILD_WIN32_FALSE@SUBDIRS = . sample test +-@BUILD_WIN32_TRUE@SUBDIRS = . sample ++@BUILD_WIN32_FALSE@SUBDIRS = . ++@BUILD_WIN32_TRUE@SUBDIRS = . + @BUILD_WIN32_FALSE@SYS_LIBS = + @BUILD_WIN32_TRUE@SYS_LIBS = -lws2_32 + @BUILD_WIN32_FALSE@SYS_SRC = +@@ -592,7 +587,7 @@ distclean-tags: + distdir: $(DISTFILES) + $(am__remove_distdir) + mkdir $(distdir) +- $(mkdir_p) $(distdir)/WIN32-Code $(distdir)/WIN32-Prj $(distdir)/WIN32-Prj/event_test $(distdir)/WIN32-Prj/signal_test $(distdir)/WIN32-Prj/time_test $(distdir)/compat/sys $(distdir)/sample $(distdir)/test ++ $(mkdir_p) $(distdir)/WIN32-Code $(distdir)/WIN32-Prj $(distdir)/WIN32-Prj/event_test $(distdir)/WIN32-Prj/signal_test $(distdir)/WIN32-Prj/time_test $(distdir)/compat/sys $(distdir)/test + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ diff --git a/package/libevent/patches/patch-evdns_c b/package/libevent/patches/patch-evdns_c new file mode 100644 index 000000000..b08493c12 --- /dev/null +++ b/package/libevent/patches/patch-evdns_c @@ -0,0 +1,11 @@ +$Id$ +--- libevent-1.3.orig/evdns.c 2007-02-16 00:49:26.000000000 +0000 ++++ libevent-1.3/evdns.c 2007-02-18 13:55:52.000000000 +0000 +@@ -44,6 +44,7 @@ + #endif + + //#define NDEBUG ++#undef NDEBUG + + #ifndef DNS_USE_CPU_CLOCK_FOR_ID + #ifndef DNS_USE_GETTIMEOFDAY_FOR_ID diff --git a/package/libevent/patches/patch-event_c b/package/libevent/patches/patch-event_c new file mode 100644 index 000000000..3a7571cfd --- /dev/null +++ b/package/libevent/patches/patch-event_c @@ -0,0 +1,18 @@ +$Id$ + + In uClibc, clock_gettime(2) is defined as user-space + function in <time.h> instead of <sys/time.h>, so we + need that as well. Candidate for sending to upstream. + +--- libevent-1.3.orig/event.c 2007-02-16 00:49:06.000000000 +0000 ++++ libevent-1.3/event.c 2007-02-18 14:21:29.000000000 +0000 +@@ -51,6 +51,9 @@ + #include <signal.h> + #include <string.h> + #include <assert.h> ++#ifdef __UCLIBC__ ++#include <time.h> ++#endif + + #include "event.h" + #include "event-internal.h" |