aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-11-13 13:00:36 +0800
committeredwin <edwin@FreeBSD.org>2003-11-13 13:00:36 +0800
commite2517856a6d170b17e17118b1d17b7989ef71e8b (patch)
tree3bf0d0d8e319d0c44adc2470534ed871918dc881 /www
parentd85e332eccdf7a1b54797edf3f1952ff49697f31 (diff)
downloadfreebsd-ports-gnome-e2517856a6d170b17e17118b1d17b7989ef71e8b.tar.gz
freebsd-ports-gnome-e2517856a6d170b17e17118b1d17b7989ef71e8b.tar.zst
freebsd-ports-gnome-e2517856a6d170b17e17118b1d17b7989ef71e8b.zip
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')
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_encoding/Makefile39
-rw-r--r--www/mod_encoding/distinfo1
-rw-r--r--www/mod_encoding/pkg-descr30
-rw-r--r--www/mod_encoding/pkg-plist1
5 files changed, 72 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index b51b473238bf..dabaa87194be 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -208,6 +208,7 @@
SUBDIR += mod_cvs
SUBDIR += mod_dav
SUBDIR += mod_dtcl
+ SUBDIR += mod_encoding
SUBDIR += mod_extract_forwarded
SUBDIR += mod_fastcgi
SUBDIR += mod_filter
diff --git a/www/mod_encoding/Makefile b/www/mod_encoding/Makefile
new file mode 100644
index 000000000000..5c2bc6b7dd60
--- /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 000000000000..397b1120d05e
--- /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 000000000000..c5ac79826f5e
--- /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 000000000000..5f266b13afaa
--- /dev/null
+++ b/www/mod_encoding/pkg-plist
@@ -0,0 +1 @@
+libexec/apache/mod_encoding.so