Import mod_encoding-20021209
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. This module adds following directives: EncodingEngine, SetServerEncoding, AddClientEncoding, DefaultClientEncoding, and NormalizeUsername.
This commit is contained in:
parent
36d3f18dc6
commit
ade0b8bbb0
38
www/mod_encoding/Makefile
Normal file
38
www/mod_encoding/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/03/17 11:28:38 ajacoutot Exp $
|
||||
|
||||
COMMENT= Apache module for non-ascii filename interoperability
|
||||
|
||||
DISTNAME= mod_encoding-20021209
|
||||
CATEGORIES= www converters
|
||||
|
||||
HOMEPAGE= http://webdav.todo.gr.jp/
|
||||
|
||||
# Apache-like
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}download/
|
||||
|
||||
SUBST_VARS= PKGNAME
|
||||
|
||||
MODULES= apache-module \
|
||||
converters/libiconv
|
||||
|
||||
MODAPACHE_NAME= encoding
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && /usr/sbin/apxs -Wc,"${CFLAGS}" -I${LOCALBASE}/include -c mod_encoding.c \
|
||||
-L${LOCALBASE}/lib -liconv -o ${WRKBUILD}/mod_encoding.so
|
||||
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_encoding
|
||||
${INSTALL_DATA} ${WRKSRC}/README \
|
||||
${PREFIX}/share/doc/mod_encoding
|
||||
${MODAPACHE_INSTALL}
|
||||
|
||||
.include <bsd.port.mk>
|
5
www/mod_encoding/distinfo
Normal file
5
www/mod_encoding/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (mod_encoding-20021209.tar.gz) = SJy9nHQpuvRcQjTFHLKvIw==
|
||||
RMD160 (mod_encoding-20021209.tar.gz) = sNcx9Ce7ckxAJQPky8mNeIeLlP4=
|
||||
SHA1 (mod_encoding-20021209.tar.gz) = AZ0RLRTps9OKyoQBByb4r0gKQ/U=
|
||||
SHA256 (mod_encoding-20021209.tar.gz) = Exmzz/1gmC8Mc5vhj4Fr53469GzZA5rFRBfBIZUYz4k=
|
||||
SIZE (mod_encoding-20021209.tar.gz) = 260587
|
10
www/mod_encoding/pkg/DESCR
Normal file
10
www/mod_encoding/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
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.
|
||||
|
||||
This module adds following directives:
|
||||
EncodingEngine, SetServerEncoding, AddClientEncoding,
|
||||
DefaultClientEncoding, and NormalizeUsername.
|
8
www/mod_encoding/pkg/MESSAGE
Normal file
8
www/mod_encoding/pkg/MESSAGE
Normal file
@ -0,0 +1,8 @@
|
||||
To finish the install of ${PKGNAME}, you need
|
||||
to enable the module using the following command
|
||||
|
||||
${PREFIX}/sbin/${MODAPACHE_ENABLE}
|
||||
|
||||
If you already have Apache running on your machine, you should not use
|
||||
"apachectl restart" - instead, you should fully stop and then start the
|
||||
server.
|
5
www/mod_encoding/pkg/PLIST
Normal file
5
www/mod_encoding/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/03/17 11:28:38 ajacoutot Exp $
|
||||
lib/${MODAPACHE_MODULE}
|
||||
sbin/${MODAPACHE_ENABLE}
|
||||
share/doc/mod_encoding/
|
||||
share/doc/mod_encoding/README
|
Loading…
Reference in New Issue
Block a user