diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-06-01 18:10:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-06-01 18:10:29 +0000 |
commit | 48484ca43c8fe11ed5c9e85625b32eb174cd0f61 (patch) | |
tree | cfeafff4f6fd72c6a9ce67018ebbbb2ccd92a7a4 /eclass/horde.eclass | |
parent | need the GRP_STAGE23_USE loving (diff) | |
download | historical-48484ca43c8fe11ed5c9e85625b32eb174cd0f61.tar.gz historical-48484ca43c8fe11ed5c9e85625b32eb174cd0f61.tar.bz2 historical-48484ca43c8fe11ed5c9e85625b32eb174cd0f61.zip |
since stupid webapp-config is still unstable we cant use it
Diffstat (limited to 'eclass/horde.eclass')
-rw-r--r-- | eclass/horde.eclass | 22 |
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 } |