summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Bailey <alron@gentoo.org>2003-02-03 22:32:09 +0000
committerDean Bailey <alron@gentoo.org>2003-02-03 22:32:09 +0000
commit45946e4bcfe88e806241e407d9a44f5d228c4719 (patch)
tree513a91ebca6469a4866291ece5f43e7e1f12793e /net-www/horde-chora
parentupdated horde to version 2.2 (diff)
downloadgentoo-2-45946e4bcfe88e806241e407d9a44f5d228c4719.tar.gz
gentoo-2-45946e4bcfe88e806241e407d9a44f5d228c4719.tar.bz2
gentoo-2-45946e4bcfe88e806241e407d9a44f5d228c4719.zip
updated chora to version 1.2
Diffstat (limited to 'net-www/horde-chora')
-rw-r--r--net-www/horde-chora/ChangeLog6
-rw-r--r--net-www/horde-chora/files/digest-horde-chora-1.21
-rw-r--r--net-www/horde-chora/horde-chora-1.2.ebuild74
3 files changed, 80 insertions, 1 deletions
diff --git a/net-www/horde-chora/ChangeLog b/net-www/horde-chora/ChangeLog
index 79d2a919b47e..9e8547fb146a 100644
--- a/net-www/horde-chora/ChangeLog
+++ b/net-www/horde-chora/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-www/horde-chora
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/horde-chora/ChangeLog,v 1.4 2002/12/17 19:46:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/horde-chora/ChangeLog,v 1.5 2003/02/03 22:32:09 alron Exp $
+
+*horde-chora-1.2 (03 Feb 2003)
+ 03 Feb 2003; Dean Bailey <alron@gentoo.org> horde-chora-1.2 :
+ Updated to version 1.2 of horde-chora.
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
diff --git a/net-www/horde-chora/files/digest-horde-chora-1.2 b/net-www/horde-chora/files/digest-horde-chora-1.2
new file mode 100644
index 000000000000..52ea807111ea
--- /dev/null
+++ b/net-www/horde-chora/files/digest-horde-chora-1.2
@@ -0,0 +1 @@
+MD5 27438aa6319c408d93c52e1b25536f95 chora-1.2.tar.gz 154090
diff --git a/net-www/horde-chora/horde-chora-1.2.ebuild b/net-www/horde-chora/horde-chora-1.2.ebuild
new file mode 100644
index 000000000000..2a3c17af5eb7
--- /dev/null
+++ b/net-www/horde-chora/horde-chora-1.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/horde-chora/horde-chora-1.2.ebuild,v 1.1 2003/02/03 22:32:09 alron Exp $
+
+DESCRIPTION="Chora ${PV} is the Horde CVS viewer."
+HOMEPAGE="http://www.horde.org"
+P=chora-1.2
+SRC_URI="ftp://ftp.horde.org/pub/chora/tarballs/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+DEPEND=""
+RDEPEND=">=net-www/horde-2.2
+ >=app-text/rcs-5.7-r1
+ >=dev-util/cvs-1.11.2"
+IUSE=""
+
+find_http_root() {
+ HTTPD_ROOT=`grep apache /etc/passwd | cut -d: -f6`/htdocs
+ if [ -z "${HTTPD_ROOT}" ]; then
+ eerror "HTTPD_ROOT is null! Using defaults."
+ eerror "You probably want to check /etc/passwd"
+ HTTPD_ROOT="/home/httpd/htdocs"
+ fi
+
+ REGISTRY=${HTTPD_ROOT}/horde/config/registry.php
+ [ -f ${REGISTRY} ] || REGISTRY=${HTTPD_ROOT}/horde/config/registry.php.dist
+}
+
+src_compile() {
+ echo "Nothing to compile"
+}
+
+src_install () {
+ find_http_root
+
+ # detecting apache usergroup
+ GID=`grep apache /etc/group |cut -d: -f3`
+ if [ -z "${GID}" ]; then
+ einfo "Using default GID of 81 for Apache"
+ GID=81
+ fi
+
+ dodir ${HTTPD_ROOT}/horde/chora
+ cp -r . ${D}/${HTTPD_ROOT}/horde/chora
+
+ # protecting files
+ chown -R root.${GID} ${D}/${HTTPD_ROOT}/horde/chora
+ find ${D}/${HTTPD_ROOT}/horde/chora/ -type f -exec chmod 0640 {} \;
+ find ${D}/${HTTPD_ROOT}/horde/chora/ -type d -exec chmod 0750 {} \;
+}
+
+pkg_postinst() {
+ find_http_root
+ # add module in horde
+ sed -e "/^\/\/.*\(\$this->applications\['chora'\].*\)/ \
+ { : next ; N ; /\;/ { s/\/\///g ; b } ; b next }" \
+ < ${REGISTRY} > ${REGISTRY}.temp
+ cp ${REGISTRY}.temp ${REGISTRY}
+ rm ${REGISTRY}.temp
+
+ einfo "Please read ${HTTPD_ROOT}/horde/chora/docs/INSTALL !"
+}
+
+pkg_prerm() {
+ find_http_root
+ # rm module from horde
+ sed -e "/\(\$this->applications\['chora'\].*\)/ \
+ { s/\(.*\)/\/\/\1/g; : suite ; N ; /\;/ { s/\n/\n\/\//g ; b } ; \
+ b suite }" \
+ < ${REGISTRY} > ${REGISTRY}.temp
+ cp ${REGISTRY}.temp ${REGISTRY}
+ rm ${REGISTRY}.temp
+}