--- libapache2-mod-encoding-20040616.orig/debian/apache2 +++ libapache2-mod-encoding-20040616/debian/apache2 @@ -0,0 +1,2 @@ +mod mod_encoding.so +mod debian/encoding.load --- libapache2-mod-encoding-20040616.orig/debian/changelog +++ libapache2-mod-encoding-20040616/debian/changelog @@ -0,0 +1,86 @@ +libapache2-mod-encoding (20040616-6) unstable; urgency=medium + + * QA upload + * Set maintainer field to Debian QA Group (see #835191) + * Bump debhelper compat level. Closes: #817517 + + -- Christoph Biedl Sun, 18 Dec 2016 23:24:43 +0100 + +libapache2-mod-encoding (20040616-5.2) unstable; urgency=low + + * Non-maintainer upload. + * Port to Apache 2.4 (closes: #666842). + + -- Colin Watson Mon, 08 Jul 2013 16:57:36 +0100 + +libapache2-mod-encoding (20040616-5.1) unstable; urgency=low + + * Non-maintainer upload. + * Set CFLAGS using dpkg-buildflags. + * Remove warning option unknown to GCC 4.7. Closes: #667239. + + -- Matthias Klose Tue, 17 Apr 2012 07:20:02 +0020 + +libapache2-mod-encoding (20040616-5) unstable; urgency=medium + + * Section was changed to net (Closes: #394098) + * MNU patch for apache2.2 has been applied, Thanks for Michael Ablassmeier + Closes: #394081 + + -- Tatsuki Sugiura Wed, 18 Jul 2007 05:17:06 +0900 + +libapache2-mod-encoding (20040616-4.2) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBS, add path to mod_encoding.o to gcc call + Closes: #393019 + * Replace obsolete dependency on apache2-common with + apache2.2-common (Closes: #391779) + + -- Michael Ablassmeier Thu, 19 Oct 2006 12:31:32 +0200 + +libapache2-mod-encoding (20040616-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Add missing include directive to fix an implicitly converted return pointer + from apr_pstrdup(). Closes: #325506 + + -- dann frazier Sun, 2 Oct 2005 22:12:06 -0600 + +libapache2-mod-encoding (20040616-4) unstable; urgency=low + + * add includes . Thanks for Andreas Jochens. (Closes: #297981) + + -- Tatsuki Sugiura Wed, 9 Mar 2005 21:45:44 +0900 + +libapache2-mod-encoding (20040616-3) unstable; urgency=medium + + * rebuild for new ABI of apache2 2.0.50-9 (Closes: #266183) + + -- Tatsuki Sugiura Tue, 17 Aug 2004 15:06:06 +0900 + +libapache2-mod-encoding (20040616-2) unstable; urgency=low + + * Update; debian/copyright from upstream source. + + -- Tatsuki Sugiura Mon, 28 Jun 2004 16:33:12 +0900 + +libapache2-mod-encoding (20040616-1) unstable; urgency=low + + * New upstream release. + + -- Tatsuki Sugiura Wed, 23 Jun 2004 13:58:56 +0900 + +libapache2-mod-encoding (20020611a.2-2) unstable; urgency=low + + * lisence fixed. + * upload official archive (Closes: #227051) + + -- Tatsuki Sugiura Tue, 15 Jun 2004 03:13:35 +0900 + +libapache2-mod-encoding (20020611a.2-1) unstable; urgency=low + + * Initial Release. + + -- Tatsuki Sugiura Sun, 11 Jan 2004 07:51:53 +0900 + --- libapache2-mod-encoding-20040616.orig/debian/compat +++ libapache2-mod-encoding-20040616/debian/compat @@ -0,0 +1 @@ +10 --- libapache2-mod-encoding-20040616.orig/debian/control +++ libapache2-mod-encoding-20040616/debian/control @@ -0,0 +1,23 @@ +Source: libapache2-mod-encoding +Section: net +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 10~), libiconv-hook-dev, dh-apache2, apache2-dev (>= 2.0.50-9) +Standards-Version: 3.7.2.2 +Uploaders: Taku YASUI + +Package: libapache2-mod-encoding +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Apache2 module for non-ascii filename interoperability + This module improves non-ascii filename interoperability of + apache (and mod_dav). + . + It seems many WebDAV clients send filename in its platform-local + encoding. But since mod_dav expects everything, even HTTP request + line, to be in UTF-8, this causes an interoperability problem. + . + I believe this is a future issue for specification (RFC?) to + standardize encoding used in HTTP request-line and HTTP header, + but life would be much easier if mod_dav (and others) can handle + various encodings sent by clients, TODAY. This module does just that. --- libapache2-mod-encoding-20040616.orig/debian/copyright +++ libapache2-mod-encoding-20040616/debian/copyright @@ -0,0 +1,56 @@ +This package was debianized by Tatsuki Sugiura on +Sun, 11 Jan 2004 07:51:53 +0900. + +It was downloaded from http://webdav.todo.gr.jp/download/ + +Upstream Author: Kunio Miyamoto + +Copyright: + +pyright (c) 2000-2004 +Internet Initiative Japan Inc. and Kunio Miyamoto 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. + +3. All advertising materials mentioning features or use of this + software must display the following acknowledgment: + + This product includes software developed by Internet + Initiative Japan Inc. and Kunio Miyamoto for use in the + mod_encoding module for Apache2. + +4. Products derived from this software may not be called "mod_encoding" + nor may "mod_encoding" appear in their names without prior written + permission of Internet Initiative Japan Inc. For written permission, + please contact tai@iij.ad.jp (Taisuke Yamada). + +5. Redistributions of any form whatsoever must retain the following + acknowledgment: + + This product includes software developed by Internet + Initiative Japan Inc. and Kunio Miyamoto for use in the + mod_encoding module for Apache2 (http://www.apache.org/). + +THIS SOFTWARE IS PROVIDED BY INTERNET INITIATIVE JAPAN INC. AND KUNIO +MIYAMOTO ``AS IS'' AND ANY EXPRESSED 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 +INTERNET INITIATIVE JAPAN INC., KUNIO MIYAMOTO OR ITS 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. --- libapache2-mod-encoding-20040616.orig/debian/dirs +++ libapache2-mod-encoding-20040616/debian/dirs @@ -0,0 +1 @@ +usr/lib --- libapache2-mod-encoding-20040616.orig/debian/encoding.load +++ libapache2-mod-encoding-20040616/debian/encoding.load @@ -0,0 +1 @@ +LoadModule encoding_module /usr/lib/apache2/modules/mod_encoding.so --- libapache2-mod-encoding-20040616.orig/debian/rules +++ libapache2-mod-encoding-20040616/debian/rules @@ -0,0 +1,103 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + +CFLAGS ?= $(shell dpkg-buildflags --get CFLAGS) + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + for p in patches/*; do \ + patch -s -N -p1 < $$p; \ + done + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + #/usr/bin/docbook-to-man debian/libapache2-mod-encoding.sgml > libapache2-mod-encoding.1 + apxs2 -c -liconv_hook mod_encoding.c + gcc -shared -o mod_encoding.so .libs/mod_encoding.o -Wall -liconv_hook + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + rm -fr *.so *.o *.slo *.la *.lo .libs + -for p in patches/*; do \ + patch -N -R -p1 --dry-run < $$p > /dev/null 2>&1 \ + && patch -N -s -R -p1 < $$p; \ + done + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/libapache2-mod-encoding. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/libapache2-mod-encoding + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install + dh_apache2 +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- libapache2-mod-encoding-20040616.orig/debian/watch +++ libapache2-mod-encoding-20040616/debian/watch @@ -0,0 +1,8 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +#http://webdav.todo.gr.jp/download/ \ +# (?:.*/)mod_encoding\.apache2\.(.+) \ +# debian uupdate --- libapache2-mod-encoding-20040616.orig/patches/100.mod_encoding-20020611a-safequery.patch +++ libapache2-mod-encoding-20040616/patches/100.mod_encoding-20020611a-safequery.patch @@ -0,0 +1,31 @@ +This was downloaded from http://www.namazu.org/ml/namazu-win32-users-ja/msg01596.html +And modified for apache2 by Tatsuki Sugiura +diff -urN mod_encoding-20020611a-orig/mod_encoding.c mod_encoding-20020611a/mod_encoding.c +--- mod_encoding-20020611a-orig/mod_encoding.c Tue Jun 11 18:07:14 2002 ++++ mod_encoding-20020611a/mod_encoding.c Fri Dec 13 11:43:46 2002 +@@ -129,13 +129,21 @@ + char *buff; + char *keys[] = { "Destination", NULL }; + int i; ++ char *unparsed_uri; ++ char *query_string; + + /* Normalize encoding in HTTP request line */ +- ap_unescape_url(r->unparsed_uri); +- if ((buff = iconv_string(r, cd, r->unparsed_uri, +- strlen(r->unparsed_uri))) == NULL) ++ query_string = apr_pstrdup(r->pool, r->unparsed_uri); ++ unparsed_uri = ap_getword(r->pool, &query_string, '?'); ++ ap_unescape_url(unparsed_uri); ++ if ((buff = iconv_string(r, cd, unparsed_uri, ++ strlen(unparsed_uri))) == NULL) + return -1; +- ap_parse_uri(r, buff); ++ if (query_string && strlen(query_string) > 0) { ++ ap_parse_uri(r, apr_pstrcat(r->pool, buff, "?", query_string, NULL)); ++ } else { ++ ap_parse_uri(r, buff); ++ } + ap_getparents(r->uri); /* normalize given path for security */ + + /* Normalize encoding in HTTP request header(s) */ --- libapache2-mod-encoding-20040616.orig/patches/100.mod_encoding-include-apr-strings.patch +++ libapache2-mod-encoding-20040616/patches/100.mod_encoding-include-apr-strings.patch @@ -0,0 +1,9 @@ +--- libapache2-mod-encoding-20040616.orig/mod_encoding.c 2004-06-15 09:52:25.000000000 -0600 ++++ libapache2-mod-encoding-20040616/mod_encoding.c 2005-10-02 22:12:00.000000000 -0600 +@@ -74,6 +74,7 @@ + #include + #include + #include ++#include + /* #include */ + --- libapache2-mod-encoding-20040616.orig/patches/100.mod_encoding-include-regex.patch +++ libapache2-mod-encoding-20040616/patches/100.mod_encoding-include-regex.patch @@ -0,0 +1,16 @@ +from; Bug#297981: libapache2-mod-encoding: FTBFS: 'regex_t' undeclared (first use in this function) +http://bugs.debian.org/297981 + +Thanks for Andreas Jochens. + +--- ./mod_encoding.c 2004-06-15 17:52:25.000000000 +0200 ++++ ./mod_encoding.c 2005-03-03 21:46:34.162465697 +0100 +@@ -68,6 +68,7 @@ + + */ + ++#include + #include + #include + #include + --- libapache2-mod-encoding-20040616.orig/patches/100.mod_encoding-strictconfig.patch +++ libapache2-mod-encoding-20040616/patches/100.mod_encoding-strictconfig.patch @@ -0,0 +1,33 @@ +Written by Tatsuki Sugiura . +All rigthts was renounced. you can treat this as public domain. +--- mod_encoding.orig/mod_encoding.c 2004-01-13 04:50:24.000000000 +0900 ++++ mod_encoding/mod_encoding.c 2004-01-13 04:55:51.000000000 +0900 +@@ -314,23 +314,23 @@ + static const command_rec mod_enc_commands[] = { + {"EncodingEngine", + set_encoding_engine, NULL, +- OR_ALL, FLAG, "Usage: EncodingEngine (on|off)"}, ++ RSRC_CONF, FLAG, "Usage: EncodingEngine (on|off)"}, + + {"SetServerEncoding", + set_server_encoding, NULL, +- OR_ALL, TAKE1, "Usage: SetServerEncoding "}, ++ RSRC_CONF, TAKE1, "Usage: SetServerEncoding "}, + + {"AddClientEncoding", + add_client_encoding, NULL, +- OR_ALL, RAW_ARGS, "Usage: AddClientEncoding [ ...]"}, ++ RSRC_CONF, RAW_ARGS, "Usage: AddClientEncoding [ ...]"}, + + {"DefaultClientEncoding", + default_client_encoding, NULL, +- OR_ALL, RAW_ARGS, "Usage: DefaultClientEncoding "}, ++ RSRC_CONF, RAW_ARGS, "Usage: DefaultClientEncoding "}, + + {"NormalizeUsername", + set_normalize_username, NULL, +- OR_ALL, FLAG, "Usage: NormalizeUsername (on|off)"}, ++ RSRC_CONF|ACCESS_CONF, FLAG, "Usage: NormalizeUsername (on|off)"}, + + {NULL} + };