summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2002-11-28 20:49:57 +0000
committerDonny Davies <woodchip@gentoo.org>2002-11-28 20:49:57 +0000
commit9c2d314f0a5c52c640f4fb6a00b7bede2ab9efc6 (patch)
tree86c0ed6175968280fe0da73d6f70f5bb3dc755e6 /net-www/mod_roaming
parentnew Apache2 mod (diff)
downloadgentoo-2-9c2d314f0a5c52c640f4fb6a00b7bede2ab9efc6.tar.gz
gentoo-2-9c2d314f0a5c52c640f4fb6a00b7bede2ab9efc6.tar.bz2
gentoo-2-9c2d314f0a5c52c640f4fb6a00b7bede2ab9efc6.zip
new Apache2 mod
Diffstat (limited to 'net-www/mod_roaming')
-rw-r--r--net-www/mod_roaming/ChangeLog8
-rw-r--r--net-www/mod_roaming/files/18_mod_roaming.conf26
-rw-r--r--net-www/mod_roaming/files/digest-mod_roaming-2.0.01
-rw-r--r--net-www/mod_roaming/files/mod_roaming-register.patch22
-rw-r--r--net-www/mod_roaming/mod_roaming-2.0.0.ebuild39
5 files changed, 96 insertions, 0 deletions
diff --git a/net-www/mod_roaming/ChangeLog b/net-www/mod_roaming/ChangeLog
new file mode 100644
index 000000000000..4252887ffd56
--- /dev/null
+++ b/net-www/mod_roaming/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-www/mod_roaming
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_roaming/ChangeLog,v 1.1 2002/11/28 20:48:27 woodchip Exp $
+
+*mod_roaming-2.0.0 (28 Nov 2002)
+
+ 28 Nov 2002; Donny Davies <woodchip@gentoo.org> :
+ Initial import; created by me.
diff --git a/net-www/mod_roaming/files/18_mod_roaming.conf b/net-www/mod_roaming/files/18_mod_roaming.conf
new file mode 100644
index 000000000000..e494e00775e0
--- /dev/null
+++ b/net-www/mod_roaming/files/18_mod_roaming.conf
@@ -0,0 +1,26 @@
+<IfDefine ROAMING>
+ <IfModule !mod_roaming.c>
+ LoadModule roaming_module extramodules/mod_roaming.so
+ </IfModule>
+</IfDefine>
+
+<IfModule roaming_module.c>
+
+RoamingAlias /roaming /var/lib/mod_roaming
+
+<Location /roaming>
+
+ AuthUserFile /var/lib/mod_roaming/roaming-htpasswd
+ AuthType Basic
+ AuthName "Roaming Access"
+
+ <Limit GET PUT MOVE DELETE>
+
+ require valid-user
+
+ </Limit>
+
+</Location>
+
+</IfModule>
+
diff --git a/net-www/mod_roaming/files/digest-mod_roaming-2.0.0 b/net-www/mod_roaming/files/digest-mod_roaming-2.0.0
new file mode 100644
index 000000000000..571c47ecad4c
--- /dev/null
+++ b/net-www/mod_roaming/files/digest-mod_roaming-2.0.0
@@ -0,0 +1 @@
+MD5 ad2d720d7ffd08c4e7f2e6979795237e mod_roaming-2.0.0.tar.gz 9227
diff --git a/net-www/mod_roaming/files/mod_roaming-register.patch b/net-www/mod_roaming/files/mod_roaming-register.patch
new file mode 100644
index 000000000000..ef384c903e28
--- /dev/null
+++ b/net-www/mod_roaming/files/mod_roaming-register.patch
@@ -0,0 +1,22 @@
+--- mod_roaming.c.orig 2002-09-05 11:49:43.000000000 -0400
++++ mod_roaming.c 2002-09-05 11:51:00.000000000 -0400
+@@ -514,10 +514,19 @@
+ return OK;
+ }
+
++static int roaming_init_handler(apr_pool_t *p, apr_pool_t *plog,
++ apr_pool_t *ptemp, server_rec *s)
++{
++ ap_add_version_component(p, "mod_roaming/2.0.0");
++ return OK;
++}
++
++
+ /*
+ * Registers hooks at interesting points in the request handling process.
+ */
+ static void roaming_register_hooks(apr_pool_t *p) {
++ ap_hook_post_config(roaming_init_handler, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_hook_translate_name(roaming_translate_name, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_hook_handler(roaming_handler, NULL, NULL, APR_HOOK_MIDDLE);
+ }
diff --git a/net-www/mod_roaming/mod_roaming-2.0.0.ebuild b/net-www/mod_roaming/mod_roaming-2.0.0.ebuild
new file mode 100644
index 000000000000..ae42a665dd72
--- /dev/null
+++ b/net-www/mod_roaming/mod_roaming-2.0.0.ebuild
@@ -0,0 +1,39 @@
+# 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_roaming/mod_roaming-2.0.0.ebuild,v 1.1 2002/11/28 20:48:27 woodchip Exp $
+
+inherit eutils
+
+DESCRIPTION="Apache2 DSO enabling Netscape Communicator roaming profiles"
+HOMEPAGE="http://www.klomp.org/mod_roaming/"
+
+S=${WORKDIR}/${P}
+SRC_URI="http://www.klomp.org/${PN}/${P}.tar.gz"
+DEPEND="=net-www/apache-2*"
+LICENSE="BSD"
+KEYWORDS="~x86"
+IUSE=""
+SLOT="0"
+
+src_unpack() {
+ unpack ${A} || die; cd ${S} || die
+ epatch ${FILESDIR}/mod_roaming-register.patch
+}
+
+src_compile() {
+ apxs2 -c ${PN}.c || die
+}
+
+src_install() {
+ exeinto /usr/lib/apache2-extramodules
+ doexe .libs/${PN}.so
+ insinto /etc/apache2/conf/modules.d
+ doins ${FILESDIR}/18_mod_roaming.conf
+ dodoc ${FILESDIR}/18_mod_roaming.conf
+ dodoc CHANGES INSTALL LICENSE README
+}
+
+pkg_postinst() {
+ #empty
+ install -d -m 0755 -o apache -g apache ${ROOT}/var/lib/mod_roaming
+}