summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-apps/mod_survey
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-apps/mod_survey')
-rw-r--r--www-apps/mod_survey/Manifest2
-rw-r--r--www-apps/mod_survey/files/98_mod_survey.conf115
-rw-r--r--www-apps/mod_survey/files/language-list.txt5
-rw-r--r--www-apps/mod_survey/files/postinstall-en.txt4
-rw-r--r--www-apps/mod_survey/files/reconfig17
-rw-r--r--www-apps/mod_survey/metadata.xml5
-rw-r--r--www-apps/mod_survey/mod_survey-3.2.5.ebuild103
7 files changed, 251 insertions, 0 deletions
diff --git a/www-apps/mod_survey/Manifest b/www-apps/mod_survey/Manifest
new file mode 100644
index 000000000000..b63844e05bb9
--- /dev/null
+++ b/www-apps/mod_survey/Manifest
@@ -0,0 +1,2 @@
+DIST modsurvey-3.2.5.tgz 508271 SHA256 5ad6f0de509e09a6842e3a56372f40122800397befed10dd78b37c4c0676e47b
+DIST modsurvey-docs-3.2.5.tgz 678356 SHA256 53c0e0d4335ded221c30fa52c4202793b86aef370d7b92341fb4fcaac12c1fd6
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/files/language-list.txt b/www-apps/mod_survey/files/language-list.txt
new file mode 100644
index 000000000000..d81291db4473
--- /dev/null
+++ b/www-apps/mod_survey/files/language-list.txt
@@ -0,0 +1,5 @@
+en
+de
+fr
+it
+sw
diff --git a/www-apps/mod_survey/files/postinstall-en.txt b/www-apps/mod_survey/files/postinstall-en.txt
new file mode 100644
index 000000000000..5fbe29c5a59c
--- /dev/null
+++ b/www-apps/mod_survey/files/postinstall-en.txt
@@ -0,0 +1,4 @@
+0. Copy ${VHOST_ROOT}/${PN}/survey.conf to your Apache modules directory.
+
+1. Restart Apache and test your installation:
+ http://${VHOST_HOSTNAME}/mod_survey
diff --git a/www-apps/mod_survey/files/reconfig b/www-apps/mod_survey/files/reconfig
new file mode 100644
index 000000000000..15be772473f0
--- /dev/null
+++ b/www-apps/mod_survey/files/reconfig
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+die() {
+ echo "#####"
+ echo $1
+ echo "#####"
+ exit 1
+}
+
+if [ $1 = "install" ]; then
+ sed -e "s|/usr/lib/mod_survey/webroot/|${MY_INSTALLDIR}/|g
+ s|\"/mod_survey/\"|\"${VHOST_APPDIR}/\"|
+ s|Alias|#Alias|" -i ${VHOST_ROOT}/${PN}/survey.conf || die
+
+elif [ $1 = "clean" ]; then
+ echo $1
+fi
diff --git a/www-apps/mod_survey/metadata.xml b/www-apps/mod_survey/metadata.xml
new file mode 100644
index 000000000000..6632069b5aff
--- /dev/null
+++ b/www-apps/mod_survey/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>web-apps</herd>
+</pkgmetadata>
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..10f5cf90df91
--- /dev/null
+++ b/www-apps/mod_survey/mod_survey-3.2.5.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 )
+ >=dev-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 "${APACHE_MODULES_CONFDIR}/98_${PN}.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
+}