commit:     fc56fa6acaaae023f814a22136514a8cad25a5aa
Author:     Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo 
<DOT> org>
AuthorDate: Sat Oct 17 00:48:19 2015 +0000
Commit:     Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Sat Oct 17 00:48:19 2015 +0000
URL:        https://gitweb.gentoo.org/dev/jmbsvicetto.git/commit/?id=fc56fa6a

[limesurvey] Add LimeSurvey to my overlay.

Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> 
gentoo.org>

 www-apps/limesurvey/Manifest               |  1 +
 www-apps/limesurvey/limesurvey-2.06.ebuild | 58 ++++++++++++++++++++++++++++++
 www-apps/limesurvey/metadata.xml           | 13 +++++++
 3 files changed, 72 insertions(+)

diff --git a/www-apps/limesurvey/Manifest b/www-apps/limesurvey/Manifest
new file mode 100644
index 0000000..87f08ec
--- /dev/null
+++ b/www-apps/limesurvey/Manifest
@@ -0,0 +1 @@
+DIST limesurvey-2.06.tar.gz 40991112 SHA256 
eb41dcac8fb2e019495411badb9a62cd445e7f35fb8be47d25950e8e37e83844 SHA512 
4044c369f60c3127997f5486740645b7f17e58ee6e41c27010c1a3a168c5f4e1e003924d1bc54848beb575bf6f8b752ef254fe4db9de53a06bbaaa29d28f0375
 WHIRLPOOL 
c16fca091ec54c0505c11dcce959d41c5a517e7fcb06a059d7dfbe5c82f3535653473556f2d0cbe37f0794daef2b8912132c414a029eed2350306ca6a5069260

diff --git a/www-apps/limesurvey/limesurvey-2.06.ebuild 
b/www-apps/limesurvey/limesurvey-2.06.ebuild
new file mode 100644
index 0000000..008d239
--- /dev/null
+++ b/www-apps/limesurvey/limesurvey-2.06.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit webapp
+
+MY_PN="LimeSurvey"
+MY_DATE="151016"
+MY_PV="${PV}_plus_${MY_DATE}"
+
+DESCRIPTION="LimeSurvey is a popular Free Open Source Software survey tool"
+HOMEPAGE="https://www.limesurvey.org/";
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${MY_P}.tar.gz -> 
${P}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="+gd ldap mssql mysql postgres zip"
+REQUIRED_USE="^^ ( mssql mysql postgres )"
+
+DEPEND="
+       app-admin/webapp-config
+"
+RDEPEND="
+       dev-lang/php[gd?,hash,ldap?,session,zip?,zlib]
+       mssql? ( dev-lang/php[mssql] )
+       mysql? ( dev-lang/php[mysqli] )
+       postgres? ( dev-lang/php[postgres] )
+"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+pkg_config () {
+
+       webapp_pkg_setup
+}
+
+src_install () {
+
+       webapp_src_preinst
+
+       einfo "Installing files"
+       insinto "${MY_HTDOCSDIR}"
+       doins -r .
+
+       webapp_src_install
+}
+
+pkg_preinst () {
+
+       fowners -R root:apache "${MY_HTDOCSDIR}"
+       fperms -R g-w,o-rwx "${MY_HTDOCSDIR}"
+
+       # Allow writing to the tmp, upload and application/config directories
+       for dir in tmp upload application/config ; do
+
+               fperms -R g+w "${MY_HTDOCSDIR}/${dir}"
+       done
+}

diff --git a/www-apps/limesurvey/metadata.xml b/www-apps/limesurvey/metadata.xml
new file mode 100644
index 0000000..e9b832d
--- /dev/null
+++ b/www-apps/limesurvey/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer>
+  <email>[email protected]</email>
+  <name>Jorge Manuel B. S. Vicetto</name>
+</maintainer>
+<use>
+  <flag name='gd'>Used for captchas and nice charts</flag>
+  <flag name='ldap'>Import tokens using LDAP</flag>
+  <flag name='zip'>Add zip support for template upload and resourcees 
import</flag>
+</use>
+</pkgmetadata>

Reply via email to