summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-03-04 09:40:27 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-03-04 09:40:27 +0000
commit35e0932e5d02f22840d65ba7c681192e233c14bd (patch)
treef5e0a4da605bb5a9efb31f29ae322a781734c73e /www-apps/mod_survey
parentDropped old versions (including patches). (diff)
downloadgentoo-2-35e0932e5d02f22840d65ba7c681192e233c14bd.tar.gz
gentoo-2-35e0932e5d02f22840d65ba7c681192e233c14bd.tar.bz2
gentoo-2-35e0932e5d02f22840d65ba7c681192e233c14bd.zip
version bump wrt #211985
(Portage version: 2.1.4.4)
Diffstat (limited to 'www-apps/mod_survey')
-rw-r--r--www-apps/mod_survey/ChangeLog8
-rw-r--r--www-apps/mod_survey/files/98_mod_survey.conf115
-rw-r--r--www-apps/mod_survey/mod_survey-3.2.5.ebuild103
3 files changed, 225 insertions, 1 deletions
diff --git a/www-apps/mod_survey/ChangeLog b/www-apps/mod_survey/ChangeLog
index a6dac7ed4fe3..2400dc4fbdd7 100644
--- a/www-apps/mod_survey/ChangeLog
+++ b/www-apps/mod_survey/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-apps/mod_survey
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mod_survey/ChangeLog,v 1.5 2008/02/04 09:05:30 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mod_survey/ChangeLog,v 1.6 2008/03/04 09:40:26 hollow Exp $
+
+*mod_survey-3.2.5 (04 Mar 2008)
+
+ 04 Mar 2008; Benedikt Böhm <hollow@gentoo.org> +files/98_mod_survey.conf,
+ +mod_survey-3.2.5.ebuild:
+ version bump wrt #211985
04 Feb 2008; Benedikt Böhm <hollow@gentoo.org> mod_survey-3.2.4.ebuild:
readd config file
diff --git a/www-apps/mod_survey/files/98_mod_survey.conf b/www-apps/mod_survey/files/98_mod_survey.conf
new file mode 100644
index 000000000000..1791c5a88f8e
--- /dev/null
+++ b/www-apps/mod_survey/files/98_mod_survey.conf
@@ -0,0 +1,115 @@
+# -----------------------------------------
+# Config new for 32x
+# -----------------------------------------
+
+PerlSetEnv _SURVEY_ALLOWED_EXPORTS "html,spss,sql,delim,fixed,xml,r"
+PerlSetEnv _SURVEY_OPTIONAL_EXPORTS "browse,desc,freq,gfreq"
+PerlSetEnv _SURVEY_EXPORT_html "Survey::Export::HtmlTables"
+PerlSetEnv _SURVEY_EXPORT_spss "Survey::Export::SPSS"
+PerlSetEnv _SURVEY_EXPORT_xml "Survey::Export::XML"
+PerlSetEnv _SURVEY_EXPORT_sql "Survey::Export::SQL"
+PerlSetEnv _SURVEY_EXPORT_delim "Survey::Export::DelimitedFields"
+PerlSetEnv _SURVEY_EXPORT_fixed "Survey::Export::FixedColumns"
+PerlSetEnv _SURVEY_EXPORT_r "Survey::Export::R"
+PerlSetEnv _SURVEY_EXPORT_browse "Survey::Export::CaseBrowser"
+PerlSetEnv _SURVEY_EXPORT_desc "Survey::Export::Descriptive"
+PerlSetEnv _SURVEY_EXPORT_freq "Survey::Export::Frequency"
+PerlSetEnv _SURVEY_EXPORT_gfreq "Survey::Export::GroupedFrequency"
+
+# -----------------------------------------
+# Mail settings
+# -----------------------------------------
+
+PerlSetEnv _SURVEY_SMTP_HOST "127.0.0.1"
+PerlSetEnv _SURVEY_MAIL_ADMIN "root@localhost"
+
+# -----------------------------------------
+# Set global survey configuration variables
+# -----------------------------------------
+
+# Directory where caches, autodata files and keys should be stored
+PerlSetEnv _SURVEY_SYSBASE "/var/lib/mod_survey/"
+
+# Whether parser is allowed to write and read cache at all (overrides
+# ALLOWCACHE in survey docs if set to 0)
+PerlSetEnv _SURVEY_PARSERCACHE 1
+
+# Whether display module is allowed to write and read html output cache
+# (overrides ALLOWCACHE in survey docs if set to 0)
+PerlSetEnv _SURVEY_DISPLAYCACHE 1
+
+# Where mod_survey is installed
+PerlSetEnv _SURVEY_HOME "/usr/lib/mod_survey/"
+
+# Where mod_survey web root is
+PerlSetEnv _SURVEY_ROOT "/var/www/mod_survey/"
+
+# Which root alias to use for doc links and similar
+PerlSetEnv _SURVEY_ROOT_ALIAS "/mod_survey/"
+
+# Whether we have installed on a sensible (unixoid) system
+PerlSetEnv _SURVEY_SENSIBLE 1
+
+# -------------------------
+# Security related settings
+# -------------------------
+
+# If you plan to use DBI tables, you must install DBI 1.13 or later and
+# set the below to 1. Even if you have DBI installed, you may want to
+# choose to not enable it in Mod_Survey for security reasons.
+PerlSetEnv _SURVEY_USEDBI 1
+
+# Whether is is allowed to let system automatically handle data submission
+# It would a stupid idea to change this unless you know what you are doing.
+PerlSetEnv _SURVEY_ALLOWAUTO 1
+
+# Whether submit should protest at illegal characters and ask the user
+# to go back and correct these. This will be ignored if _SURVEY_USENEWAUTo
+PerlSetEnv _SURVEY_PROTESTILLEGAL 1
+
+# Whether to use safe delimiters in the AutoData file. This makes things
+# safer, but also makes the AutoData file partially binary. Most users
+# want to enable this.
+PerlSetEnv _SURVEY_USENEWAUTO 1
+
+# -------------------------------------
+# Internationalization related settings
+# -------------------------------------
+
+# Where to find language files
+PerlSetEnv _SURVEY_LANG_DIRECTORY "/usr/lib/mod_survey/Lang/"
+
+# Which language to use
+PerlSetEnv _SURVEY_LANG "en"
+
+# ---------------------------------------------------
+# Startup check and addition of survey folder to @INC
+# ---------------------------------------------------
+
+PerlRequire "/usr/lib/mod_survey/startup.pl"
+
+# --------------------------------------------------------------------
+# Add type for survey files. If you change this, please change pattern
+# for the files tag below too
+# --------------------------------------------------------------------
+
+AddType text/html .survey
+
+# ---------------------------------------------------------------
+# Match all files containing ".survey" (tail "*" is necessary for
+# admin part). Enclosure in Directory necessary to avoid clash with
+# mod_proxy.
+# ---------------------------------------------------------------
+
+<Directory "/">
+ <Files *.survey*>
+ SetHandler perl-script
+ PerlHandler Survey::Handler
+ PerlSendHeader "Off"
+ AuthType Basic
+ AuthName Mod_Survey
+ PerlAuthenHandler Apache::AuthAny
+ </Files>
+</Directory>
+
+# vim: ts=4 filetype=apache
diff --git a/www-apps/mod_survey/mod_survey-3.2.5.ebuild b/www-apps/mod_survey/mod_survey-3.2.5.ebuild
new file mode 100644
index 000000000000..0f54f15b0bec
--- /dev/null
+++ b/www-apps/mod_survey/mod_survey-3.2.5.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mod_survey/mod_survey-3.2.5.ebuild,v 1.1 2008/03/04 09:40:26 hollow Exp $
+
+inherit depend.apache webapp
+
+WEBAPP_MANUAL_SLOT="yes"
+SLOT="0"
+
+MY_PN=${PN/_/}
+
+DESCRIPTION="XML-defined web questionnaires as a plug-in module using Apache."
+HOMEPAGE="http://www.modsurvey.org"
+SRC_URI="http://www.modsurvey.org/download/tarballs/${MY_PN}-${PV}.tgz
+ doc? ( http://www.modsurvey.org/download/tarballs/${MY_PN}-docs-${PV}.tgz )"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc mysql nls postgres"
+
+LANGS="en de fr it sv"
+for i in ${LANGS}; do
+ IUSE="${IUSE} linguas_${i}"
+done
+
+DEPEND=">=dev-lang/perl-5.6.1"
+RDEPEND="${DEPEND}
+ >=www-apache/mod_perl-1.99
+ postgres? ( >=dev-perl/DBI-1.38 dev-perl/DBD-Pg )
+ mysql? ( >=dev-perl/DBI-1.38 dev-perl/DBD-mysql )
+ >=virtual/perl-CGI-3.0.0"
+
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+pkg_setup() {
+ webapp_pkg_setup
+ has_apache
+
+ if use nls; then
+ for i in ${LINGUAS}; do
+ if has linguas_${i} ${IUSE}; then
+ if use linguas_${i}; then
+ locallang="${i}"
+ ewarn "${i} from the LINGUAS variable has been set as the"
+ ewarn "default language. This can be overriden on a"
+ ewarn "per-survey basis, or changed in"
+ ewarn "/etc/apache2/modules.d/98_mod_survey.conf"
+ ewarn
+ break
+ fi
+ else
+ einfo "LINGUAS=${i} is not supported by ${P}"
+ shift
+ fi
+ done
+ fi
+
+ if [[ -z ${locallang} ]]; then
+ [[ -n "${LINGUAS}" ]] && ewarn "None of ${LINGUAS} supported."
+ use nls && ewarn "Will use English as default language."
+ locallang="en"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e "s|\$lang = \"en\"|\$lang = \"${locallang}\"|" \
+ -e "s|/usr/local/mod_survey/|${D}/usr/lib/mod_survey/|g" \
+ installer.pl
+
+ rm -f docs/LICENSE.txt
+ use doc && unpack ${MY_PN}-docs-${PV}.tgz
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodir /usr/lib/mod_survey
+ dodir /var/lib/mod_survey
+
+ dodoc README.txt docs/*
+ rm -rf README.txt docs/
+
+ insinto /usr/share/doc/${PF}
+ doins -r webroot/examples*
+ rm -rf webroot/examples*
+
+ perl installer.pl < /dev/null > /dev/null 2>&1
+ rm -rf "${D}"/usr/lib/mod_survey/{survey.conf,data,docs,webroot}
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r webroot/{main.css,system}
+
+ insinto "${APACHE_MODULES_CONFDIR}"
+ doins "${FILESDIR}"/98_${PN}.conf
+
+ fowners apache:apache /var/lib/mod_survey
+
+ webapp_src_install
+}