From f338ed1ab95e519c65df4e68ce098174ff2f9999 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Tue, 2 Aug 2011 14:47:50 +0000 Subject: [PATCH] Add apache mod_proxy_html module and dependencies --- www-apache/mod_proxy_html/Manifest | 3 ++ .../files/27_mod_proxy_html.conf | 49 +++++++++++++++++++ .../mod_proxy_html-3.1.2.ebuild | 31 ++++++++++++ www-apache/mod_xml2enc/Manifest | 3 ++ .../mod_xml2enc/mod_xml2enc-9999.ebuild | 38 ++++++++++++++ 5 files changed, 124 insertions(+) create mode 100644 www-apache/mod_proxy_html/Manifest create mode 100644 www-apache/mod_proxy_html/files/27_mod_proxy_html.conf create mode 100644 www-apache/mod_proxy_html/mod_proxy_html-3.1.2.ebuild create mode 100644 www-apache/mod_xml2enc/Manifest create mode 100644 www-apache/mod_xml2enc/mod_xml2enc-9999.ebuild diff --git a/www-apache/mod_proxy_html/Manifest b/www-apache/mod_proxy_html/Manifest new file mode 100644 index 0000000..8ec14ad --- /dev/null +++ b/www-apache/mod_proxy_html/Manifest @@ -0,0 +1,3 @@ +AUX 27_mod_proxy_html.conf 1778 RMD160 3f211f775fd1946dad64a5c92a3ce10536da5ba8 SHA1 0cb6844ffcfa23935a06aad93784ae2c0f086808 SHA256 43e88f594b41fae5e2fcf929042f31a3417a553280b5e411228763379cf8c744 +DIST mod_proxy_html-3.1.2.tar.bz2 23019 RMD160 68a704720d9a726970fd283b0b8f0016da770227 SHA1 cd31a2af413e9e3315db617880659d5e93aaf09f SHA256 a1aee758bda605e153868b91188ebf2c527b8eeb0f115d11af152078e65895bf +EBUILD mod_proxy_html-3.1.2.ebuild 819 RMD160 4e8ee80e24ea22fc0d7fa125bf27b68309faaf7d SHA1 debf78ecc6f26e4e9a067a95e11e216d7cf26c26 SHA256 6f29c8bbc9087aa59f65a83f618b54182a477351ba3cea37e179bdca0fd50add diff --git a/www-apache/mod_proxy_html/files/27_mod_proxy_html.conf b/www-apache/mod_proxy_html/files/27_mod_proxy_html.conf new file mode 100644 index 0000000..94cb19c --- /dev/null +++ b/www-apache/mod_proxy_html/files/27_mod_proxy_html.conf @@ -0,0 +1,49 @@ + +LoadFile /usr/lib/libxml2.so +LoadModule proxy_html_module modules/mod_proxy_html.so + +# All knowledge of HTML links has been removed from the mod_proxy_html +# code itself, and is instead read from httpd.conf (or included file) +# at server startup. So you MUST declare it. This will normally be +# at top level, but can also be used in a . +# +# Here's the declaration for W3C HTML 4.01 and XHTML 1.0 + +ProxyHTMLLinks a href +ProxyHTMLLinks area href +ProxyHTMLLinks link href +ProxyHTMLLinks img src longdesc usemap +ProxyHTMLLinks object classid codebase data usemap +ProxyHTMLLinks q cite +ProxyHTMLLinks blockquote cite +ProxyHTMLLinks ins cite +ProxyHTMLLinks del cite +ProxyHTMLLinks form action +ProxyHTMLLinks input src usemap +ProxyHTMLLinks head profile +ProxyHTMLLinks base href +ProxyHTMLLinks script src for + +# To support scripting events (with ProxyHTMLExtended On), +# you'll need to declare them too. + +ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \ + onmouseover onmousemove onmouseout onkeypress \ + onkeydown onkeyup onfocus onblur onload \ + onunload onsubmit onreset onselect onchange + +# If you need to support legacy (pre-1998, aka "transitional") HTML or XHTML, +# you'll need to uncomment the following deprecated link attributes. +# +# ProxyHTMLLinks frame src longdesc +# ProxyHTMLLinks iframe src longdesc +# ProxyHTMLLinks body background +# ProxyHTMLLinks applet codebase +# +# If you're dealing with proprietary HTML variants, +# declare your own URL attributes here as required. +# +# ProxyHTMLLinks myelement myattr otherattr + + +# vim: ts=4 filetype=apache diff --git a/www-apache/mod_proxy_html/mod_proxy_html-3.1.2.ebuild b/www-apache/mod_proxy_html/mod_proxy_html-3.1.2.ebuild new file mode 100644 index 0000000..daa2271 --- /dev/null +++ b/www-apache/mod_proxy_html/mod_proxy_html-3.1.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_proxy_html/mod_proxy_html-3.0.1.ebuild,v 1.1 2009/09/17 08:52:29 hollow Exp $ + +inherit apache-module +inherit flag-o-matic + +DESCRIPTION="An Apache2 module to rewrite links in html pages behind a reverse proxy." +HOMEPAGE="http://apache.webthing.com/mod_proxy_html/" +SRC_URI="http://apache.webthing.com/mod_proxy_html/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/bzip2 + dev-libs/libxml2" +RDEPEND="${DEPEND}" + +APACHE2_MOD_CONF="27_${PN}" +APACHE2_MOD_DEFINE="PROXY_HTML" + +need_apache2 + +S="${WORKDIR}"/${PN} + +src_compile() { + APXS2_ARGS="$(xml2-config --cflags) -I"${WORKDIR}/${PN}" -c ${PN}.c" + apache-module_src_compile +} diff --git a/www-apache/mod_xml2enc/Manifest b/www-apache/mod_xml2enc/Manifest new file mode 100644 index 0000000..971ad6b --- /dev/null +++ b/www-apache/mod_xml2enc/Manifest @@ -0,0 +1,3 @@ +DIST mod_xml2enc.c 22380 RMD160 d78ab04ba97c2bb2876578d2d9d536e2c178f6dc SHA1 7ccfeec7dda6664089a22940a71efe8b0c888a80 SHA256 54d2d82c54f60e73eaddb69c00d2fd7be1786c449d5c7bbe045b30e56d19ba24 +DIST mod_xml2enc.h 1479 RMD160 64a475dfa6d6ec5223383350d8bbbfe2d7767873 SHA1 93a015ffb68508be754505cd8cebcd6ecd2bdb11 SHA256 3a4106a2de484812b6c98aa0845333be83e5f659eebe37678986b8829ee3d4a9 +EBUILD mod_xml2enc-9999.ebuild 974 RMD160 1d6f2d2dfc5fa180d553d38364a3953437657317 SHA1 7c56d9e78af45f65374cdbec1e4230ec63cb558a SHA256 6d569760d042aa9f0aa9a894ef1e9dd99631e2b4a2dcd5f101494698284ffdb3 diff --git a/www-apache/mod_xml2enc/mod_xml2enc-9999.ebuild b/www-apache/mod_xml2enc/mod_xml2enc-9999.ebuild new file mode 100644 index 0000000..7bd25a4 --- /dev/null +++ b/www-apache/mod_xml2enc/mod_xml2enc-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_proxy_html/mod_proxy_html-3.0.1.ebuild,v 1.1 2009/09/17 08:52:29 hollow Exp $ + +inherit apache-module + +DESCRIPTION="An Apache2 module to provide libxml2 encoding" +HOMEPAGE="http://apache.webthing.com/mod_xml2enc/" +SRC_URI="http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h + http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c" +RESTRICT="mirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/bzip2 + dev-libs/libxml2" +RDEPEND="${DEPEND}" + +#APACHE2_MOD_CONF="27_${PN}" +#APACHE2_MOD_DEFINE="XML2ENC" + +need_apache2 + +S="${WORKDIR}"/${PN} + +src_unpack() { + mkdir "${WORKDIR}"/${PN} + cp "${DISTDIR}/mod_xml2enc.h" "${WORKDIR}"/${PN} + cp "${DISTDIR}/mod_xml2enc.c" "${WORKDIR}"/${PN} +} + +src_compile() { + APXS2_ARGS="$(xml2-config --cflags) -c ${PN}.c" + apache-module_src_compile +}