summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-apache/mod_survey/ChangeLog11
-rw-r--r--www-apache/mod_survey/Manifest6
-rw-r--r--www-apache/mod_survey/files/digest-mod_survey-3.2.01
-rw-r--r--www-apache/mod_survey/files/postinstall-en.txt9
-rw-r--r--www-apache/mod_survey/files/reconfig8
-rw-r--r--www-apache/mod_survey/metadata.xml8
-rw-r--r--www-apache/mod_survey/mod_survey-3.2.0.ebuild63
7 files changed, 106 insertions, 0 deletions
diff --git a/www-apache/mod_survey/ChangeLog b/www-apache/mod_survey/ChangeLog
new file mode 100644
index 000000000000..5419d438d63b
--- /dev/null
+++ b/www-apache/mod_survey/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apache/mod_survey
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_survey/ChangeLog,v 1.1 2004/08/18 21:34:40 rl03 Exp $
+
+*mod_survey-3.2.0 (18 Aug 2004)
+
+ 18 Aug 2004; Renat Lumpau <rl03@gentoo.org> +files/postinstall-en.txt,
+ +files/reconfig, +mod_survey-3.2.0.ebuild:
+ Initial ebuild (bug #20446). Thanks to Joel Palmius <joel.palmius@mh.se> for
+ his help.
+
diff --git a/www-apache/mod_survey/Manifest b/www-apache/mod_survey/Manifest
new file mode 100644
index 000000000000..32692851ae4c
--- /dev/null
+++ b/www-apache/mod_survey/Manifest
@@ -0,0 +1,6 @@
+MD5 d553838800641ee21014aa2d1e2ace26 mod_survey-3.2.0.ebuild 1884
+MD5 d333a143af7af9695582d381728bdfce ChangeLog 456
+MD5 701b2b1df0a5dd9b0d847b25699a0336 metadata.xml 219
+MD5 6e46d5897e70491662270bc3de8c0236 files/postinstall-en.txt 407
+MD5 14d833e6ab31ed6765dd0116b0576876 files/digest-mod_survey-3.2.0 67
+MD5 c778b2cb7c0d593c715c3be9020d4d24 files/reconfig 218
diff --git a/www-apache/mod_survey/files/digest-mod_survey-3.2.0 b/www-apache/mod_survey/files/digest-mod_survey-3.2.0
new file mode 100644
index 000000000000..05ffae87c433
--- /dev/null
+++ b/www-apache/mod_survey/files/digest-mod_survey-3.2.0
@@ -0,0 +1 @@
+MD5 70d11a7c7131e5e739f34f035a4145d8 modsurvey-3.2.0.tar.gz 403437
diff --git a/www-apache/mod_survey/files/postinstall-en.txt b/www-apache/mod_survey/files/postinstall-en.txt
new file mode 100644
index 000000000000..5b029265223b
--- /dev/null
+++ b/www-apache/mod_survey/files/postinstall-en.txt
@@ -0,0 +1,9 @@
+
+If you are using Apache 1, execute:
+# cp /usr/lib/mod_survey/survey.conf /etc/apache/conf/addon-modules/99_mod_survey.conf
+# echo "Include conf/addon-modules/99_mod_survey.conf" >> /etc/apache/conf/apache.conf
+
+If you are using Apache 2, execute:
+# cp /usr/lib/mod_survey/survey.conf /etc/apache2/conf/modules.d/99_mod_survey.conf
+
+Now restart Apache and test your installation: http://YOURHOST/mod_survey
diff --git a/www-apache/mod_survey/files/reconfig b/www-apache/mod_survey/files/reconfig
new file mode 100644
index 000000000000..fd53f2a2b155
--- /dev/null
+++ b/www-apache/mod_survey/files/reconfig
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ $1 = "start" -o $1 = "install" ]; then
+ sed -i "s|/usr/lib/mod_survey/webroot/|${VHOST_ROOT}/webroot/|g" /usr/lib/mod_survey/survey.conf
+ chown apache:apache /var/lib/mod_survey/data
+else
+ echo $1
+fi
diff --git a/www-apache/mod_survey/metadata.xml b/www-apache/mod_survey/metadata.xml
new file mode 100644
index 000000000000..a2cd936a1a78
--- /dev/null
+++ b/www-apache/mod_survey/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>apache</herd>
+<maintainer>
+ <email>rl03@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_survey/mod_survey-3.2.0.ebuild b/www-apache/mod_survey/mod_survey-3.2.0.ebuild
new file mode 100644
index 000000000000..429aad9b562b
--- /dev/null
+++ b/www-apache/mod_survey/mod_survey-3.2.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_survey/mod_survey-3.2.0.ebuild,v 1.1 2004/08/18 21:34:40 rl03 Exp $
+
+inherit webapp
+
+DESCRIPTION="XML-defined web questionnaires as a plug-in module for Apache"
+HOMEPAGE="http://gathering.itm.mh.se/modsurvey/"
+KEYWORDS="~x86"
+
+IUSE="apache2 postgres mysql"
+MY_P=${P/mod_survey/modsurvey}
+S=${WORKDIR}/${MY_P}
+SRC_URI="http://gathering.itm.mh.se/modsurvey/download/${MY_P}.tar.gz"
+
+DEPEND=">=dev-lang/perl-5.6.1"
+RDEPEND="${DEPEND}
+ apache2? ( >=net-www/apache-2 >=dev-perl/mod_perl-1.99 )
+ !apache2? ( >=net-www/apache-1 >=dev-perl/mod_perl-1.27 )
+ postgres? ( >=dev-perl/DBI-1.38 >=dev-perl/DBD-Pg )
+ mysql? ( >=dev-perl/DBI-1.38 >=dev-perl/DBD-mysql )
+ >=dev-perl/CGI-3.0.0"
+LICENSE="GPL-2"
+
+src_unpack() {
+ webapp_pkg_setup
+ unpack ${A}
+ cd ${S}
+ sed -i "s|/usr/local/mod_survey/|${D}/usr/lib/mod_survey/|g" installer.pl
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ webapp_src_preinst
+ dodir /usr/lib/mod_survey
+ dodir /var/lib/mod_survey/data
+
+ rm -f docs/LICENSE.txt
+ dodoc README.txt docs/*
+ rm -rf README.txt docs/
+
+ if use apache2; then
+ perl installer.pl < /dev/null > /dev/null 2>&1
+ dosed /usr/lib/mod_survey/survey.conf
+ else
+ echo -e "\n\n\n\n\n\n\nyes\n\n" > out
+ perl installer.pl < out > /dev/null 2>&1
+ rm -f out
+ dosed /usr/lib/mod_survey/survey.conf
+ fi
+ sed -i "s|\/usr\/lib\/mod_survey\/data\/|\/var\/lib\/mod_survey\/data\/|" ${D}/usr/lib/mod_survey/survey.conf
+
+ # install webroot using webapp.eclass
+ # webroot should not go into MY_HTDOCSDIR b/c that throws off Alias
+ rm -rf ${D}/usr/lib/mod_survey/webroot ${D}/usr/lib/mod_survey/data
+ cp -R webroot ${D}/${MY_HOSTROOTDIR}
+ webapp_hook_script ${FILESDIR}/reconfig
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+ webapp_src_install
+}