diff options
author | edwin <edwin@FreeBSD.org> | 2003-11-13 05:00:36 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-11-13 05:00:36 +0000 |
commit | e2517856a6d170b17e17118b1d17b7989ef71e8b (patch) | |
tree | 3bf0d0d8e319d0c44adc2470534ed871918dc881 /www/mod_encoding | |
parent | d85e332eccdf7a1b54797edf3f1952ff49697f31 (diff) | |
download | FreeBSD-ports-e2517856a6d170b17e17118b1d17b7989ef71e8b.zip FreeBSD-ports-e2517856a6d170b17e17118b1d17b7989ef71e8b.tar.gz |
New port: www/mod_encoding
mod_encoding - Apache 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.
Note by maintainer: this port also solves the annoying form of
authentication that Windows machines do against a DAV enabled server:
"hostname\\username" instaed of the standard "username"
Diffstat (limited to 'www/mod_encoding')
-rw-r--r-- | www/mod_encoding/Makefile | 39 | ||||
-rw-r--r-- | www/mod_encoding/distinfo | 1 | ||||
-rw-r--r-- | www/mod_encoding/pkg-descr | 30 | ||||
-rw-r--r-- | www/mod_encoding/pkg-plist | 1 |
4 files changed, 71 insertions, 0 deletions
diff --git a/www/mod_encoding/Makefile b/www/mod_encoding/Makefile new file mode 100644 index 0000000..5c2bc6b --- /dev/null +++ b/www/mod_encoding/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: mod_encoding +# Date created: Thursday 13 November 2003 +# Whom: edwin@mavetju.org +# +# $FreeBSD$ +# + +PORTNAME= mod_encoding +PORTVERSION= 20021209 +CATEGORIES= www +MASTER_SITES= http://webdav.todo.gr.jp/download/ + +MAINTAINER= edwin@mavetju.org +COMMENT= Apache module for non-ascii filename interoperability + +LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv + +# This port will work with the following version of Apache and anything newer. +# Mostly because of the dependency of mod_dav. +APACHE_VERSION= 1.3.6 + +USE_APACHE= yes +HAS_CONFIGURE= yes +USE_GMAKE= yes +CONFIGURE_ARGS= --prefix=${PREFIX} \ + --bindir=${PREFIX}/bin \ + --sbindir=${PREFIX}/sbin \ + --libexecdir=${PREFIX}/libexec/apache \ + --mandir=${PREFIX}/man \ + --sysconfdir=${PREFIX}/etc/apache \ + --datadir=${PREFIX}/share/apache \ + --includedir=${PREFIX}/include/apache \ + --with-apxs=${APXS} + +CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include/apache -I${LOCALBASE}/include' \ + LIBS='-L${LOCALBASE}/lib' \ + PATH="${PREFIX}/bin:${PREFIX}/sbin:${PATH}" + +.include <bsd.port.mk> diff --git a/www/mod_encoding/distinfo b/www/mod_encoding/distinfo new file mode 100644 index 0000000..397b112 --- /dev/null +++ b/www/mod_encoding/distinfo @@ -0,0 +1 @@ +MD5 (mod_encoding-20021209.tar.gz) = 489cbd9c7429baf45c4234c51cb2af23 diff --git a/www/mod_encoding/pkg-descr b/www/mod_encoding/pkg-descr new file mode 100644 index 0000000..c5ac798 --- /dev/null +++ b/www/mod_encoding/pkg-descr @@ -0,0 +1,30 @@ +mod_encoding - Apache 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. + +This module adds following directives: EncodingEngine, SetServerEncoding, +AddClientEncoding, DefaultClientEncoding, and NormalizeUsername. + +Note by maintainer: + It also solves the problem with the "hostname\\username" + way of authentication that Windows machines do when they + attach to a DAV server. See the use of the NormalizeUsername + directive. + +WWW: http://webdav.todo.gr.jp/ +Authors: +- Taisuke Yamada <tai@iij.ad.jp> +- Kunio Miyamoto <wakatono@todo.gr.jp> +- Akira YOSHIYAMA <yosshy@debian.or.jp> +- Kazuhiko Iwama <iwama@ymc.ne.jp> +- IWAMURO Motonori <iwa@mmp.fujitsu.co.jp> diff --git a/www/mod_encoding/pkg-plist b/www/mod_encoding/pkg-plist new file mode 100644 index 0000000..5f266b1 --- /dev/null +++ b/www/mod_encoding/pkg-plist @@ -0,0 +1 @@ +libexec/apache/mod_encoding.so |