From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/jmbsvicetto:master commit in: www-apps/horde/, eclass/
Date: Mon, 30 Jan 2012 11:57:04 +0000 (UTC) [thread overview]
Message-ID: <cc5a9f50fce5e13bfa6676ad4fbc3890833c93ef.jmbsvicetto@gentoo> (raw)
commit: cc5a9f50fce5e13bfa6676ad4fbc3890833c93ef
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 30 12:09:27 2012 +0000
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Mon Jan 30 12:09:27 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=commit;h=cc5a9f50
Initial work on horde-4.
---
eclass/horde-v2.eclass | 165 ++++++++++++++++++++++++++++++++++++
www-apps/horde/Manifest | 2 +
www-apps/horde/horde-4.0.13.ebuild | 36 ++++++++
3 files changed, 203 insertions(+), 0 deletions(-)
diff --git a/eclass/horde-v2.eclass b/eclass/horde-v2.eclass
new file mode 100644
index 0000000..653369b
--- /dev/null
+++ b/eclass/horde-v2.eclass
@@ -0,0 +1,165 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+# @ECLASS: horde-v2.eclass
+# @MAINTAINER:
+# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+# @DESCRIPTION:
+# Help manage the horde project http://www.horde.org/
+#
+# Based on the horde eclass:
+# Author: Mike Frysinger <vapier@gentoo.org>
+# CVS additions by Chris Aniszczyk <zx@mea-culpa.net>
+# SNAP additions by Jonathan Polansky <jpolansky@lsit.ucsb.edu>
+#
+# This eclass provides generic functions to make the writing of horde
+# ebuilds fairly trivial since there are many horde applications and
+# they all share the same basic install process.
+
+# @ECLASS-VARIABLE: EHORDE_SNAP
+# @DESCRIPTION:
+# Track whether this a snapshot version or not
+
+# @ECLASS-VARIABLE: EHORDE_SNAP_BRANCH
+# @DESCRIPTION:
+# You set this via the ebuild to whatever branch you wish to grab a
+# snapshot of. Typically this is 'HEAD' or 'RELENG'.
+
+# @ECLASS-VARIABLE: EHORDE_VCS
+# @DESCRIPTION:
+# Track whether this is a live version or not
+
+# This eclass requires at least EAPI-2
+case ${EAPI:-0} in
+ 4|3|2) : ;;
+ *) die "EAPI=${EAPI} is not supported" ;;
+esac
+
+inherit webapp eutils php-pear-r1
+
+if [[ ${PV} == 9999* ]]; then
+ EHORDE_VCS="git-2"
+ inherit ${EHORDE_VCS}
+fi
+
+[[ -z ${HORDE_PN} ]] && HORDE_PN="${PN/horde-}"
+[[ -z ${HORDE_MAJ} ]] && HORDE_MAJ=""
+
+SRC_URI="http://pear.horde.org/get/${P}.tgz"
+HOMEPAGE="http://www.horde.org/${HORDE_PN}"
+LICENSE="LGPL-2"
+S=${WORKDIR}/${HORDE_PN}${HORDE_MAJ}-${PV/_/-}
+
+if [[ ${PV} == 9998* ]] ; then
+ EHORDE_SNAP="true"
+# EHORDE_SNAP_BRANCH=""
+ let date=$(date +%s)-24*60*60
+ EHORDE_SNAP_PV=$(date -s @${date} +%Y-%m-%d)
+
+ SRC_URI="http://ftp.horde.org/pub/snaps/${SNAP_PV}/${HORDE_PN}-git.tar.gz"
+ S=${WORKDIR}/${HORDE_PN}
+fi
+
+IUSE="vhosts"
+
+EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst
+
+# INSTALL_DIR is used by webapp.eclass when USE=-vhosts
+INSTALL_DIR="/horde"
+[[ ${HORDE_PN} != "horde" && ${HORDE_PN} != "horde-groupware" && ${HORDE_PN} != "horde-webmail" ]] && INSTALL_DIR="${INSTALL_DIR}/${HORDE_PN}"
+
+HORDE_APPLICATIONS="${HORDE_APPLICATIONS} ."
+
+horde-v2_pkg_setup() {
+ webapp_pkg_setup
+}
+
+horde-v2_src_unpack() {
+ if [[ -n ${EHORDE_VCS} ]] ; then
+ ${EHORDE_VCS}_src_unpack
+ else
+ unpack ${A}
+ fi
+ cd "${S}"
+
+ [[ -n ${EHORDE_PATCHES} ]] && epatch ${EHORDE_PATCHES}
+
+ for APP in ${HORDE_APPLICATIONS}
+ do
+ [[ -f ${APP}/test.php ]] && chmod 000 ${APP}/test.php
+ done
+}
+
+horde-v2_src_install() {
+ webapp_src_preinst
+
+ local destdir=${MY_HTDOCSDIR}
+
+ # Work-around when dealing with live sources
+ [[ -n ${EHORDE_VCS} ]] && cd ${HORDE_PN}
+
+ # Install docs and then delete them (except for CREDITS which
+ # many horde apps include in their help page #121003)
+ dodoc README docs/*
+ mv docs/CREDITS "${T}"/
+ rm -rf COPYING LICENSE README docs/*
+ mv "${T}"/CREDITS docs/
+
+ dodir ${destdir}
+ cp -r . "${D}"/${destdir}/ || die "install files"
+
+ for APP in ${HORDE_APPLICATIONS}
+ do
+ for DISTFILE in ${APP}/config/*.dist
+ do
+ if [[ -f ${DISTFILE/.dist/} ]] ; then
+ webapp_configfile "${MY_HTDOCSDIR}"/${DISTFILE/.dist/}
+ fi
+ done
+ if [[ -f ${APP}/config/conf.php ]] ; then
+ webapp_serverowned "${MY_HTDOCSDIR}"/${APP}/config/conf.php
+ webapp_configfile "${MY_HTDOCSDIR}"/${APP}/config/conf.php
+ fi
+ done
+
+ [[ -n ${HORDE_RECONFIG} ]] && webapp_hook_script ${HORDE_RECONFIG}
+ [[ -n ${HORDE_POSTINST} ]] && webapp_postinst_txt en ${HORDE_POSTINST}
+
+ webapp_src_install
+}
+
+horde-v2_pkg_postinst() {
+ if [ -e ${ROOT}/usr/share/doc/${PF}/INSTALL* ] ; then
+ elog "Please read the INSTALL file in /usr/share/doc/${PF}."
+ fi
+
+ einfo "Before this package will work, you have to setup the configuration files."
+ einfo "Please review the config/ subdirectory of ${HORDE_PN} in the webroot."
+
+ if [ -e ${ROOT}/usr/share/doc/${PF}/SECURITY* ] ; then
+ ewarn
+ ewarn "Users are HIGHLY recommended to consult the SECURITY guide in"
+ ewarn "/usr/share/doc/${PF} before going into production with Horde."
+ fi
+
+ if [[ ${HORDE_PN} != "horde" && ${HORDE_PN} != "horde-groupware" && ${HORDE_PN} != "horde-webmail" ]] ; then
+ ewarn
+ ewarn "Make sure ${HORDE_PN} is accounted for in Horde\'s root"
+ ewarn " config/registry.php"
+ fi
+
+ if [[ -n ${EHORDE_VCS} ]] ; then
+ ewarn
+ ewarn "Use these live versions at your own risk."
+ ewarn "They tend to break things when working with the non live versions of horde."
+ fi
+
+ if use vhosts ; then
+ ewarn
+ ewarn "When installing Horde into a vhost dir, you will need to use the"
+ ewarn "-d option so that it is installed into the proper location."
+ fi
+
+ webapp_pkg_postinst
+}
diff --git a/www-apps/horde/Manifest b/www-apps/horde/Manifest
new file mode 100644
index 0000000..424a0d3
--- /dev/null
+++ b/www-apps/horde/Manifest
@@ -0,0 +1,2 @@
+DIST horde-4.0.13.tgz 3933774 RMD160 9a7a812c7653009098f25038a5cf9487ec0b58ba SHA1 49c2e7a4088d258d42854f6177a5173c38f32343 SHA256 826cf64dd5d1e13774e308e7d8abe453647771be5787a3eee77f6e24817589fd
+EBUILD horde-4.0.13.ebuild 882 RMD160 19b2c8645eda7df1166346778f809a7861621ca6 SHA1 2bd8bef9001ef1e9f77bc618db8bfc1833c1204c SHA256 84578892d1931f9e4c21c16da3dbb65179b2d773dfbd83f60ed850c8fb20ac39
diff --git a/www-apps/horde/horde-4.0.13.ebuild b/www-apps/horde/horde-4.0.13.ebuild
new file mode 100644
index 0000000..7afbd41
--- /dev/null
+++ b/www-apps/horde/horde-4.0.13.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/horde/horde-3.3.9.ebuild,v 1.7 2010/10/19 02:16:58 jer Exp $
+
+EAPI=4
+
+inherit horde-v2
+
+DESCRIPTION="Horde Application Framework"
+HOMEPAGE="http://www.horde.org/"
+
+KEYWORDS="alpha amd64 hppa ~ia64 ppc sparc x86"
+IUSE="mysql"
+
+DEPEND=""
+RDEPEND="dev-lang/php[session,xml]
+ >=dev-libs/libxml2-2.4.21
+ dev-php/PEAR-Log
+ dev-php/PEAR-Mail_Mime
+ >=sys-devel/gettext-0.10.40
+ >=www-apps/horde-pear-1.3
+ mysql? ( dev-php/PEAR-DB )"
+
+src_unpack() {
+ horde_src_unpack
+ cd "${S}"
+ chmod 600 scripts/sql/create.*.sql #137510
+}
+
+pkg_postinst() {
+ horde_pkg_postinst
+ elog "Horde requires PHP to have:"
+ elog " ==> 'short_open_tag enabled = On'"
+ elog " ==> 'magic_quotes_runtime set = Off'"
+ elog " ==> 'file_uploads enabled = On'"
+}
next reply other threads:[~2012-01-30 11:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 11:57 Jorge Manuel B. S. Vicetto [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-31 0:23 [gentoo-commits] dev/jmbsvicetto:master commit in: www-apps/horde/, eclass/ Jorge Manuel B. S. Vicetto
2012-02-05 4:57 Jorge Manuel B. S. Vicetto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc5a9f50fce5e13bfa6676ad4fbc3890833c93ef.jmbsvicetto@gentoo \
--to=jmbsvicetto@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox