debian/0000775000000000000000000000000012273007146007172 5ustar debian/apreq2.load0000664000000000000000000000007711342467402011232 0ustar LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so debian/libapreq2-3.files0000664000000000000000000000002711342467402012237 0ustar usr/bin/apreq2-config debian/copyright0000664000000000000000000000220511342475210011121 0ustar This package was Debianized by Steinar H. Gunderson . Upstream URL: http://httpd.apache.org/apreq/ Upstream copyright: This product includes software developed by The Apache Software Foundation (http://www.apache.org/). Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. On Debian systems, you can also find the full text of the Apache 2.0 license in /usr/share/common-licenses/Apache-2.0. debian/libapache2-mod-apreq2.apache20000664000000000000000000000007712171001652014353 0ustar mod module/apache2/.libs/mod_apreq2.so mod debian/apreq2.load debian/libapreq2-dev.exclude0000664000000000000000000000001511342506475013203 0ustar usr/lib/*.la debian/changelog0000664000000000000000000003311112273007143011040 0ustar libapreq2 (2.13-3ubuntu2) trusty; urgency=low * Work around build strangeness on ppc64el. -- Daniel T Chen Fri, 31 Jan 2014 15:57:21 -0500 libapreq2 (2.13-3ubuntu1) trusty; urgency=low * Use dh-autoreconf for newer arches, resolving FTBFS. - Add missing autoconf macro directory. -- Daniel T Chen Fri, 31 Jan 2014 15:08:45 -0500 libapreq2 (2.13-3) unstable; urgency=high * urgency=high, fixes an RC bug. * Convert libapreq2-3 to multiarch; fixes an FTBFS as libtool would sometimes want to relink mod_apreq2.so under make install, and only looked in the multiarch directory when it did. (Closes: #729648) * 04-pass-libdir-to-configure.patch: New patch, pass --libdir from Makefile.PL to configure. * In debian/rules, give the correct multiarch --libdir to Makefile.PL. * Adjust the paths in libapreq2-3.install and libapreq2-dev.install so that they are correct for multiarch. * Delete unused patch 04-foo. -- Steinar H. Gunderson Fri, 15 Nov 2013 23:17:57 +0100 libapreq2 (2.13-2.1) unstable; urgency=high * Non-maintainer upload. * Version libapreq2-3's Conflicts/Replaces on libapreq2 as << 2.13-2~ (closes: #717026). -- Julien Cristau Tue, 30 Jul 2013 15:53:13 +0200 libapreq2 (2.13-2) unstable; urgency=low * Build against Apache 2.4. (Closes: #666802) * Build-depend on apache2-dev instead of apache2-prefork-dev. * Depend on apache2-api-20120211 instead of apache2.2-common. * Use dh_apache2 for handling of maintainer scripts and .load files instead of calling a2dismod ourselves. * Add a build-dependency on the virtual package dh_apache2. * Fix some Lintian issues. * Rename apreq.load to apreq2.load. * Create a dummy build-indep target. * Switch to build flags from dpkg-buildflags (many smaller hacks needed to make them propagate correctly throughout the build system), to get the hardening flags right. * Add versioned dependency on dpkg-dev to get the buildflags.mk file. * Rename libapreq2 to libapreq2-3. * Add appropriate Conflicts/Replaces on the old libapreq2 package for a smooth transition. * Update internal dependencies. * Bump Standards-Version to 3.9.4. * Build mod_apreq2.so with no rpath, by hacking libtool after configure. For some reason, seemingly this was not reported properly by Lintian before. * Call dh_autotools-dev* at the right points to get updated config.sub and config.guess. * Build-depend on autotools-dev. * Make the shlibs file contain a versioned dependency. (Closes: #697683) -- Steinar H. Gunderson Mon, 15 Jul 2013 15:41:59 +0200 libapreq2 (2.13-1) unstable; urgency=low * New upstream release. * Properly links in libapr-1 when building binaries. (Closes: #615739) * Don't install .la files (remove from libapreq2-dev.install and libapache2-mod-apreq2.install); the one we installed was broken, and they're generally discouraged anyway. (Not reported in Debian, but LP: #651396, and fixes a Lintian error.) * Update to Standards-Version 3.9.1 (no changes needed). -- Steinar H. Gunderson Mon, 28 Feb 2011 02:24:36 +0100 libapreq2 (2.12-2) unstable; urgency=medium * 03-link-in-apr-shared-objects.patch: New patch, fixes so APR shared objects are properly linked into the Perl modules. This makes it possible to load the modules (although still not instantiate Apache2::Request objects) from scripts that are not run under mod_perl. Fix from Damyan Ivanov. (Closes: #573062) -- Steinar H. Gunderson Wed, 26 May 2010 00:06:42 +0200 libapreq2 (2.12-1) unstable; urgency=low * New upstream release. * Switch to dpkg-source 3.0 (quilt) format. * Split the Debian diff into two separate patches, and remove spurious junk that shouldn't have been there. * In clean, remove some stray files distclean forgets. * Update debhelper compatibility level to 7. * Update debhelper build-dependency version. * Use dh_prep instead of dh_clean -k. * Update Standards-Version to 3.8.4. * Change from ${Source-Version} to ${binary:Version} in inter-package dependencies. * In debian/copyright, refer to the Apache 2.0 license file from common-licenses instead of having the entire license text in the file. Also include the actual copyright in the file. * Put all binary packages in their correct respective sections. * Add ${misc:Depends} to all binary packages, and remove ${shlibs:Depends} from the -dev and -doc packages (which don't have any shared libraries). * Run dh_shlibdeps on all packages, using the -a flag. * Don't ignore errors on distclean; check for Makefile instead. * Don't use full path to a2dismod in libapache2-mod-apreq2.postrm. * Run libapache2-mod-apreq2.postrm script under sh -e, so errors are not ignored. * Install the man pages that used to conflict with libapache-request-perl, which is now not in the stable release anymore. * Don't set PREFIX= at make install time; only set prefix=. Seemingly, PREFIX= has no real effect at that point. -- Steinar H. Gunderson Sun, 28 Feb 2010 15:51:47 +0100 libapreq2 (2.08-5.1) unstable; urgency=low * Non-maintainer upload. * debian/rules: change dh_* order so that dh_installdeb is not invoked too early and avoid including ldconfig in postinst (Closes: #553124) -- Stefano Zacchiroli Sat, 14 Nov 2009 18:23:42 +0100 libapreq2 (2.08-5) unstable; urgency=low * Update config.{sub,guess} with latest versions from autotools-dev; fixes FTBFS on GNU/kFreeBSD. (Closes: #401751) -- Steinar H. Gunderson Sat, 19 May 2007 02:09:12 +0200 libapreq2 (2.08-4) unstable; urgency=medium * Fix typo; libapreq2 recommended libapreq2-mod-apreq2, which is obviously wrong. Change to libapache2-mod-apreq2. -- Steinar H. Gunderson Tue, 31 Oct 2006 02:40:32 +0100 libapreq2 (2.08-3) unstable; urgency=high * urgency=high to get the package into testing in time for the Apache 2.2 transition. * Update dependency from libapreq2-dev on libapr0-dev to libapr1-dev; fixes uninstallability. (Closes: #394614) -- Steinar H. Gunderson Sun, 22 Oct 2006 12:02:09 +0200 libapreq2 (2.08-2) unstable; urgency=low * Rebuild against Apache 2.2. * Build-depend on libapache2-mod-perl2 (>= 2.0.2-2.1), to make sure we get an Apache 2.2-capable mod_perl. * Depend on apache2.2-common instead of apache2-common. * Build-depend on libapr1-dev instead of libapr0-dev. -- Steinar H. Gunderson Tue, 10 Oct 2006 02:12:06 +0200 libapreq2 (2.08-1) unstable; urgency=low * New upstream release. -- Steinar H. Gunderson Tue, 12 Sep 2006 22:45:24 +0200 libapreq2 (2.07-1) unstable; urgency=medium * New upstream version. * [CVE-2006-0042] Fixes a possible remote DoS due to quadratic behaviour in apreq_parse_{headers,urlencoded}. * Removed INSTALLDIRS=vendor from Makefile.PL, it seems to choke on it now (and we've still got it in make install). * Include debhelper token in libapache2-mod-apreq2.postrm. -- Steinar H. Gunderson Sat, 25 Feb 2006 12:41:27 +0100 libapreq2 (2.06-dev-2) unstable; urgency=low * Hardcode $prefix in apreq2-config.in to /usr, so apreq2-config gives out more sensible values. (Closes: #323108) -- Steinar H. Gunderson Mon, 10 Oct 2005 18:53:46 +0200 libapreq2 (2.06-dev-1) unstable; urgency=low * New upstream version. * Remove the spurious “2” file in the diff. -- Steinar H. Gunderson Sat, 13 Aug 2005 13:22:11 +0200 libapreq2 (2.05-dev-6) unstable; urgency=low * Add a dependency from libapache2-request-perl to libapache2-mod-apreq2. (Closes: #319614) * Fix the short description of libapache2-mod-apreq2 to say that it's actually an Apache module. -- Steinar H. Gunderson Thu, 4 Aug 2005 02:10:38 +0200 libapreq2 (2.05-dev-5) unstable; urgency=low * Make libapreq2-dev depend on libapr0-dev. (Closes: #317301) * Disable module on uninstall, if it is enabled. (Closes: #301685) * Split out libapache2-mod-apreq2 into a separate package. (Closes: #315971) * Add a Replaces: on libapache2-mod-apreq2 to all the packages that were split out in 2.05-dev-3, to be able to do upgrades correctly. * Update Standards-Version to 3.6.2 (no changes needed). * Drop the shlibs file, and generate it using dh_makeshlibs and dh_shlibdeps instead. -- Steinar H. Gunderson Sat, 16 Jul 2005 23:31:22 +0200 libapreq2 (2.05-dev-4) unstable; urgency=low * Change ${Version} (which is a syntax error) in debian/control to ${Source-Version}, which makes the Depends: lines be generated again. (Closes: #314859) -- Steinar H. Gunderson Sun, 19 Jun 2005 13:03:22 +0200 libapreq2 (2.05-dev-3) unstable; urgency=low * Changed source package name, since we aren't a Perl-only package. * Split the binary package into separate parts, separating the Perl glue from the rest and the binary into its own part. Note that this is somewhat experimental yet. :-) (Closes: #311622) * Bumped the versioned dependency on the libapache2-mod-perl2 (see last upload). * Removed redundant dh_* commands from debian/rules. -- Steinar H. Gunderson Tue, 7 Jun 2005 14:49:32 +0200 libapreq2-perl (2.05-dev-2) unstable; urgency=low * Bump versioned Build-Dependency on libapache2-mod-perl2, as we had an ABI change in 2.05-dev. (Closes: #311623) -- Steinar H. Gunderson Tue, 7 Jun 2005 02:02:31 +0200 libapreq2-perl (2.05-dev-1) unstable; urgency=low * New upstream version, works properly with newer mod_perl2. (Closes: #309894) * Removed old "realclean" hack from build system. * Updated module name in .load file from mod_apreq.so to mod_apreq2.so. -- Steinar H. Gunderson Fri, 20 May 2005 15:07:09 +0200 libapreq2-perl (2.04-dev-1) unstable; urgency=medium * New upstream version. (Closes: #293099) * Build-Depend on libapache2-request-perl2-dev, as the new upstream version now needs some header files from it. * Don't give lots of unneeded README files to dh_installdocs, they aren't installed anyhow. * Include HTML documentation in package. (Closes: #286810) * Fix capitalization in package description. * Updated debian/copyright: * Update license from LICENSE file (upstream has moved to Apache 2.0 license) * Add reference to myself. * Add upstream URL. -- Steinar H. Gunderson Sun, 3 Apr 2005 16:06:44 +0200 libapreq2-perl (2.03-dev-3) unstable; urgency=high * Built against non-LFS libapr0 again, as per the request of the Apache maintainers. Consequently removed the LFS defines from CFLAGS as well. * Removed dep on apache2-dev -- a versioned dependency on it is useless anyhow. -- Steinar H. Gunderson Fri, 20 Aug 2004 23:17:13 +0200 libapreq2-perl (2.03-dev-2) unstable; urgency=low * Fix even more LFS problems, which were a lot more visible ("segfault immediately") on big-endian architectures than on little-endian architectures; patch from Adam Conrad. * Remove a few temporary files from the source distribution (reducing the diff by ~10kB). -- Steinar H. Gunderson Wed, 18 Aug 2004 03:40:24 +0200 libapreq2-perl (2.03-dev-1) unstable; urgency=low * New upstream release. * Now has versioned Depends for libapache2-mod-perl2, not just Build-Depends like 2.02-dev-6 has. * Build with "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64". Should hopefully finally fix the LFS problems. -- Steinar H. Gunderson Wed, 18 Aug 2004 02:52:35 +0200 libapreq2-perl (2.02-dev-6) unstable; urgency=medium * New Depends for libapache2-mod-perl2 as well. (Really Closes: #266190) -- Steinar H. Gunderson Tue, 17 Aug 2004 23:34:40 +0200 libapreq2-perl (2.02-dev-5) unstable; urgency=medium * Build against new libapr0 ABI (new Depends:). (Closes: #266190) -- Steinar H. Gunderson Tue, 17 Aug 2004 02:05:04 +0200 libapreq2-perl (2.02-dev-4) unstable; urgency=low * Removed unneeded build dependency on apache2; the configure script now automatically assumes a correct Apache version will be installed on the target system. The dependency on apache2-common is now versioned to provide the same check at install-time. (Closes: #245490) -- Steinar H. Gunderson Sat, 8 May 2004 18:13:02 +0200 libapreq2-perl (2.02-dev-3) unstable; urgency=medium * Don't include Apache::Cookie and Apache::Request manpages, so the package can be installed at the same time as libapache-request-perl. (Closes: #237211) * Add debian/compat file, so we use debhelper v4 compatibility instead of debhelper v1 compatibility. Updates debian/rules accordingly, and removed debian/conffiles, as it's no longer needed. -- Steinar H. Gunderson Wed, 10 Mar 2004 16:46:12 +0100 libapreq2-perl (2.02-dev-2) unstable; urgency=low * Cleanups in debian/rules. * Added binary-arch and binary-indep targets, as per policy. * Actually _install_ libapreq2.so.2 to /usr/lib. (Closes: #234985) -- Steinar H. Gunderson Tue, 10 Feb 2004 02:07:27 +0100 libapreq2-perl (2.02-dev-1) experimental; urgency=low * Initial packaging for Debian. -- Steinar H. Gunderson Sat, 17 Jan 2004 00:14:44 +0100 debian/libapache2-mod-apreq2.exclude0000664000000000000000000000003411342506513014477 0ustar usr/lib/apache/modules/*.la debian/libapache2-mod-apreq2.install0000664000000000000000000000011311532576207014522 0ustar usr/lib/apache2/modules/mod_apreq2.a usr/lib/apache2/modules/mod_apreq2.so debian/libapreq2-doc.dirs0000664000000000000000000000005311342467402012500 0ustar usr/share/doc/libapache2-request-perl/html debian/libapreq2-doc.install0000664000000000000000000000002511342467402013204 0ustar usr/share/man/man3/* debian/patches/0000775000000000000000000000000012273002101010603 5ustar debian/patches/01-fake-installed-apache.patch0000664000000000000000000000126411342504601016157 0ustar Description: Fake that Apache is installed. Instead of checking version number with apache2 -v, we hard-code a working version. This enables the package to be built without installing a running Apache on the building host. Author: Steinar H. Gunderson Origin: vendor Forwarded: not-needed Last-Update: 2010-02-28 --- libapreq2-2.12.orig/build/version_check.pl +++ libapreq2-2.12/build/version_check.pl @@ -6,7 +6,7 @@ GetOptions(\my %opts, "version=s"); my ($tool, $path) = @ARGV; $path = $tool unless defined $path; -sub exe_version { scalar qx/$path -v/ } +sub exe_version { return "2.0.53"; } sub gnu_version { scalar qx/$path --version/ } sub xsb_version { debian/patches/03-link-in-apr-shared-objects.patch0000664000000000000000000000173611377045331017107 0ustar Don't try to regenerate Makefiles at installation time, as this will forget to link against the internal copy of libapreq2-dev, which will cause problems when trying to load the module outside Apache. Index: libapreq2-2.12/glue/Makefile.am =================================================================== --- libapreq2-2.12.orig/glue/Makefile.am +++ libapreq2-2.12/glue/Makefile.am @@ -15,7 +15,6 @@ perl_test: perl/Makefile cd perl; $(MAKE) test perl_install: - cd perl; INSTALL=1 @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@ cd perl; $(MAKE) install perl_clean: Index: libapreq2-2.12/glue/Makefile.in =================================================================== --- libapreq2-2.12.orig/glue/Makefile.in +++ libapreq2-2.12/glue/Makefile.in @@ -265,7 +265,6 @@ perl_test: perl/Makefile cd perl; $(MAKE) test perl_install: - cd perl; INSTALL=1 @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@ cd perl; $(MAKE) install perl_clean: debian/patches/04-pass-libdir-to-configure.patch0000664000000000000000000000110212241516201016655 0ustar Index: libapreq2-2.13/Makefile.PL =================================================================== --- libapreq2-2.13.orig/Makefile.PL +++ libapreq2-2.13/Makefile.PL @@ -19,7 +19,7 @@ my %opts; undef @opts{qw(with-apache2-apxs with-apache1-apxs with-apache2-src with-perl with-apache2-httpd with-apr-config with-apu-config apxs - with-expat with-mm-opts)}; + with-expat with-mm-opts libdir)}; undef @opts{qw(with-apache2)} if (WIN32); my @flags = qw/enable-maintainer-mode enable-perl-glue disable-perl-glue/; debian/patches/series0000664000000000000000000000023012273002036012022 0ustar 01-fake-installed-apache.patch 02-hardcode-usr-prefix.patch 03-link-in-apr-shared-objects.patch 04-pass-libdir-to-configure.patch autoconf-macro.patch debian/patches/02-hardcode-usr-prefix.patch0000664000000000000000000000107211342506127015733 0ustar Description: Hard-code apreq2-config --prefix apreq2-config will leak information about the build environment. Hard-code what --prefix returns, so it's at least slightly more sane. Author: Steinar H. Gunderson Origin: vendor Bug-Debian: http://bugs.debian.org/323108 Forwarded: not-needed Last-Update: 2010-02-28 --- libapreq2-2.12.orig/apreq2-config.in +++ libapreq2-2.12/apreq2-config.in @@ -22,7 +22,7 @@ PATH=/bin:/usr/bin:/usr/local/bin -prefix="@prefix@" +prefix="/usr" exec_prefix="@exec_prefix@" bindir="@bindir@" libdir="@libdir@" debian/patches/autoconf-macro.patch0000664000000000000000000000063712273002101014547 0ustar Index: libapreq2-2.13/configure.ac =================================================================== --- libapreq2-2.13.orig/configure.ac 2010-11-25 14:11:28.000000000 -0500 +++ libapreq2-2.13/configure.ac 2014-01-31 15:14:53.915579939 -0500 @@ -15,6 +15,8 @@ dnl AC_INIT above, so we do it again here. AM_INIT_AUTOMAKE(libapreq2, 2.13) +AC_CONFIG_MACRO_DIR(.) + AC_PROG_MAKE_SET dnl Checks for programs. debian/libapreq2-dev.install0000664000000000000000000000012112241517732013213 0ustar usr/lib/*/libapreq2.so usr/lib/*/libapreq2.a usr/bin/apreq2-config usr/include/* debian/control0000664000000000000000000000712012273001313010563 0ustar Source: libapreq2 Section: perl Priority: optional Build-Depends: debhelper (>= 7), apache2-dev (>= 2.0.50-10), dh-apache2, libapr1-dev, libextutils-xsbuilder-perl, perl (>= 5.8.0-7), libapache2-mod-perl2 (>= 2.0.2-2.1), libapache2-mod-perl2-dev, dpkg-dev (>= 1.16.1~), dh-autoreconf Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Steinar H. Gunderson Standards-Version: 3.9.4 Package: libapache2-mod-apreq2 Section: web Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libapreq2-3 (=${binary:Version}), apache2-api-20120211 Replaces: libapreq2 (<< 2.05-dev-5), libapache2-request-perl (<< 2.05-dev-3) Description: generic Apache request library - Apache module The generic Apache request library (APR) contains modules for manipulating client request data with the Apache API from Perl and C. Functionality includes: . - parsing of application/x-www-form-urlencoded data - parsing of multipart/form-data - parsing of HTTP Cookies . This package contains the Apache module itself. Package: libapreq2-3 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: libapache2-mod-apreq2 Replaces: libapache2-request-perl (<< 2.05-dev-3), libapreq2 (<< 2.13-2~) Conflicts: libapreq2 (<< 2.13-2~) Description: generic Apache request library The generic Apache request library (APR) contains modules for manipulating client request data with the Apache API from Perl and C. Functionality includes: . - parsing of application/x-www-form-urlencoded data - parsing of multipart/form-data - parsing of HTTP Cookies . This package contains the main library. Package: libapreq2-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libapreq2-3 (=${binary:Version}), libapr1-dev Recommends: libapreq2-doc (=${binary:Version}) Replaces: libapache2-request-perl (<< 2.05-dev-3) Description: generic Apache request library - development files The generic Apache request library (APR) contains modules for manipulating client request data with the Apache API from Perl and C. Functionality includes: . - parsing of application/x-www-form-urlencoded data - parsing of multipart/form-data - parsing of HTTP Cookies . This package contains the development library and C headers required for compiling programs against the library. Package: libapreq2-doc Section: doc Architecture: all Depends: ${misc:Depends} Recommends: libapreq2-dev (=${binary:Version}) Description: generic Apache request library - documentation The generic Apache request library (APR) contains modules for manipulating client request data with the Apache API from Perl and C. Functionality includes: . - parsing of application/x-www-form-urlencoded data - parsing of multipart/form-data - parsing of HTTP Cookies . This package contains the programming documentation for the library. Package: libapache2-request-perl Section: perl Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, libapache2-mod-perl2 (>= 1.99.23-1), libapreq2-3 (=${binary:Version}), libapache2-mod-apreq2 (=${binary:Version}) Description: generic Apache request library - Perl modules The generic Apache request library (APR) contains modules for manipulating client request data with the Apache API from Perl and C. Functionality includes: . - parsing of application/x-www-form-urlencoded data - parsing of multipart/form-data - parsing of HTTP Cookies . This package contains the Perl bindings, which are simply a thin XS layer on top of libapreq, making them a lighter and faster alternative to CGI.pm and CGI::Cookie. debian/source/0000775000000000000000000000000012241513454010471 5ustar debian/source/format0000664000000000000000000000001411344306775011710 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211342470332010365 0ustar 7 debian/libapache2-request-perl.install0000664000000000000000000000002011342467402015173 0ustar usr/lib/perl5/* debian/rules0000775000000000000000000000375712273006577010275 0ustar #!/usr/bin/make -f #-*- makefile -*- # Made with the aid of dh_make, by Craig Small # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # If set to a true value then MakeMaker's prompt function will # always return the default without waiting for user input. export PERL_MM_USE_DEFAULT=1 PACKAGE=$(shell dh_listpackages) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) ifndef PERL PERL = /usr/bin/perl endif ifndef DESTDIR DESTDIR=.. endif TMP = `pwd`/debian/tmp INSTDIR = $(shell perl -V:archlib | cut -d\' -f2 ) DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk build: build-arch build-indep build-indep: build-arch: dh_testdir -dh_autoreconf $(PERL) Makefile.PL --with-apache2-apxs=/usr/bin/apxs2 --prefix=/usr --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) sed -i -r 's/(hardcode_into_libs)=.*$$/\1=no/' $(CURDIR)/libtool # See http://wiki.debian.org/RpathIssue. $(MAKE) OPTIMIZE="$(CFLAGS)" LDDLFLAGS="-shared $(LDFLAGS)" LD_RUN_PATH="" clean: dh_testdir dh_testroot [ ! -f Makefile ] || $(MAKE) distclean $(RM) -r $(TMP) $(RM) config.nice glue/perl/Makefile.old glue/perl/t/REPORT glue/perl/t/SMOKE dh_autoreconf_clean dh_clean binary: binary-arch binary-indep binary-indep: binary-arch: build dh_testdir dh_testroot dh_prep dh_installdirs # Note: prefix, not PREFIX. mkdir $(TMP) $(MAKE) install INSTALLDIRS=vendor DESTDIR=$(TMP) prefix=/usr dh_install --sourcedir=debian/tmp # install -m 0644 debian/apreq2.load debian/libapache2-mod-apreq2/etc/apache2/mods-available/ dh_installdocs README install -m 0644 docs/html/* debian/libapreq2-doc/usr/share/doc/libapache2-request-perl/html/ dh_apache2 dh_installchangelogs CHANGES dh_link dh_strip dh_compress dh_fixperms dh_perl $(INSTDIR)/Apache dh_makeshlibs -V'libapreq2-3 (>= 2.13-2)' dh_shlibdeps -a -L libapreq2 -l debian/libapreq2/usr/lib dh_installdeb dh_gencontrol dh_md5sums dh_builddeb --destdir=$(DESTDIR) .PHONY: build clean binary binary-arch binary-indep debian/libapache2-mod-apreq2.dirs0000664000000000000000000000006311342467402014014 0ustar usr/lib/apache2/modules etc/apache2/mods-available debian/libapreq2-3.install0000664000000000000000000000003112241516610012571 0ustar usr/lib/*/libapreq2.so.*