debian/0000775000000000000000000000000011724012332007163 5ustar debian/source/0000775000000000000000000000000011607436230010472 5ustar debian/source/format0000664000000000000000000000001411607436230011700 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211607436230010370 0ustar 7 debian/rules0000775000000000000000000000003611607436230010251 0ustar #!/usr/bin/make -f %: dh $@ debian/libkqueue-dev.install0000664000000000000000000000017411607436230013326 0ustar usr/lib/libkqueue.so usr/lib/pkgconfig/libkqueue.pc usr/lib/libkqueue.a usr/include/kqueue/sys/event.h usr/share/man/man2/* debian/libkqueue0.install0000664000000000000000000000004611607436230012630 0ustar usr/lib/lib*.so.0 usr/lib/lib*.so.0.* debian/changelog0000664000000000000000000000336711724012332011046 0ustar libkqueue (1.0.4-2ubuntu1) precise; urgency=low * Backported fixes from upstream SVN to fix FTBFS. (LP: #852592) -- Daniel T Chen Thu, 01 Mar 2012 19:29:58 -0500 libkqueue (1.0.4-2) unstable; urgency=low * Integrate patches from Matthias Klose (Closes: #640029) * Add -Wno-error=unused-result to CFLAGS * Fix header checks for multiarch locations. -- Mark Heily Thu, 27 Oct 2011 20:58:03 -0400 libkqueue (1.0.4-1) unstable; urgency=low * Fix a FTBFS on 32-bit platforms caused by the use of /usr/lib64 * Fix a lintian warning related to the copyright file -- Mark Heily Wed, 13 Jul 2011 20:52:41 -0400 libkqueue (1.0.3-1) unstable; urgency=low * New upstream release (Closes: #625639) * Update control file with new website and standards version * Simplify the debian/rules file using debhelper for everything * Upgrade source/format to "3.0 (quilt)" * Remove the debian/watch file -- Mark Heily Sat, 09 Jul 2011 18:56:19 -0400 libkqueue (0.9.2-2) unstable; urgency=low * Apply patch to fix a bug in EV_RECEIPT (Closes: #595648) -- Mark Heily Sun, 05 Sep 2010 13:57:45 -0400 libkqueue (0.9.2-1) unstable; urgency=low * New upstream release (Closes: #591818) -- Mark Heily Thu, 05 Aug 2010 23:31:18 -0400 libkqueue (0.9.1-1) unstable; urgency=low * New upstream release -- Mark Heily Wed, 04 Aug 2010 21:35:01 -0400 libkqueue (0.8-1) unstable; urgency=low * New upstream release -- Mark Heily Sun, 25 Jul 2010 10:09:35 -0400 libkqueue (0.7-1) unstable; urgency=low * Initial release (Closes: #576317) -- Mark Heily Sun, 28 Mar 2010 18:58:58 -0400 debian/control0000664000000000000000000000243111724011110010557 0ustar Source: libkqueue Section: libs Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Mark Heily Build-Depends: debhelper (>= 7) Standards-Version: 3.9.2 Vcs-Svn: svn://mark.heily.com/libkqueue Homepage: http://mark.heily.com/project/libkqueue Package: libkqueue0 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: cross-platform library for kernel event notification libkqueue is a portable userspace implementation of the kqueue(2) kernel event notification mechanism found in FreeBSD and other BSD-based operating systems. The library translates between the kevent structure and the native kernel facilities of the host machine. Package: libkqueue-dev Section: libdevel Architecture: any Depends: libkqueue0 (= ${binary:Version}), ${misc:Depends} Description: Development files for libkqueue Contains the header files, manpages, and static libraries for use in developing applications that use the libkqueue library. . libkqueue is a portable userspace implementation of the kqueue(2) kernel event notification mechanism found in FreeBSD and other BSD-based operating systems. The library translates between the kevent structure and the native kernel facilities of the host machine. debian/patches/0000775000000000000000000000000011724012674010623 5ustar debian/patches/multiarch.patch0000664000000000000000000000172011652377745013651 0ustar Index: libkqueue-1.0.4/configure =================================================================== --- libkqueue-1.0.4.orig/configure 2011-07-13 21:48:14.000000000 -0400 +++ libkqueue-1.0.4/configure 2011-10-27 21:05:18.828652860 -0400 @@ -15,6 +15,7 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # +multiarch=$(dpkg-architecture -qDEB_HOST_MULTIARCH) c_exports="program version target cflags" @@ -91,7 +92,7 @@ path=$1 printf "checking for $path.. " - if [ -f "/usr/include/$path" ] ; then + if [ -f "/usr/include/$multiarch/$path" -o -f "/usr/include/$path" ] ; then echo "yes" echo "#define $uc_sym 1" >> config.h eval "$sym=yes" @@ -138,6 +139,8 @@ if [ -f "$header" ] ; then path="$header" + elif [ -f "/usr/include/$multiarch/$header" ] ; then + path="/usr/include/$multiarch/$header" elif [ -f "/usr/include/$header" ] ; then path="/usr/include/$header" else debian/patches/unused-result.patch0000664000000000000000000000222211724012674014461 0ustar Index: libkqueue-1.0.4/src/posix/signal.c =================================================================== --- libkqueue-1.0.4.orig/src/posix/signal.c 2011-07-13 21:48:14.000000000 -0400 +++ libkqueue-1.0.4/src/posix/signal.c 2012-03-01 19:35:06.216992623 -0500 @@ -45,6 +45,7 @@ signal_handler(int sig) { struct sentry *s = &sigtbl[sig]; + ssize_t n; dbg_printf("caught sig=%d", sig); atomic_inc(&s->s_cnt); @@ -54,7 +55,8 @@ return; //FIXME: errorhandling } #else - (void)write(s->s_filt->kf_wfd, &sig, sizeof(sig));//FIXME:errhandling + n = write(s->s_filt->kf_wfd, &sig, sizeof(sig));//FIXME:errhandling + if (n) ; #endif } @@ -166,6 +168,7 @@ struct sentry *s; struct knote *kn; int sig; + ssize_t n; #if defined(__sun__) port_event_t *pe = (port_event_t *) pthread_getspecific(filt->kf_kqueue->kq_port_event); @@ -173,7 +176,8 @@ s = (struct sentry *) pe->portev_user; sig = s - &sigtbl[0]; #else - read(filt->kf_pfd, &sig, sizeof(sig));//FIXME:errhandling + n = read(filt->kf_pfd, &sig, sizeof(sig));//FIXME:errhandling + if (n) ; s = &sigtbl[sig]; #endif debian/patches/series0000664000000000000000000000004411724011147012030 0ustar multiarch.patch unused-result.patch debian/copyright0000664000000000000000000001236511607436230011134 0ustar This package was debianized by Mark Heily on Sun, 28 Mar 2010 18:58:58 -0400 It was downloaded from http://mark.heily.com/libkqueue/trunk/ Copyright: Copyright (C) 2009 Mark Heily Copyright (c) 2000 Jonathan Lemon Copyright 2002 Niels Provos License: Copyright (c) 2009 Mark Heily Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. include/sys/event.h is licensed: Copyright (c) 1999,2000,2001 Jonathan Lemon All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. src/common/tree.h is licensed: Copyright 2002 Niels Provos All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The Debian packaging is: Copyright (C) 2010 Mark Heily All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.