summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2002-11-28 20:37:34 +0000
committerDonny Davies <woodchip@gentoo.org>2002-11-28 20:37:34 +0000
commitdba47a6cb4d8dfee4f95ff193e255424aee00f83 (patch)
treef1a9ebb66ee9a3089b546db186d18ee9e111ed08 /net-www/mod_injection
parentfixo (diff)
downloadgentoo-2-dba47a6cb4d8dfee4f95ff193e255424aee00f83.tar.gz
gentoo-2-dba47a6cb4d8dfee4f95ff193e255424aee00f83.tar.bz2
gentoo-2-dba47a6cb4d8dfee4f95ff193e255424aee00f83.zip
new Apache2 mod
Diffstat (limited to 'net-www/mod_injection')
-rw-r--r--net-www/mod_injection/ChangeLog8
-rw-r--r--net-www/mod_injection/files/23_mod_injection.conf21
-rw-r--r--net-www/mod_injection/files/digest-mod_injection-0.3.01
-rw-r--r--net-www/mod_injection/files/mod_injection-0.3.0-register.patch18
-rw-r--r--net-www/mod_injection/mod_injection-0.3.0.ebuild36
5 files changed, 84 insertions, 0 deletions
diff --git a/net-www/mod_injection/ChangeLog b/net-www/mod_injection/ChangeLog
new file mode 100644
index 000000000000..4350b281c711
--- /dev/null
+++ b/net-www/mod_injection/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-www/mod_injection
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_injection/ChangeLog,v 1.1 2002/11/28 20:37:34 woodchip Exp $
+
+*mod_injection-0.3.0 (28 Nov 2002)
+
+ 28 Nov 2002; Donny Davies <woodchip@gentoo.org> :
+ Initial import; created by me.
diff --git a/net-www/mod_injection/files/23_mod_injection.conf b/net-www/mod_injection/files/23_mod_injection.conf
new file mode 100644
index 000000000000..b1d0dedb0ed5
--- /dev/null
+++ b/net-www/mod_injection/files/23_mod_injection.conf
@@ -0,0 +1,21 @@
+<IfDefine INJECTION>
+ <IfModule !mod_injection.c>
+ LoadModule injection_module extramodules/mod_injection.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_injection.c>
+
+ AddOutputFilter INJECTION .html
+
+<Location _REPLACE_ME_>
+
+ SetOutputFilter INJECTION
+ InjectString "<h1>Injected text from the config file...</h1>"
+# InjectTag InjectTagTitle
+# InjectAfter "<!-- replace_me -->"
+
+</Location>
+
+</IfModule>
+
diff --git a/net-www/mod_injection/files/digest-mod_injection-0.3.0 b/net-www/mod_injection/files/digest-mod_injection-0.3.0
new file mode 100644
index 000000000000..d0ea4bb44194
--- /dev/null
+++ b/net-www/mod_injection/files/digest-mod_injection-0.3.0
@@ -0,0 +1 @@
+MD5 cda7680792d3d9d61bfb1b2c0b826cd0 mod_injection-0.3.0.tar.gz 10386
diff --git a/net-www/mod_injection/files/mod_injection-0.3.0-register.patch b/net-www/mod_injection/files/mod_injection-0.3.0-register.patch
new file mode 100644
index 000000000000..2002bc18cd39
--- /dev/null
+++ b/net-www/mod_injection/files/mod_injection-0.3.0-register.patch
@@ -0,0 +1,18 @@
+--- mod_injection-0.3.0/src/mod_injection.c 2002-10-19 01:20:11.000000000 +0200
++++ mod_injection-0.3.0/src/mod_injection.c.oden 2002-10-28 14:33:57.000000000 +0100
+@@ -362,7 +362,15 @@
+ return ap_pass_brigade(f->next, bb);
+ }
+ /* ######################################################################## */
++static int injection_init_handler(apr_pool_t *p, apr_pool_t *plog,
++ apr_pool_t *ptemp, server_rec *s)
++{
++ ap_add_version_component(p, "mod_injection/0.3.0");
++ return OK;
++}
++/* ######################################################################## */
+ static void injection_register_hooks(apr_pool_t *p) {
++ ap_hook_post_config(injection_init_handler, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_register_output_filter(const_filter_name, injection_filter, NULL, AP_FTYPE_CONTENT_SET);
+ }
+ /* ######################################################################## */
diff --git a/net-www/mod_injection/mod_injection-0.3.0.ebuild b/net-www/mod_injection/mod_injection-0.3.0.ebuild
new file mode 100644
index 000000000000..1155d9ad4427
--- /dev/null
+++ b/net-www/mod_injection/mod_injection-0.3.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_injection/mod_injection-0.3.0.ebuild,v 1.1 2002/11/28 20:37:34 woodchip Exp $
+
+inherit eutils
+
+DESCRIPTION="An Apache2 filtering module"
+HOMEPAGE="http://pmade.org/pjones/software/mod_injection/"
+
+S=${WORKDIR}/${P}
+SRC_URI="http://pmade.org/pjones/software/${PN}/download/${P}.tar.gz"
+DEPEND="=net-www/apache-2*"
+LICENSE="Apache-1.1"
+KEYWORDS="~x86"
+IUSE=""
+SLOT="0"
+
+src_unpack() {
+ unpack ${A} || die; cd ${S} || die
+ epatch ${FILESDIR}/mod_injection-0.3.0-register.patch
+}
+
+src_compile() {
+ cp src/${PN}.c .
+ apxs2 -c ${PN}.c || die
+}
+
+src_install() {
+ exeinto /usr/lib/apache2-extramodules
+ doexe .libs/${PN}.so
+ insinto /etc/apache2/conf/modules.d
+ doins ${FILESDIR}/23_mod_injection.conf
+ dodoc ${FILESDIR}/23_mod_injection.conf
+ dodoc README INSTALL docs/CREDITS docs/manual.txt
+ cp -a docs/manual ${D}/usr/share/doc/${PF}
+}