--- asio-1.4.1.orig/Makefile.am +++ asio-1.4.1/Makefile.am @@ -4,6 +4,7 @@ MAINTAINERCLEANFILES = \ $(srcdir)/aclocal.m4 \ + $(srcdir)/compile \ $(srcdir)/configure \ $(srcdir)/config.guess \ $(srcdir)/config.sub \ --- asio-1.4.1.orig/debian/watch +++ asio-1.4.1/debian/watch @@ -0,0 +1,4 @@ +version=3 + +opts=dversionmangle=s/~rc/rc/ \ + http://sf.net/asio/asio-(.*)\.tar\.gz --- asio-1.4.1.orig/debian/control +++ asio-1.4.1/debian/control @@ -0,0 +1,35 @@ +Source: asio +Section: devel +Priority: optional +XSBC-Original-Maintainer: Simon Richter +Maintainer: Ubuntu Core Developers +Build-Depends: debhelper (>= 5), autoconf, automake, libssl-dev, + libboost1.38-dev | libboost1.37-dev | libboost1.35-dev | libboost-dev, + libboost-date-time1.38-dev | libboost-date-time1.37-dev | libboost-date-time1.35-dev | libboost-date-time-dev, + libboost-regex1.38-dev | libboost-regex1.37-dev | libboost-regex1.35-dev | libboost-regex-dev, + libboost-test1.38-dev | libboost-test1.37-dev | libboost-test1.35-dev | libboost-test-dev +Standards-Version: 3.8.0 + +Package: libasio-dev +Section: libdevel +Architecture: all +Depends: libboost1.38-dev | libboost1.37-dev | libboost1.35-dev | libboost-dev, + libboost-date-time1.38-dev | libboost-date-time1.37-dev | libboost-date-time1.35-dev | libboost-date-time-dev +Recommends: libboost-regex1.37-dev | libboost-regex1.35-dev | libboost-regex-dev, libssl-dev +Description: cross-platform C++ library for network programming + asio is a cross-platform C++ library for network programming that provides + developers with a consistent asynchronous I/O model using a modern C++ + approach. It has recently been accepted into Boost. + . + This package contains the development header files. + +Package: libasio-doc +Section: doc +Architecture: all +Recommends: libasio-dev +Description: cross-platform C++ library for network programming + asio is a cross-platform C++ library for network programming that provides + developers with a consistent asynchronous I/O model using a modern C++ + approach. It has recently been accepted into Boost. + . + This package contains the documentation. --- asio-1.4.1.orig/debian/copyright +++ asio-1.4.1/debian/copyright @@ -0,0 +1,44 @@ +This package was debianized by Simon Richter on +Mon, 06 Aug 2007 19:58:02 +0200. + +It was downloaded from http://asio.sourceforge.net/ + +Upstream Author: + + Christopher M. Kohlhoff + +Copyright: + + Copyright 2003, 2004, 2005, 2006, 2007 + Christopher M. Kohlhoff + Copyright 2005 Indrek Juhani + Copyright 2005 Stefan Arentz + +License: + + Boost Software License - Version 1.0 - August 17th, 2003 + + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + The Debian packaging is (C) 2007, Simon Richter and + is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- asio-1.4.1.orig/debian/libasio-dev.install +++ asio-1.4.1/debian/libasio-dev.install @@ -0,0 +1 @@ +debian/tmp/usr/include/* /usr/include --- asio-1.4.1.orig/debian/README.Debian +++ asio-1.4.1/debian/README.Debian @@ -0,0 +1,12 @@ +eventfd() support +================= + +The current asio headers will turn on eventfd support at build time if +your libc6-dev supports it, disregarding support in the runtime kernel. + +In other words, if you build programs using asio against a recent libc6-dev, +they require a kernel with CONFIG_EVENTFD to run. You can define +ASIO_DISABLE_EVENTFD via CXXFLAGS to forcibly disable eventfd support. + +eventfd was included in linux 2.6.22. + --- asio-1.4.1.orig/debian/changelog +++ asio-1.4.1/debian/changelog @@ -0,0 +1,98 @@ +asio (1.4.1-2ubuntu1) karmic; urgency=low + + * Merge from debian unstable, remaining changes: + - Add a README.Debian to document that building programs using asio against + an eventfd-aware libc6-dev will introduce a runtime dependency on a kernel + with CONFIG_EVENTFD set. + - Define ASIO_DISABLE_EVENTFD in CXXFLAGS when running make check as + otherwise it fails to build with recent libc6-dev and older kernel + + -- Muharem Hrnjadovic Thu, 14 May 2009 15:45:54 +0200 + +asio (1.4.1-2) unstable; urgency=low + + * Allow use together with Boost 1.38 + + -- Simon Richter Mon, 27 Apr 2009 10:46:47 +0200 + +asio (1.4.1-1) unstable; urgency=low + + * New upstream release + * Update dependencies to allow Boost 1.37 + * Add dependency on Boost.DateTime (Closes: #514076) + * Add recommendation of Boost.Regex (Closes: #514077) + * Add examples to documentation package (Closes: #492349) + + -- Simon Richter Mon, 09 Mar 2009 15:36:04 +0100 + +asio (1.3.1-1ubuntu2) jaunty; urgency=low + + * depend on libboost-date-time-dev and recommend libboost-regex-dev + patch is in debian already and can be dropped at sync (LP: #277840) + + -- Scott Ritchie Fri, 20 Mar 2009 14:02:29 -0700 + +asio (1.3.1-1ubuntu1) jaunty; urgency=low + + * Add a README.Debian to document that building programs using asio against + an eventfd-aware libc6-dev will introduce a runtime dependency on a kernel + with CONFIG_EVENTFD set. + * Define ASIO_DISABLE_EVENTFD in CXXFLAGS when running make check as + otherwise it fails to build with recent libc6-dev and older kernel + (typical on buildds running stable but building e.g. experimental). + + -- Loic Minier Sat, 20 Dec 2008 16:09:22 +0100 + +asio (1.3.1-1) unstable; urgency=low + + * New upstream release + + -- Simon Richter Fri, 12 Dec 2008 12:19:28 +0100 + +asio (1.3.0-1) unstable; urgency=low + + * New upstream release + * Allow parallel builds using the parallel= option + + -- Simon Richter Sat, 18 Oct 2008 06:59:18 +0200 + +asio (1.1.1-1) unstable; urgency=low + + * New upstream release (Closes: #489703) + * Always force a rebuild of the autoconf generated files + + -- Simon Richter Mon, 07 Jul 2008 13:40:31 +0200 + +asio (1.1.0-2) unstable; urgency=low + + * Allow use together with boost 1.35 + * Correct name of DEB_BUILD_OPTIONS variable + + -- Simon Richter Mon, 09 Jun 2008 07:36:55 +0200 + +asio (1.1.0-1) unstable; urgency=low + + * New upstream release + + -- Simon Richter Fri, 06 Jun 2008 15:23:04 +0200 + +asio (1.0.0-1) unstable; urgency=low + + * New upstream release (Closes: #461920) + + -- Simon Richter Thu, 22 May 2008 00:03:36 +0200 + +asio (0.3.8~rc3-2) unstable; urgency=low + + * Add missing build dependencies, thanks Matt Kraai for noticing + (Closes: #441149) + + -- Simon Richter Fri, 07 Sep 2007 11:10:41 +0200 + +asio (0.3.8~rc3-1) unstable; urgency=low + + * Initial release (Closes: #391678) + * Fixed a bug in asio that made asio::has_service fail to instantiate + + -- Simon Richter Wed, 08 Aug 2007 04:40:44 +0200 + --- asio-1.4.1.orig/debian/rules +++ asio-1.4.1/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +CXXFLAGS = -W -Wall -g -pipe -DASIO_DISABLE_EVENTFD + +configure: configure.ac + aclocal-1.10 + automake-1.10 -a -c + autoconf + +config.status: configure + dh_testdir + ./configure --prefix=/usr \ + --enable-maintainer-mode \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + CXXFLAGS="$(CXXFLAGS)" \ + LDFLAGS="-Wl,-z,defs" + +ifeq ($(findstring nocheck,$(DEB_BUILD_OPTIONS)),) +all_or_check = check +else +all_or_check = all +endif + +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +parallel = -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) $(parallel) $(all_or_check) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) maintainer-clean + $(RM) configure + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install + sed -i -e 's@\(../\)\{1,2\}src/@@g' debian/libasio-doc/usr/share/doc/libasio-doc/asio/examples.html + find debian/libasio-doc/usr/share/doc/libasio-doc/asio/examples/ -type f -not -name \*.[ch]pp -print0 | xargs -r0 rm + find debian/libasio-doc/usr/share/doc/libasio-doc/asio/examples/ -depth -type d -empty -exec rmdir {} \; +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_compress -X.cpp -X.hpp + dh_fixperms +# dh_perl + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- asio-1.4.1.orig/debian/libasio-doc.install +++ asio-1.4.1/debian/libasio-doc.install @@ -0,0 +1,2 @@ +doc/* /usr/share/doc/libasio-doc +src/examples /usr/share/doc/libasio-doc/asio --- asio-1.4.1.orig/debian/compat +++ asio-1.4.1/debian/compat @@ -0,0 +1 @@ +5 --- asio-1.4.1.orig/src/Makefile.am +++ asio-1.4.1/src/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = subdir-objects -noinst_PROGRAMS = \ +check_PROGRAMS = \ tests/performance/client \ tests/performance/server \ tests/unit/basic_datagram_socket \ @@ -68,7 +68,9 @@ tests/unit/windows/stream_handle \ tests/unit/windows/stream_handle_service \ tests/unit/write \ - tests/unit/write_at \ + tests/unit/write_at + +noinst_PROGRAMS = \ examples/allocation/server \ examples/buffers/reference_counted \ examples/chat/chat_client \ @@ -128,14 +130,16 @@ if HAVE_OPENSSL -noinst_PROGRAMS += \ +check_PROGRAMS += \ tests/unit/ssl/basic_context \ tests/unit/ssl/context_base \ tests/unit/ssl/context_service \ tests/unit/ssl/context \ tests/unit/ssl/stream_base \ tests/unit/ssl/stream_service \ - tests/unit/ssl/stream \ + tests/unit/ssl/stream + +noinst_PROGRAMS += \ examples/ssl/client \ examples/ssl/server