Module Name: src
Committed By: plunky
Date: Mon Nov 2 10:03:57 UTC 2009
Added Files:
src/compat/external/bsd/libevent: Makefile Makefile.inc
src/compat/external/bsd/libevent/include: Makefile
src/compat/external/bsd/libevent/lib: Makefile
src/external/bsd/libevent: Makefile Makefile.inc prepare-import.sh
src/external/bsd/libevent/include: Makefile config.h event-config.h
src/external/bsd/libevent/lib: Makefile shlib_version
Log Message:
add external framework for libevent
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/compat/external/bsd/libevent/Makefile \
src/compat/external/bsd/libevent/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/compat/external/bsd/libevent/include/Makefile
cvs rdiff -u -r0 -r1.1 src/compat/external/bsd/libevent/lib/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/libevent/Makefile \
src/external/bsd/libevent/Makefile.inc \
src/external/bsd/libevent/prepare-import.sh
cvs rdiff -u -r0 -r1.1 src/external/bsd/libevent/include/Makefile \
src/external/bsd/libevent/include/config.h \
src/external/bsd/libevent/include/event-config.h
cvs rdiff -u -r0 -r1.1 src/external/bsd/libevent/lib/Makefile \
src/external/bsd/libevent/lib/shlib_version
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/compat/external/bsd/libevent/Makefile
diff -u /dev/null src/compat/external/bsd/libevent/Makefile:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/compat/external/bsd/libevent/Makefile Mon Nov 2 10:03:57 2009
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2009/11/02 10:03:57 plunky Exp $
+
+.include <bsd.own.mk>
+
+_CURDIR:= ${.CURDIR}
+
+.CURDIR:=${NETBSDSRCDIR}/external/bsd/libevent
+
+.include "${.CURDIR}/Makefile"
+
+.CURDIR:= ${_CURDIR}
Index: src/compat/external/bsd/libevent/Makefile.inc
diff -u /dev/null src/compat/external/bsd/libevent/Makefile.inc:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/compat/external/bsd/libevent/Makefile.inc Mon Nov 2 10:03:57 2009
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/11/02 10:03:57 plunky Exp $
+
+.include <bsd.own.mk>
+
+_CURDIR:= ${.CURDIR}
+
+.include "${NETBSDSRCDIR}/external/bsd/libevent/Makefile.inc"
+
+.CURDIR:= ${_CURDIR}
Index: src/compat/external/bsd/libevent/include/Makefile
diff -u /dev/null src/compat/external/bsd/libevent/include/Makefile:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/compat/external/bsd/libevent/include/Makefile Mon Nov 2 10:03:57 2009
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2009/11/02 10:03:57 plunky Exp $
+# Generated from: NetBSD: build-makefiles,v 1.8 2009/07/21 01:05:35 mrg Exp
+
+NOLINT= # defined
+NOMAN= # defined
+NONLS= # defined
+NOINFO= # defined
+NOSHARE= # defined
+
+NOCHECKVER= # defined
+
+.include <bsd.obj.mk>
+
+# Resolve pathnames in variables.
+_RESOLVE_VARS= CFLAGS CPPFLAGS DPADD LDADD LIBDPLIBS LIB_ROOT_DIR
+.for var in ${_RESOLVE_VARS}
+${var}:= ${${var}}
+.endfor
+
+.include <bsd.own.mk>
+
+_CURDIR:= ${.CURDIR}
+
+.PATH: ${NETBSDSRCDIR}/external/bsd/libevent/include
+.CURDIR:=${NETBSDSRCDIR}/external/bsd/libevent/include
+
+.include "${NETBSDSRCDIR}/compat/Makefile.compat"
+.include "${.CURDIR}/Makefile"
+
+# Resolve pathnames from "real" Makefile, and switch .CURDIR back.
+_RESOLVE_VARS= CFLAGS CPPFLAGS DPADD LDADD ARCHDIR COMPATDIR COMPATARCHDIR LIBCDIR RPC_INCS RPC_XDIR LIBEDITDIR MODOBJDIR RUMPTOP
+.for var in ${_RESOLVE_VARS}
+${var}:= ${${var}}
+.endfor
+
+.CURDIR:= ${_CURDIR}
+.undef _CURDIR
Index: src/compat/external/bsd/libevent/lib/Makefile
diff -u /dev/null src/compat/external/bsd/libevent/lib/Makefile:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/compat/external/bsd/libevent/lib/Makefile Mon Nov 2 10:03:57 2009
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2009/11/02 10:03:57 plunky Exp $
+# Generated from: NetBSD: build-makefiles,v 1.8 2009/07/21 01:05:35 mrg Exp
+
+NOLINT= # defined
+NOMAN= # defined
+NONLS= # defined
+NOINFO= # defined
+NOSHARE= # defined
+
+NOCHECKVER= # defined
+
+.include <bsd.obj.mk>
+
+# Resolve pathnames in variables.
+_RESOLVE_VARS= CFLAGS CPPFLAGS DPADD LDADD LIBDPLIBS LIB_ROOT_DIR
+.for var in ${_RESOLVE_VARS}
+${var}:= ${${var}}
+.endfor
+
+.include <bsd.own.mk>
+
+_CURDIR:= ${.CURDIR}
+
+.PATH: ${NETBSDSRCDIR}/external/bsd/libevent/lib
+.CURDIR:=${NETBSDSRCDIR}/external/bsd/libevent/lib
+
+.include "${NETBSDSRCDIR}/compat/Makefile.compat"
+.include "${.CURDIR}/Makefile"
+
+# Resolve pathnames from "real" Makefile, and switch .CURDIR back.
+_RESOLVE_VARS= CFLAGS CPPFLAGS DPADD LDADD ARCHDIR COMPATDIR COMPATARCHDIR LIBCDIR RPC_INCS RPC_XDIR LIBEDITDIR MODOBJDIR RUMPTOP
+.for var in ${_RESOLVE_VARS}
+${var}:= ${${var}}
+.endfor
+
+.CURDIR:= ${_CURDIR}
+.undef _CURDIR
Index: src/external/bsd/libevent/Makefile
diff -u /dev/null src/external/bsd/libevent/Makefile:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/Makefile Mon Nov 2 10:03:56 2009
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/11/02 10:03:56 plunky Exp $
+
+SUBDIR= include lib
+
+.include <bsd.subdir.mk>
Index: src/external/bsd/libevent/Makefile.inc
diff -u /dev/null src/external/bsd/libevent/Makefile.inc:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/Makefile.inc Mon Nov 2 10:03:56 2009
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/11/02 10:03:56 plunky Exp $
+
+.include <bsd.own.mk>
+
+LIBEVENT_DIR= ${NETBSDSRCDIR}/external/bsd/libevent
+
+CPPFLAGS+= -DHAVE_CONFIG_H
+CPPFLAGS+= -I${LIBEVENT_DIR}/dist -I${LIBEVENT_DIR}/include
+
+WARNS?= 4
+
+.PATH: ${LIBEVENT_DIR}/dist
Index: src/external/bsd/libevent/prepare-import.sh
diff -u /dev/null src/external/bsd/libevent/prepare-import.sh:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/prepare-import.sh Mon Nov 2 10:03:56 2009
@@ -0,0 +1,63 @@
+#!/bin/sh
+# $NetBSD: prepare-import.sh,v 1.1 2009/11/02 10:03:56 plunky Exp $
+
+# Extract the new tarball and rename the libevent-X.Y.Z directory
+# to dist. Run this script and check for additional files and
+# directories to prune, only relevant content is included.
+#
+# lib/ is built as SUBDIR from external/lib/Makefile, and
+# the regression tests are used from tests/lib/libevent
+#
+# Use the following template to import
+# cvs import src/external/bsd/file/dist LIBEVENT libevent-X-Y-Z-stable
+#
+# don't forget to bump the lib/shlib_version and commit the include/ files
+#
+
+set -e
+
+if [ -f dist/configure ]; then
+ mkdir -p tmp
+ cd tmp
+ ../dist/configure
+ make event-config.h
+ mv config.h ../include # not needed for 2.*
+ mv event-config.h ../include
+ cd ..
+ rm -Rf tmp
+
+ echo "Removing unwanted distfiles .."
+ cd dist
+ rm -Rf Doxyfile Makefile.am Makefile.in WIN32-Code WIN32-Prj \
+ aclocal.m4 autogen.sh compat config.guess config.h.in config.sub \
+ configure configure.in devpoll.c epoll.c epoll_sub.c event_rpcgen.py \
+ evport.c install-sh ltmain.sh missing mkinstalldirs sample \
+ strlcpy.c test/Makefile.am test/Makefile.in test/bench.c \
+ test/regress.rpc test/test-eof.c test/test-init.c test/test-time.c \
+ test/test-weof.c test/test.sh
+ cd ..
+fi
+
+echo "Adding RCS tags .."
+for f in $(grep -RL '\$NetBSD.*\$' dist include | grep -v CVS); do
+ case $f in
+ *.[ch])
+ cat - ${f} > ${f}_tmp <<- EOF
+ /* \$NetBSD\$ */
+ EOF
+ mv ${f}_tmp ${f}
+ ;;
+ *.[0-9])
+ cat - ${f} > ${f}_tmp <<- EOF
+ .\" \$NetBSD\$
+ .\"
+ EOF
+ mv ${f}_tmp ${f}
+ ;;
+ *)
+ echo "No RCS tag added to ${f}"
+ ;;
+ esac
+done
+
+echo "prepare-import done"
Index: src/external/bsd/libevent/include/Makefile
diff -u /dev/null src/external/bsd/libevent/include/Makefile:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/include/Makefile Mon Nov 2 10:03:56 2009
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2009/11/02 10:03:56 plunky Exp $
+
+.include <bsd.init.mk>
+
+INCS= evdns.h event.h evhttp.h evrpc.h evutil.h event-config.h
+INCSDIR= /usr/include
+
+.include <bsd.prog.mk>
Index: src/external/bsd/libevent/include/config.h
diff -u /dev/null src/external/bsd/libevent/include/config.h:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/include/config.h Mon Nov 2 10:03:56 2009
@@ -0,0 +1,255 @@
+/* $NetBSD: config.h,v 1.1 2009/11/02 10:03:56 plunky Exp $ */
+/* config.h. Generated from config.h.in by configure. */
+/* config.h.in. Generated from configure.in by autoheader. */
+
+/* Define if clock_gettime is available in libc */
+#define DNS_USE_CPU_CLOCK_FOR_ID 1
+
+/* Define is no secure id variant is available */
+/* #undef DNS_USE_GETTIMEOFDAY_FOR_ID */
+
+/* Define to 1 if you have the `clock_gettime' function. */
+#define HAVE_CLOCK_GETTIME 1
+
+/* Define if /dev/poll is available */
+/* #undef HAVE_DEVPOLL */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define if your system supports the epoll system calls */
+/* #undef HAVE_EPOLL */
+
+/* Define to 1 if you have the `epoll_ctl' function. */
+/* #undef HAVE_EPOLL_CTL */
+
+/* Define if your system supports event ports */
+/* #undef HAVE_EVENT_PORTS */
+
+/* Define to 1 if you have the `fcntl' function. */
+#define HAVE_FCNTL 1
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define to 1 if you have the `getnameinfo' function. */
+#define HAVE_GETNAMEINFO 1
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#define HAVE_GETTIMEOFDAY 1
+
+/* Define to 1 if you have the `inet_ntop' function. */
+#define HAVE_INET_NTOP 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the `kqueue' function. */
+#define HAVE_KQUEUE 1
+
+/* Define to 1 if you have the `nsl' library (-lnsl). */
+/* #undef HAVE_LIBNSL */
+
+/* Define to 1 if you have the `resolv' library (-lresolv). */
+#define HAVE_LIBRESOLV 1
+
+/* Define to 1 if you have the `rt' library (-lrt). */
+#define HAVE_LIBRT 1
+
+/* Define to 1 if you have the `socket' library (-lsocket). */
+/* #undef HAVE_LIBSOCKET */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <netinet/in6.h> header file. */
+/* #undef HAVE_NETINET_IN6_H */
+
+/* Define to 1 if you have the `poll' function. */
+#define HAVE_POLL 1
+
+/* Define to 1 if you have the <poll.h> header file. */
+#define HAVE_POLL_H 1
+
+/* Define to 1 if you have the `port_create' function. */
+/* #undef HAVE_PORT_CREATE */
+
+/* Define to 1 if you have the <port.h> header file. */
+/* #undef HAVE_PORT_H */
+
+/* Define to 1 if you have the `select' function. */
+#define HAVE_SELECT 1
+
+/* Define if F_SETFD is defined in <fcntl.h> */
+#define HAVE_SETFD 1
+
+/* Define to 1 if you have the `sigaction' function. */
+#define HAVE_SIGACTION 1
+
+/* Define to 1 if you have the `signal' function. */
+#define HAVE_SIGNAL 1
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#define HAVE_STDARG_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strlcpy' function. */
+#define HAVE_STRLCPY 1
+
+/* Define to 1 if you have the `strsep' function. */
+#define HAVE_STRSEP 1
+
+/* Define to 1 if you have the `strtok_r' function. */
+#define HAVE_STRTOK_R 1
+
+/* Define to 1 if you have the `strtoll' function. */
+#define HAVE_STRTOLL 1
+
+/* Define to 1 if the system has the type `struct in6_addr'. */
+#define HAVE_STRUCT_IN6_ADDR 1
+
+/* Define to 1 if you have the <sys/devpoll.h> header file. */
+/* #undef HAVE_SYS_DEVPOLL_H */
+
+/* Define to 1 if you have the <sys/epoll.h> header file. */
+/* #undef HAVE_SYS_EPOLL_H */
+
+/* Define to 1 if you have the <sys/event.h> header file. */
+#define HAVE_SYS_EVENT_H 1
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/queue.h> header file. */
+#define HAVE_SYS_QUEUE_H 1
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
+#define HAVE_TAILQFOREACH 1
+
+/* Define if timeradd is defined in <sys/time.h> */
+#define HAVE_TIMERADD 1
+
+/* Define if timerclear is defined in <sys/time.h> */
+#define HAVE_TIMERCLEAR 1
+
+/* Define if timercmp is defined in <sys/time.h> */
+#define HAVE_TIMERCMP 1
+
+/* Define if timerisset is defined in <sys/time.h> */
+#define HAVE_TIMERISSET 1
+
+/* Define to 1 if the system has the type `uint16_t'. */
+#define HAVE_UINT16_T 1
+
+/* Define to 1 if the system has the type `uint32_t'. */
+#define HAVE_UINT32_T 1
+
+/* Define to 1 if the system has the type `uint64_t'. */
+#define HAVE_UINT64_T 1
+
+/* Define to 1 if the system has the type `uint8_t'. */
+#define HAVE_UINT8_T 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the `vasprintf' function. */
+#define HAVE_VASPRINTF 1
+
+/* Define if kqueue works correctly with pipes */
+#define HAVE_WORKING_KQUEUE 1
+
+/* Name of package */
+#define PACKAGE "libevent"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION ""
+
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
+/* The size of `long long', as computed by sizeof. */
+#define SIZEOF_LONG_LONG 8
+
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Version number of package */
+#define VERSION "1.4.12-stable"
+
+/* Define to appropriate substitue if compiler doesnt have __func__ */
+/* #undef __func__ */
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef pid_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* Define to unsigned int if you dont have it */
+/* #undef socklen_t */
Index: src/external/bsd/libevent/include/event-config.h
diff -u /dev/null src/external/bsd/libevent/include/event-config.h:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/include/event-config.h Mon Nov 2 10:03:56 2009
@@ -0,0 +1,263 @@
+/* $NetBSD: event-config.h,v 1.1 2009/11/02 10:03:56 plunky Exp $ */
+/* event-config.h
+ * Generated by autoconf; post-processed by libevent.
+ * Do not edit this file.
+ * Do not rely on macros in this file existing in later versions.
+ */
+#ifndef _EVENT_CONFIG_H_
+#define _EVENT_CONFIG_H_
+/* config.h. Generated from config.h.in by configure. */
+/* config.h.in. Generated from configure.in by autoheader. */
+
+/* Define if clock_gettime is available in libc */
+#define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1
+
+/* Define is no secure id variant is available */
+/* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */
+
+/* Define to 1 if you have the `clock_gettime' function. */
+#define _EVENT_HAVE_CLOCK_GETTIME 1
+
+/* Define if /dev/poll is available */
+/* #undef _EVENT_HAVE_DEVPOLL */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define _EVENT_HAVE_DLFCN_H 1
+
+/* Define if your system supports the epoll system calls */
+/* #undef _EVENT_HAVE_EPOLL */
+
+/* Define to 1 if you have the `epoll_ctl' function. */
+/* #undef _EVENT_HAVE_EPOLL_CTL */
+
+/* Define if your system supports event ports */
+/* #undef _EVENT_HAVE_EVENT_PORTS */
+
+/* Define to 1 if you have the `fcntl' function. */
+#define _EVENT_HAVE_FCNTL 1
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define _EVENT_HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define _EVENT_HAVE_GETADDRINFO 1
+
+/* Define to 1 if you have the `getnameinfo' function. */
+#define _EVENT_HAVE_GETNAMEINFO 1
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#define _EVENT_HAVE_GETTIMEOFDAY 1
+
+/* Define to 1 if you have the `inet_ntop' function. */
+#define _EVENT_HAVE_INET_NTOP 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define _EVENT_HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the `kqueue' function. */
+#define _EVENT_HAVE_KQUEUE 1
+
+/* Define to 1 if you have the `nsl' library (-lnsl). */
+/* #undef _EVENT_HAVE_LIBNSL */
+
+/* Define to 1 if you have the `resolv' library (-lresolv). */
+#define _EVENT_HAVE_LIBRESOLV 1
+
+/* Define to 1 if you have the `rt' library (-lrt). */
+#define _EVENT_HAVE_LIBRT 1
+
+/* Define to 1 if you have the `socket' library (-lsocket). */
+/* #undef _EVENT_HAVE_LIBSOCKET */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define _EVENT_HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <netinet/in6.h> header file. */
+/* #undef _EVENT_HAVE_NETINET_IN6_H */
+
+/* Define to 1 if you have the `poll' function. */
+#define _EVENT_HAVE_POLL 1
+
+/* Define to 1 if you have the <poll.h> header file. */
+#define _EVENT_HAVE_POLL_H 1
+
+/* Define to 1 if you have the `port_create' function. */
+/* #undef _EVENT_HAVE_PORT_CREATE */
+
+/* Define to 1 if you have the <port.h> header file. */
+/* #undef _EVENT_HAVE_PORT_H */
+
+/* Define to 1 if you have the `select' function. */
+#define _EVENT_HAVE_SELECT 1
+
+/* Define if F_SETFD is defined in <fcntl.h> */
+#define _EVENT_HAVE_SETFD 1
+
+/* Define to 1 if you have the `sigaction' function. */
+#define _EVENT_HAVE_SIGACTION 1
+
+/* Define to 1 if you have the `signal' function. */
+#define _EVENT_HAVE_SIGNAL 1
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define _EVENT_HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#define _EVENT_HAVE_STDARG_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define _EVENT_HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define _EVENT_HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define _EVENT_HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define _EVENT_HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strlcpy' function. */
+#define _EVENT_HAVE_STRLCPY 1
+
+/* Define to 1 if you have the `strsep' function. */
+#define _EVENT_HAVE_STRSEP 1
+
+/* Define to 1 if you have the `strtok_r' function. */
+#define _EVENT_HAVE_STRTOK_R 1
+
+/* Define to 1 if you have the `strtoll' function. */
+#define _EVENT_HAVE_STRTOLL 1
+
+/* Define to 1 if the system has the type `struct in6_addr'. */
+#define _EVENT_HAVE_STRUCT_IN6_ADDR 1
+
+/* Define to 1 if you have the <sys/devpoll.h> header file. */
+/* #undef _EVENT_HAVE_SYS_DEVPOLL_H */
+
+/* Define to 1 if you have the <sys/epoll.h> header file. */
+/* #undef _EVENT_HAVE_SYS_EPOLL_H */
+
+/* Define to 1 if you have the <sys/event.h> header file. */
+#define _EVENT_HAVE_SYS_EVENT_H 1
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define _EVENT_HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define _EVENT_HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/queue.h> header file. */
+#define _EVENT_HAVE_SYS_QUEUE_H 1
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+#define _EVENT_HAVE_SYS_SELECT_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#define _EVENT_HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define _EVENT_HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define _EVENT_HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define _EVENT_HAVE_SYS_TYPES_H 1
+
+/* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
+#define _EVENT_HAVE_TAILQFOREACH 1
+
+/* Define if timeradd is defined in <sys/time.h> */
+#define _EVENT_HAVE_TIMERADD 1
+
+/* Define if timerclear is defined in <sys/time.h> */
+#define _EVENT_HAVE_TIMERCLEAR 1
+
+/* Define if timercmp is defined in <sys/time.h> */
+#define _EVENT_HAVE_TIMERCMP 1
+
+/* Define if timerisset is defined in <sys/time.h> */
+#define _EVENT_HAVE_TIMERISSET 1
+
+/* Define to 1 if the system has the type `uint16_t'. */
+#define _EVENT_HAVE_UINT16_T 1
+
+/* Define to 1 if the system has the type `uint32_t'. */
+#define _EVENT_HAVE_UINT32_T 1
+
+/* Define to 1 if the system has the type `uint64_t'. */
+#define _EVENT_HAVE_UINT64_T 1
+
+/* Define to 1 if the system has the type `uint8_t'. */
+#define _EVENT_HAVE_UINT8_T 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define _EVENT_HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the `vasprintf' function. */
+#define _EVENT_HAVE_VASPRINTF 1
+
+/* Define if kqueue works correctly with pipes */
+#define _EVENT_HAVE_WORKING_KQUEUE 1
+
+/* Name of package */
+#define _EVENT_PACKAGE "libevent"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define _EVENT_PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define _EVENT_PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define _EVENT_PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define _EVENT_PACKAGE_TARNAME ""
+
+/* Define to the version of this package. */
+#define _EVENT_PACKAGE_VERSION ""
+
+/* The size of `int', as computed by sizeof. */
+#define _EVENT_SIZEOF_INT 4
+
+/* The size of `long', as computed by sizeof. */
+#define _EVENT_SIZEOF_LONG 4
+
+/* The size of `long long', as computed by sizeof. */
+#define _EVENT_SIZEOF_LONG_LONG 8
+
+/* The size of `short', as computed by sizeof. */
+#define _EVENT_SIZEOF_SHORT 2
+
+/* Define to 1 if you have the ANSI C header files. */
+#define _EVENT_STDC_HEADERS 1
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define _EVENT_TIME_WITH_SYS_TIME 1
+
+/* Version number of package */
+#define _EVENT_VERSION "1.4.12-stable"
+
+/* Define to appropriate substitue if compiler doesnt have __func__ */
+/* #undef _EVENT___func__ */
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef _EVENT_const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef _EVENT___cplusplus
+/* #undef _EVENT_inline */
+#endif
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef _EVENT_pid_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef _EVENT_size_t */
+
+/* Define to unsigned int if you dont have it */
+/* #undef _EVENT_socklen_t */
+#endif
Index: src/external/bsd/libevent/lib/Makefile
diff -u /dev/null src/external/bsd/libevent/lib/Makefile:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/lib/Makefile Mon Nov 2 10:03:56 2009
@@ -0,0 +1,98 @@
+# $NetBSD: Makefile,v 1.1 2009/11/02 10:03:56 plunky Exp $
+
+.include <bsd.init.mk>
+
+LIB= event
+USE_SHLIBDIR= yes
+
+SRCS= buffer.c evbuffer.c evdns.c event.c event_tagging.c \
+ evrpc.c evutil.c http.c kqueue.c log.c poll.c select.c \
+ signal.c
+
+CPPFLAGS+= -fno-strict-aliasing
+
+CPPFLAGS.evdns.c+= -Wno-shadow -Wno-cast-qual
+CPPFLAGS.event_tagging.c+= -Wno-cast-qual
+CPPFLAGS.evrpc.c+= -Wno-cast-qual
+CPPFLAGS.http.c+= -Wno-cast-qual -Wno-sign-compare
+CPPFLAGS.kqueue.c+= -Wno-sign-compare
+CPPFLAGS.select.c+= -Wno-sign-compare
+
+LINTFLAGS+= -X 27 # http.c "redeclaration of %s"
+
+MAN= evdns.3 event.3
+
+MLINKS+= event.3 event_init.3
+MLINKS+= event.3 event_dispatch.3
+MLINKS+= event.3 event_loop.3
+MLINKS+= event.3 event_loopexit.3
+MLINKS+= event.3 event_loopbreak.3
+MLINKS+= event.3 event_base_dispatch.3
+MLINKS+= event.3 event_base_free.3
+MLINKS+= event.3 event_base_loop.3
+MLINKS+= event.3 event_base_loopexit.3
+MLINKS+= event.3 event_base_loopbreak.3
+MLINKS+= event.3 event_base_set.3
+MLINKS+= event.3 event_set.3
+MLINKS+= event.3 event_add.3
+MLINKS+= event.3 event_del.3
+MLINKS+= event.3 event_once.3
+MLINKS+= event.3 event_base_once.3
+MLINKS+= event.3 event_pending.3
+MLINKS+= event.3 event_initialized.3
+
+MLINKS+= event.3 evtimer_set.3
+MLINKS+= event.3 evtimer_add.3
+MLINKS+= event.3 evtimer_del.3
+MLINKS+= event.3 evtimer_pending.3
+MLINKS+= event.3 evtimer_initialized.3
+
+MLINKS+= event.3 signal_set.3
+MLINKS+= event.3 signal_add.3
+MLINKS+= event.3 signal_del.3
+MLINKS+= event.3 signal_pending.3
+MLINKS+= event.3 signal_initialized.3
+
+MLINKS+= event.3 bufferevent_new.3
+MLINKS+= event.3 bufferevent_free.3
+MLINKS+= event.3 bufferevent_write.3
+MLINKS+= event.3 bufferevent_write_buffer.3
+MLINKS+= event.3 bufferevent_read.3
+MLINKS+= event.3 bufferevent_enable.3
+MLINKS+= event.3 bufferevent_disable.3
+MLINKS+= event.3 bufferevent_settimeout.3
+MLINKS+= event.3 bufferevent_base_set.3
+
+MLINKS+= event.3 evbuffer_new.3
+MLINKS+= event.3 evbuffer_free.3
+MLINKS+= event.3 evbuffer_add.3
+MLINKS+= event.3 evbuffer_add_buffer.3
+MLINKS+= event.3 evbuffer_add_printf.3
+MLINKS+= event.3 evbuffer_add_vprintf.3
+MLINKS+= event.3 evbuffer_drain.3
+MLINKS+= event.3 evbuffer_write.3
+MLINKS+= event.3 evbuffer_read.3
+MLINKS+= event.3 evbuffer_find.3
+MLINKS+= event.3 evbuffer_readline.3
+
+MLINKS+= event.3 evhttp_new.3
+MLINKS+= event.3 evhttp_bind_socket.3
+MLINKS+= event.3 evhttp_free.3
+
+MLINKS+= evdns.3 evdns_init.3
+MLINKS+= evdns.3 evdns_shutdown.3
+MLINKS+= evdns.3 evdns_err_to_string.3
+MLINKS+= evdns.3 evdns_nameserver_add.3
+MLINKS+= evdns.3 evdns_count_nameservers.3
+MLINKS+= evdns.3 evdns_clear_nameservers_and_suspend.3
+MLINKS+= evdns.3 evdns_resume.3
+MLINKS+= evdns.3 evdns_nameserver_ip_add.3
+MLINKS+= evdns.3 evdns_resolve_ipv4.3
+MLINKS+= evdns.3 evdns_resolve_reverse.3
+MLINKS+= evdns.3 evdns_resolv_conf_parse.3
+MLINKS+= evdns.3 evdns_search_clear.3
+MLINKS+= evdns.3 evdns_search_add.3
+MLINKS+= evdns.3 evdns_search_ndots_set.3
+MLINKS+= evdns.3 evdns_set_log_fn.3
+
+.include <bsd.lib.mk>
Index: src/external/bsd/libevent/lib/shlib_version
diff -u /dev/null src/external/bsd/libevent/lib/shlib_version:1.1
--- /dev/null Mon Nov 2 10:03:57 2009
+++ src/external/bsd/libevent/lib/shlib_version Mon Nov 2 10:03:57 2009
@@ -0,0 +1,6 @@
+# $NetBSD: shlib_version,v 1.1 2009/11/02 10:03:57 plunky Exp $
+# Remember to update distrib/sets/lists/base/shl.* when changing
+#
+
+major=3
+minor=2