summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-11-11 18:06:35 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-11-11 18:06:35 +0000
commit150bf5500fefa5c12d6937e54c81a3d11d18be8c (patch)
tree1b42949e241ca8577030258391d5a88e05269174 /net-www/horde
parentFix bug 33212. (diff)
downloadgentoo-2-150bf5500fefa5c12d6937e54c81a3d11d18be8c.tar.gz
gentoo-2-150bf5500fefa5c12d6937e54c81a3d11d18be8c.tar.bz2
gentoo-2-150bf5500fefa5c12d6937e54c81a3d11d18be8c.zip
using webapp-apache
Diffstat (limited to 'net-www/horde')
-rw-r--r--net-www/horde/ChangeLog5
-rw-r--r--net-www/horde/Manifest4
-rw-r--r--net-www/horde/horde-2.2.4.ebuild37
3 files changed, 25 insertions, 21 deletions
diff --git a/net-www/horde/ChangeLog b/net-www/horde/ChangeLog
index 1cf40146c1a9..670ddf409769 100644
--- a/net-www/horde/ChangeLog
+++ b/net-www/horde/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-www/horde
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/horde/ChangeLog,v 1.12 2003/10/01 21:24:19 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/horde/ChangeLog,v 1.13 2003/11/11 18:06:29 mholzer Exp $
+
+ 11 Nov 2003; Martin Holzer <mholzer@gentoo.org> horde-2.2.4.ebuild:
+ using webapp-apache
02 Oct 2003; Martin Holzer <mholzer@gentoo.org> horde-2.2.4.ebuild:
moved docs to /usr/share/${P}
diff --git a/net-www/horde/Manifest b/net-www/horde/Manifest
index 84ab54d999f2..7a5fde566b20 100644
--- a/net-www/horde/Manifest
+++ b/net-www/horde/Manifest
@@ -1,3 +1,3 @@
-MD5 c9e21b82a6f2a697d84936f55bf5471d ChangeLog 1663
-MD5 afa9ac535207ac35231cec353e11958f horde-2.2.4.ebuild 2082
+MD5 aea33e7e6a9de6c26ebb8d0adb620137 ChangeLog 1756
+MD5 a17a4b7e4c985916b0efc986c87a5c04 horde-2.2.4.ebuild 1772
MD5 d00b68f4d9082ed6fc81dd6232bed73f files/digest-horde-2.2.4 63
diff --git a/net-www/horde/horde-2.2.4.ebuild b/net-www/horde/horde-2.2.4.ebuild
index 56416658d70e..50085f47b80b 100644
--- a/net-www/horde/horde-2.2.4.ebuild
+++ b/net-www/horde/horde-2.2.4.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/horde/horde-2.2.4.ebuild,v 1.5 2003/10/07 17:56:17 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/horde/horde-2.2.4.ebuild,v 1.6 2003/11/11 18:06:29 mholzer Exp $
+
+inherit webapp-apache
S=${WORKDIR}/${P}
@@ -17,39 +19,38 @@ RDEPEND=">=dev-php/mod_php-4.1.0
>=net-www/horde-pear-1.1"
IUSE=""
-# We will use these to set the permissions properly
-HTTPD_USER="apache"
-HTTPD_GROUP=`grep $HTTPD_USER /etc/passwd |cut -d: -f4`
-# Allow users to move the default data directory by setting the
-# home directory of the 'apache' user elsewhere.
-HTTPD_ROOT=`grep $HTTPD_USER /etc/passwd | cut -d: -f6`/htdocs
+webapp-detect || NO_WEBSERVER=1
+
+HTTPD_USER="apache"
+HTTPD_GROUP="apache"
pkg_setup() {
- if [ -z "${HTTPD_ROOT}" ]; then
- eewarn "HTTPD_ROOT is null!"
- eewarn "You probably want to check /etc/passwd"
- die "Need to have a place to put horde in"
- fi
if [ -L ${HTTPD_ROOT}/horde ] ; then
ewarn "You need to unmerge your old Horde version first."
ewarn "Horde will be installed into ${HTTPD_ROOT}/horde"
ewarn "directly instead of a version-dependant directory."
die "need to unmerge old version first"
fi
+ webapp-pkg_setup "${NO_WEBSERVER}"
+ einfo "Installing into ${ROOT}${HTTPD_ROOT}."
}
src_install () {
+
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/${PN}
+
dodoc COPYING README docs/*
rm -rf COPYING README docs
- dodir ${HTTPD_ROOT}/horde
- cp -r . ${D}/${HTTPD_ROOT}/horde
-# cp ${FILESDIR}/${PV}/vfs.sql ${D}/${HTTPD_ROOT}/horde/scripts/db
- # protecting files
- chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${D}/${HTTPD_ROOT}/horde
+ dodir ${destdir}
+ cp -r . ${D}${destdir}
+ cd ${D}/${HTTPD_ROOT}
+ chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${PN}
+ # Fix permissions
find ${D}/${HTTPD_ROOT}/horde/ -type f -exec chmod 0640 {} \;
find ${D}/${HTTPD_ROOT}/horde/ -type d -exec chmod 0750 {} \;
- chmod 0000 ${D}/${HTTPD_ROOT}/horde/test.php
+ chmod 0000 ${destdir}/test.php
}
pkg_postinst() {