summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-11-02 15:14:08 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-11-02 15:14:08 +0000
commitd697bcd3825dc40a8dc980f7ca657f27c7bf3946 (patch)
tree16e5235b8eed0e64af850ea354b72d3a55ad95a4 /dev-php
parentNew beta version (diff)
downloadgentoo-2-d697bcd3825dc40a8dc980f7ca657f27c7bf3946.tar.gz
gentoo-2-d697bcd3825dc40a8dc980f7ca657f27c7bf3946.tar.bz2
gentoo-2-d697bcd3825dc40a8dc980f7ca657f27c7bf3946.zip
making webapps.eclass ability.
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/groupoffice/ChangeLog5
-rw-r--r--dev-php/groupoffice/Manifest4
-rw-r--r--dev-php/groupoffice/groupoffice-1.93.ebuild36
3 files changed, 23 insertions, 22 deletions
diff --git a/dev-php/groupoffice/ChangeLog b/dev-php/groupoffice/ChangeLog
index 69747acd41ca..cb9f1d7f67cc 100644
--- a/dev-php/groupoffice/ChangeLog
+++ b/dev-php/groupoffice/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-php/groupoffice
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/groupoffice/ChangeLog,v 1.3 2003/10/26 21:28:43 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/groupoffice/ChangeLog,v 1.4 2003/11/02 15:14:02 mholzer Exp $
+
+ 02 Nov 2003; Martin Holzer <mholzer@gentoo.org> groupoffice-1.93.ebuild:
+ making webapps.eclass ability.
*groupoffice-1.93 (26 Oct 2003)
diff --git a/dev-php/groupoffice/Manifest b/dev-php/groupoffice/Manifest
index 02c237ac9ba1..edf5afd8cd62 100644
--- a/dev-php/groupoffice/Manifest
+++ b/dev-php/groupoffice/Manifest
@@ -1,6 +1,6 @@
MD5 a06b48a736b0c3bb3d59213c3df5f578 groupoffice-1.91.ebuild 1777
-MD5 634b64f3b5765a361d5c6f142cd311a3 ChangeLog 590
+MD5 6de9b83ed59eb797f1bc6f624958639a ChangeLog 699
MD5 34b376f52ca199fffb4e52b83169574a metadata.xml 156
-MD5 12b4541f6a5b88c1ec7a83fa6cb68cbc groupoffice-1.93.ebuild 1766
+MD5 fb81279895aa62ac6bfd454baadec725 groupoffice-1.93.ebuild 1630
MD5 935184d01c1f3a5138a2aae7b1f29520 files/digest-groupoffice-1.91 140
MD5 25ba2eb31d2f0d3ceae26bbf9e6e6f2b files/digest-groupoffice-1.93 140
diff --git a/dev-php/groupoffice/groupoffice-1.93.ebuild b/dev-php/groupoffice/groupoffice-1.93.ebuild
index ee701b9ce2ee..843ac018018c 100644
--- a/dev-php/groupoffice/groupoffice-1.93.ebuild
+++ b/dev-php/groupoffice/groupoffice-1.93.ebuild
@@ -1,12 +1,10 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/groupoffice/groupoffice-1.93.ebuild,v 1.1 2003/10/26 21:28:43 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/groupoffice/groupoffice-1.93.ebuild,v 1.2 2003/11/02 15:14:02 mholzer Exp $
-S=${WORKDIR}/${PN}
-HTTPD_ROOT="/home/httpd/htdocs"
-HTTPD_USER="apache"
-HTTPD_GROUP="apache"
+inherit webapp-apache
+S=${WORKDIR}/${P}
DESCRIPTION="Group-Office is a powerfull modular Intranet application framework. It runs *nix using PHP and has several database support."
HOMEPAGE="http://group-office.sourceforge.net/"
SRC_URI="mirror://sourceforge/group-office/${P}.tar.gz
@@ -20,13 +18,11 @@ KEYWORDS="~x86 ~ppc ~alpha ~amd64 ~sparc ~hppa ~arm"
DEPEND="virtual/php
dev-db/mysql"
+webapp-detect || NO_WEBSERVER=1
+
pkg_setup() {
- if [ -L ${HTTPD_ROOT}/${PN} ] ; then
- ewarn "You need to unmerge your old ${PN} version first."
- ewarn "${PN} be installed into ${HTTPD_ROOT}/${PN}"
- 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_unpack() {
@@ -35,18 +31,20 @@ src_unpack() {
}
src_install() {
- dodir ${HTTPD_ROOT}/${PN}
- cd ${WORKDIR}
- mv ${P} ${PN}
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/${PN}
+
+ mkdir -p ${D}${destdir}
mv ${WORKDIR}/crystal ${S}/themes
cd ${S}
dodoc CHANGELOG DEVELOPERS FAQ INSTALL RELEASE README.ldap TODO TRANSLATORS
- rm -rf CHANGELOG FAQ INSTALL RELEASE README.ldap TODO TRANSLATORS
- cd ${WORKDIR}
+ rm -rf CHANGELOG FAQ INSTALL README.ldap TODO TRANSLATORS
+
+ cp -r . ${D}${destdir}
- cp -r . ${D}/${HTTPD_ROOT}
- cd ${D}/${HTTPD_ROOT}
- chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${PN}
+ # Fix permissions
+ find ${D}${destdir} -type d | xargs chmod 755
+ find ${D}${destdir} -type f | xargs chmod 644
}
pkg_postinst() {