summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-06-01 18:10:29 +0000
committerMike Frysinger <vapier@gentoo.org>2004-06-01 18:10:29 +0000
commit357c6f6786c0c2749160c1abf1a1108c17005e48 (patch)
tree77abe50dd843d6f81a747538e99ca0aba9c7fca8 /eclass/horde.eclass
parentneed the GRP_STAGE23_USE loving (diff)
downloadgentoo-2-357c6f6786c0c2749160c1abf1a1108c17005e48.tar.gz
gentoo-2-357c6f6786c0c2749160c1abf1a1108c17005e48.tar.bz2
gentoo-2-357c6f6786c0c2749160c1abf1a1108c17005e48.zip
since stupid webapp-config is still unstable we cant use it
Diffstat (limited to 'eclass/horde.eclass')
-rw-r--r--eclass/horde.eclass22
1 files changed, 13 insertions, 9 deletions
diff --git a/eclass/horde.eclass b/eclass/horde.eclass
index 3699049aba46..d47a228eb0ec 100644
--- a/eclass/horde.eclass
+++ b/eclass/horde.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/horde.eclass,v 1.6 2004/05/29 21:12:08 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/horde.eclass,v 1.7 2004/06/01 18:10:29 vapier Exp $
#
# Help manage the horde project http://www.horde.org/
#
@@ -15,7 +15,7 @@
# This variable is just simply used to track whether the user is
# using a cvs version of a horde ebulid.
-inherit webapp
+inherit webapp-apache
[ "${PN}" != "${PN/-cvs}" ] && inherit cvs
ECLASS=horde
@@ -45,9 +45,11 @@ fi
HOMEPAGE="http://www.horde.org/${HORDE_PN}"
LICENSE="LGPL-2"
+SLOT="0"
horde_pkg_setup() {
- webapp_pkg_setup
+ webapp-detect || NO_WEBSERVER=1
+ webapp-pkg_setup "${NO_WEBSERVER}"
if [ ! -z "${HORDE_PHP_FEATURES}" ] ; then
local phpver="`best_version mod_php`"
@@ -75,9 +77,10 @@ horde_src_unpack() {
}
horde_src_install() {
- webapp_src_preinst
+ webapp-mkdirs
- local destdir=${MY_HTDOCSDIR}/horde
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/horde
[ "${HORDE_PN}" != "horde" ] && destdir=${destdir}/${HORDE_PN}
dodoc README docs/*
@@ -89,10 +92,12 @@ horde_src_install() {
[ "${EHORDE_CVS}" == "true" ] && cd ${HORDE_PN}
cp -r . ${D}/${destdir}/
+ cd ${D}/${destdir}
- webapp_serverowned ${MY_HTDOCSDIR}
-
- webapp_src_install
+ # protecting files
+ chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${D}/${destdir}
+ find ${D}/${destdir} -type f -exec chmod 0640 '{}' \;
+ find ${D}/${destdir} -type d -exec chmod 0750 '{}' \;
}
horde_pkg_postinst() {
@@ -113,5 +118,4 @@ horde_pkg_postinst() {
ewarn "They tend to break things when working with"
ewarn "the non CVS versions of horde."
fi
- webapp_pkg_postinst
}