debian/0000755000000000000000000000000012156624370007174 5ustar debian/watch0000644000000000000000000000035212151242030010205 0ustar version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|simple-sendfile-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/simple-sendfile \ ([\d\.]*\d)/ debian/rules0000755000000000000000000000036312156620154010252 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/buildvars.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk ifeq ($(DEB_HOST_ARCH_OS),kfreebsd) DEB_SETUP_GHC_CONFIGURE_ARGS := -f-allow-bsd endif debian/copyright0000644000000000000000000000336512151242030011116 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: simple-sendfile Maintainer: Kazu Yamamoto Source: http://hackage.haskell.org/package/simple-sendfile Copyright: (c) 2009, IIJ Innovation Institute Inc. License: BSD All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * 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. * Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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. debian/source/0000755000000000000000000000000012151242030010454 5ustar debian/source/format0000644000000000000000000000001412151242030011662 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012156624160010620 5ustar debian/patches/series0000644000000000000000000000001712156620073012032 0ustar kfreebsd.patch debian/patches/kfreebsd.patch0000644000000000000000000000264012156624160013430 0ustar Description: Add allow-bsd flag for Debian GNU/kFreeBSD On Debian GNU/kFreeBSD (FreeBSD kernel plus glibc), the BSD flavour of sendfile is not usable (struct sf_hdtr is declared with -D_BSD_SOURCE=1, but has no definition), and the Linux flavour doesn't work either since MSG_MORE is absent. However, the fallback version works fine. . Unfortunately, Cabal treats kfreebsdgnu as os(freebsd), and os(kfreebsdgnu) doesn't work. So, to make it possible to select the fallback implementation on GNU/kFreeBSD, I believe a flag is necessary. Author: Colin Watson Forwarded: https://github.com/kazu-yamamoto/simple-sendfile/pull/13 Last-Update: 2013-06-14 Index: b/simple-sendfile.cabal =================================================================== --- a/simple-sendfile.cabal +++ b/simple-sendfile.cabal @@ -12,6 +12,10 @@ Cabal-Version: >= 1.10 Build-Type: Simple +Flag allow-bsd + Description: Allow use of BSD sendfile (disable on GNU/kFreeBSD) + Default: True + Library Default-Language: Haskell2010 GHC-Options: -Wall @@ -21,7 +25,7 @@ , network , bytestring -- NetBSD and OpenBSD don't have sendfile - if os(freebsd) + if os(freebsd) && flag(allow-bsd) CPP-Options: -DOS_BSD Other-Modules: Network.Sendfile.BSD Network.Sendfile.IOVec debian/compat0000644000000000000000000000000212151242030010352 0ustar 9 debian/control0000644000000000000000000000450412156620176010602 0ustar Source: haskell-simple-sendfile Section: haskell Priority: extra Maintainer: Debian Haskell Group Uploaders: Iulian Udrea , Clint Adams DM-Upload-Allowed: yes Build-Depends: debhelper (>= 9) , cdbs , haskell-devscripts (>= 0.8.15) , ghc , ghc-prof , libghc-network-dev , libghc-network-prof , libghc-conduit-dev (>> 0.4.1) [hurd-any kfreebsd-any] , libghc-conduit-dev (<< 1.1) [hurd-any kfreebsd-any] , libghc-conduit-prof [hurd-any kfreebsd-any] , libghc-transformers-dev (>> 0.2.2) [hurd-any kfreebsd-any] , libghc-transformers-dev (<< 0.4) [hurd-any kfreebsd-any] , libghc-transformers-prof [hurd-any kfreebsd-any] Build-Depends-Indep: ghc-doc , libghc-network-doc Standards-Version: 3.9.4 Homepage: http://hackage.haskell.org/package/simple-sendfile Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-simple-sendfile Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-simple-sendfile Package: libghc-simple-sendfile-dev Architecture: any Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: Cross platform library for the sendfile system call${haskell:ShortBlurb} Cross platform library for the sendfile system call. This library tries to call minimum system calls which are the bottleneck of web servers. . ${haskell:Blurb} Package: libghc-simple-sendfile-prof Architecture: any Depends: ${haskell:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: Cross platform library for the sendfile system call${haskell:ShortBlurb} Cross platform library for the sendfile system call. This library tries to call minimum system calls which are the bottleneck of web servers. . ${haskell:Blurb} Package: libghc-simple-sendfile-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${haskell:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Description: Cross platform library for the sendfile system call${haskell:ShortBlurb} Cross platform library for the sendfile system call. This library tries to call minimum system calls which are the bottleneck of web servers. . ${haskell:Blurb} debian/changelog0000644000000000000000000000341412156624364011053 0ustar haskell-simple-sendfile (0.2.11-2) unstable; urgency=low * Also build-depend on profiling libraries for conduit and transformers on the Hurd. * On kFreeBSD, the BSD implementation doesn't work since 'struct sf_hdtr' has no definition. Use the fallback conduit-based emulation of sendfile instead. -- Colin Watson Fri, 14 Jun 2013 15:30:11 +0100 haskell-simple-sendfile (0.2.11-1) unstable; urgency=low * New upstream version. * Build-depend on conduit and transformers on the Hurd (closes: #673220). -- Colin Watson Wed, 29 May 2013 01:10:40 +0100 haskell-simple-sendfile (0.2.8-2) unstable; urgency=low * Enable compat level 9 * Use substvars for Haskell description blurbs -- Joachim Breitner Fri, 24 May 2013 12:52:03 +0200 haskell-simple-sendfile (0.2.8-1) experimental; urgency=low * Depend on haskell-devscripts 0.8.13 to ensure this packages is built against experimental * Bump standards version, no change * New upstream release -- Joachim Breitner Fri, 19 Oct 2012 22:34:59 +0200 haskell-simple-sendfile (0.2.3-1) unstable; urgency=low * New upstream version. * Bump to Standards-Version 3.9.3. -- Clint Adams Wed, 09 May 2012 19:40:44 -0400 haskell-simple-sendfile (0.2.0-2) unstable; urgency=low * Sourceful upload to rebuild documentation package. -- Clint Adams Fri, 10 Feb 2012 14:12:14 -0500 haskell-simple-sendfile (0.2.0-1) unstable; urgency=low * New upstream version. -- Clint Adams Sat, 28 Jan 2012 18:16:47 -0500 haskell-simple-sendfile (0.1.2-1) unstable; urgency=low * Initial release. -- Iulian Udrea Sat, 03 Sep 2011 23:40:30 +0100