Move.
authorLuca Longinotti <chtekk@gentoo.org>
Mon, 15 Jan 2007 20:28:53 +0000 (20:28 +0000)
committerLuca Longinotti <chtekk@gentoo.org>
Mon, 15 Jan 2007 20:28:53 +0000 (20:28 +0000)
Package-Manager: portage-2.1.2_rc4-r8

www-apps/mod_survey/ChangeLog [new file with mode: 0644]
www-apps/mod_survey/Manifest [new file with mode: 0644]
www-apps/mod_survey/files/digest-mod_survey-3.2.4 [new file with mode: 0644]
www-apps/mod_survey/files/language-list.txt [new file with mode: 0644]
www-apps/mod_survey/files/postinstall-en.txt [new file with mode: 0644]
www-apps/mod_survey/files/reconfig [new file with mode: 0644]
www-apps/mod_survey/metadata.xml [new file with mode: 0644]
www-apps/mod_survey/mod_survey-3.2.4.ebuild [new file with mode: 0644]

diff --git a/www-apps/mod_survey/ChangeLog b/www-apps/mod_survey/ChangeLog
new file mode 100644 (file)
index 0000000..8f5e37d
--- /dev/null
@@ -0,0 +1,82 @@
+# ChangeLog for www-apps/mod_survey
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mod_survey/ChangeLog,v 1.1 2007/01/15 20:28:53 chtekk Exp $
+
+  15 Jan 2007; Luca Longinotti <chtekk@gentoo.org> +files/language-list.txt,
+  +files/postinstall-en.txt, +files/reconfig, +metadata.xml,
+  +mod_survey-3.2.4.ebuild:
+  Move from www-apache/ to www-apps/ category.
+
+  11 Dec 2006; Renat Lumpau <rl03@gentoo.org> mod_survey-3.2.4.ebuild:
+  Bug #157664.
+
+  09 Jul 2006; Renat Lumpau <rl03@gentoo.org> mod_survey-3.2.4.ebuild:
+  einfo->elog
+
+*mod_survey-3.2.4 (01 Jul 2006)
+
+  01 Jul 2006; Renat Lumpau <rl03@gentoo.org> -mod_survey-3.2.3-r2.ebuild,
+  +mod_survey-3.2.4.ebuild:
+  Version bump (bug #138576).
+
+*mod_survey-3.2.3-r2 (31 Jan 2006)
+
+  31 Jan 2006; Renat Lumpau <rl03@gentoo.org> files/reconfig,
+  -mod_survey-3.2.3-r1.ebuild, +mod_survey-3.2.3-r2.ebuild:
+  Fixed #121041 for real.
+
+*mod_survey-3.2.3-r1 (31 Jan 2006)
+
+  31 Jan 2006; Renat Lumpau <rl03@gentoo.org> +files/language-list.txt,
+  files/postinstall-en.txt, +files/reconfig, -mod_survey-3.2.3.ebuild,
+  +mod_survey-3.2.3-r1.ebuild:
+  Fixes for bug #121041, limited support for LINGUAS
+
+*mod_survey-3.2.3 (23 Jan 2006)
+
+  23 Jan 2006; Renat Lumpau <rl03@gentoo.org> -mod_survey-3.2.3_pre3.ebuild,
+  +mod_survey-3.2.3.ebuild:
+  Version bump wrt bug #120043.
+
+*mod_survey-3.2.3_pre3 (19 Jan 2006)
+
+  19 Jan 2006; Renat Lumpau <rl03@gentoo.org> -mod_survey-3.2.3_pre2.ebuild,
+  -mod_survey-3.2.3_pre2-r1.ebuild, +mod_survey-3.2.3_pre3.ebuild:
+  Version bump, removed old versions
+
+*mod_survey-3.2.3_pre2-r1 (16 Jan 2006)
+
+  16 Jan 2006; Renat Lumpau <rl03@gentoo.org> files/postinstall-en.txt,
+  +mod_survey-3.2.3_pre2-r1.ebuild:
+  Fixes for bug #119193.
+
+*mod_survey-3.2.3_pre2 (07 Jan 2006)
+
+  07 Jan 2006; Renat Lumpau <rl03@gentoo.org> files/postinstall-en.txt,
+  -files/reconfig, metadata.xml, -mod_survey-3.2.0.ebuild,
+  +mod_survey-3.2.3_pre2.ebuild:
+  Version bump and general cleanup per bug #75037.
+
+  24 May 2005; Michael Cummings <mcummings@gentoo.org>
+  mod_survey-3.2.0.ebuild:
+  dev-perl/CGI => perl-core/CGI
+
+  09 May 2005; Elfyn McBratney <beu@gentoo.org> mod_survey-3.2.0.ebuild:
+  dev-perl/mod_perl -> www-apache/mod_perl
+
+  30 Nov 2004; Sven Wegener <swegener@gentoo.org> mod_survey-3.2.0.ebuild:
+  Fixed invalid atoms in *DEPEND.
+
+  12 Sep 2004; Daniel Ahlberg <aliz@gentoo.org> mod_survey-3.2.0.ebuild:
+  Added amd64 keyword, closing #61252.
+
+  30 Aug 2004; David Holm <dholm@gentoo.org> mod_survey-3.2.0.ebuild:
+  Added to ~ppc.
+
+*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-apps/mod_survey/Manifest b/www-apps/mod_survey/Manifest
new file mode 100644 (file)
index 0000000..8add762
--- /dev/null
@@ -0,0 +1,29 @@
+AUX language-list.txt 15 RMD160 75371acf87bd4a0878d4537edb0a8c5b5e3f6163 SHA1 2ee552c72259773dc86ae739f466fbc8fe9a1179 SHA256 8390c1de74985e4afe829a5d872796e83ce732503a789a74b2fd22e345facffa
+MD5 93b4750ff04770f08971e73b328c3486 files/language-list.txt 15
+RMD160 75371acf87bd4a0878d4537edb0a8c5b5e3f6163 files/language-list.txt 15
+SHA256 8390c1de74985e4afe829a5d872796e83ce732503a789a74b2fd22e345facffa files/language-list.txt 15
+AUX postinstall-en.txt 158 RMD160 768b75129232255af63e41edc310ae5f551223d2 SHA1 788951b68461fda482114ccab220ea2f8ff6bbae SHA256 d879718ca7eafb8b61f86f00d2f9360be231e27f4d762688b371d5d113697c4a
+MD5 e844b8372b46feedac36c6b5141c3696 files/postinstall-en.txt 158
+RMD160 768b75129232255af63e41edc310ae5f551223d2 files/postinstall-en.txt 158
+SHA256 d879718ca7eafb8b61f86f00d2f9360be231e27f4d762688b371d5d113697c4a files/postinstall-en.txt 158
+AUX reconfig 304 RMD160 d86461a6aa2b23d933099336c7f95be09f04170b SHA1 3ba22fc2321e60e6c895a45a043113e0db7b142c SHA256 40f8ddfd701c7be72dbe0346fe57484f39b9cd65c8d3de18b5ceabb57cd12216
+MD5 8d92b174d7809f56199ddc42c0e05b3a files/reconfig 304
+RMD160 d86461a6aa2b23d933099336c7f95be09f04170b files/reconfig 304
+SHA256 40f8ddfd701c7be72dbe0346fe57484f39b9cd65c8d3de18b5ceabb57cd12216 files/reconfig 304
+DIST modsurvey-3.2.4.tgz 496604 RMD160 46027f08ddcb581dceb52121c1c37b177d6fde24 SHA1 23b93e84da6aa63ef430bc278cbaa950ab939305 SHA256 6130501fb6f39817fe842a613f9b2770519c59fed060b16447f1d75345aa14af
+DIST modsurvey-docs-3.2.4.tgz 678356 RMD160 507b89416cc1f39cc19d90c3f795191c8ca7a4b6 SHA1 dd85990bcdc4cde6afe7e91269b05471028653ba SHA256 53c0e0d4335ded221c30fa52c4202793b86aef370d7b92341fb4fcaac12c1fd6
+EBUILD mod_survey-3.2.4.ebuild 3125 RMD160 c903d68b27917b1a8187f4ec8aabbb8b0e77a778 SHA1 7098a031bd572fb05e3a13aa9542e331c41c61c8 SHA256 c80a89eff085176e0e3e050d7fe87cdc0da6a572368ebc76a276107a9521bb2d
+MD5 80eebcead3a75e19249bd092ce5357bf mod_survey-3.2.4.ebuild 3125
+RMD160 c903d68b27917b1a8187f4ec8aabbb8b0e77a778 mod_survey-3.2.4.ebuild 3125
+SHA256 c80a89eff085176e0e3e050d7fe87cdc0da6a572368ebc76a276107a9521bb2d mod_survey-3.2.4.ebuild 3125
+MISC ChangeLog 2820 RMD160 e1af427d769b3060d3af05bd439a6f0a1ad17ea3 SHA1 3ce42ae098951a29c79c873e739a3ee8e304e2e7 SHA256 94238116721ae73c848413dc7201b1e81d97f774f54f1d14dc1cfb5c8014d499
+MD5 03d51cdeea062596bec48d90737aaca1 ChangeLog 2820
+RMD160 e1af427d769b3060d3af05bd439a6f0a1ad17ea3 ChangeLog 2820
+SHA256 94238116721ae73c848413dc7201b1e81d97f774f54f1d14dc1cfb5c8014d499 ChangeLog 2820
+MISC metadata.xml 162 RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 SHA1 671b30dafbea01228c8bb606af451a0795922840 SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0
+MD5 7b6e6cf3eaafa0480ab619fadfb37e2e metadata.xml 162
+RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 metadata.xml 162
+SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0 metadata.xml 162
+MD5 c7b28253ae198655ea0bcb70403a6e7f files/digest-mod_survey-3.2.4 491
+RMD160 2e4d26358fc1ab489db779b2f794069b54d63ee5 files/digest-mod_survey-3.2.4 491
+SHA256 1550467b09ad4c85ba4d5080eec26eae0d8b02239716805a07251d5da83a8405 files/digest-mod_survey-3.2.4 491
diff --git a/www-apps/mod_survey/files/digest-mod_survey-3.2.4 b/www-apps/mod_survey/files/digest-mod_survey-3.2.4
new file mode 100644 (file)
index 0000000..37a4d21
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 1b060199cc6ffb4d3b4785410e7fa825 modsurvey-3.2.4.tgz 496604
+RMD160 46027f08ddcb581dceb52121c1c37b177d6fde24 modsurvey-3.2.4.tgz 496604
+SHA256 6130501fb6f39817fe842a613f9b2770519c59fed060b16447f1d75345aa14af modsurvey-3.2.4.tgz 496604
+MD5 22539cf7493c5d362d2f7a2384b9a641 modsurvey-docs-3.2.4.tgz 678356
+RMD160 507b89416cc1f39cc19d90c3f795191c8ca7a4b6 modsurvey-docs-3.2.4.tgz 678356
+SHA256 53c0e0d4335ded221c30fa52c4202793b86aef370d7b92341fb4fcaac12c1fd6 modsurvey-docs-3.2.4.tgz 678356
diff --git a/www-apps/mod_survey/files/language-list.txt b/www-apps/mod_survey/files/language-list.txt
new file mode 100644 (file)
index 0000000..d81291d
--- /dev/null
@@ -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 (file)
index 0000000..5fbe29c
--- /dev/null
@@ -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 (file)
index 0000000..15be772
--- /dev/null
@@ -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 (file)
index 0000000..6632069
--- /dev/null
@@ -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.4.ebuild b/www-apps/mod_survey/mod_survey-3.2.4.ebuild
new file mode 100644 (file)
index 0000000..34ee7dd
--- /dev/null
@@ -0,0 +1,101 @@
+# Copyright 1999-2007 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.4.ebuild,v 1.1 2007/01/15 20:28:53 chtekk Exp $
+
+inherit webapp
+
+WEBAPP_MANUAL_SLOT="yes"
+SLOT="0"
+
+DESCRIPTION="XML-defined web questionnaires as a plug-in module using Apache."
+HOMEPAGE="http://www.modsurvey.org"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="apache2 doc mysql nls postgres"
+MY_PN=${PN/_/}
+MY_PV=${PV/_/-}
+S=${WORKDIR}/${PN}
+SRC_URI="http://www.modsurvey.org/download/tarballs/${MY_PN}-${MY_PV}.tgz
+doc? ( http://www.modsurvey.org/download/tarballs/${MY_PN}-docs-${MY_PV}.tgz )"
+
+DEPEND=">=dev-lang/perl-5.6.1"
+RDEPEND="${DEPEND}
+               apache2? ( >=net-www/apache-2 >=www-apache/mod_perl-1.99 )
+               !apache2? ( >=net-www/apache-1 <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"
+LICENSE="GPL-2"
+
+pkg_setup() {
+       webapp_pkg_setup
+
+       # stolen from app-admin/webalizer
+       # USE=nls has no real meaning if LINGUAS isn't set
+       if use nls && [[ -z "${LINGUAS}" ]] ; then
+               ewarn "you must set LINGUAS in /etc/make.conf"
+               ewarn "if you want to USE=nls"
+               die "please either set LINGUAS or do not use nls"
+       fi
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       rm -f docs/LICENSE.txt
+       sed -i "s|/usr/local/mod_survey/|${D}/usr/lib/mod_survey/|g" installer.pl
+       use doc && unpack ${MY_PN}-docs-${PV}.tgz
+
+       # unfortunatly, this program only allows for one lang, so only the first
+       # entry in LINGUAS is used
+       if use nls ; then
+               local locallang
+               if ! grep -q ${LINGUAS:0:2} ${FILESDIR}/language-list.txt ; then
+                       ewarn "Language ${LINGUAS:0:2} is not supported, using English"
+               else
+                       elog "Using language ${LINGUAS:0:2}"
+                       locallang="$(grep ^${LINGUAS:0:2} ${FILESDIR}/language-list.txt)"
+                       sed "s|\$lang = \"en\"|\$lang = \"${locallang}\"|" -i installer.pl
+               fi
+       fi
+
+       if ! use apache2 ; then
+               sed "s|\$isa2 = \"Off\"|\$isa2 = \"On\"|" -i installer.pl
+       fi
+}
+
+src_install() {
+       webapp_src_preinst
+
+       dodir /usr/lib/mod_survey
+       dodir /var/lib/mod_survey/data
+       dodir ${MY_HOSTROOTDIR}/${PN}
+
+       dodoc README.txt docs/*
+
+       perl installer.pl < /dev/null > /dev/null 2>&1
+       dosed /usr/lib/mod_survey/survey.conf
+       sed -i "s|/usr/lib/mod_survey/data/|/var/lib/mod_survey/data/|" ${D}/usr/lib/mod_survey/survey.conf
+       mv ${D}/usr/lib/mod_survey/survey.conf ${D}/${MY_HOSTROOTDIR}/${PN}
+
+       rm -rf ${D}/usr/lib/mod_survey/webroot ${D}/usr/lib/mod_survey/data
+       cp -R webroot/* ${D}/${MY_HTDOCSDIR}
+
+       webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+       webapp_hook_script ${FILESDIR}/reconfig
+       webapp_src_install
+       fowners apache:apache /var/lib/mod_survey/data
+}
+
+pkg_postinst(){
+       if [[ ${#LINGUAS} -gt 2 ]] && use nls ; then
+               ewarn
+               ewarn "You have more than one language in LINGUAS"
+               ewarn "Due to the limitations of this package, it was built"
+               ewarn "only with ${LINGUAS:0:2} support. If this is not what"
+               ewarn "you intended, please place the language you desire"
+               ewarn "_first_ in the list of LINGUAS in /etc/make.conf"
+               ewarn
+       fi
+       webapp_pkg_postinst
+}