summaryrefslogtreecommitdiff
blob: 217c907d5f03e195dc6a5bd7f97c44b2d706e046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-php/phpgroupware/phpgroupware-0.9.14.001.ebuild,v 1.4 2003/03/25 05:20:11 agriffis Exp $

S=${WORKDIR}/phpGroupWare-${PV}
HTTPD_ROOT="/home/httpd/htdocs"
HTTPD_USER="apache"
HTTPD_GROUP="apache"

DESCRIPTION="The phpGroupWare intranet/groupware tool and application framework."
SRC_URI="http://www.phpgroupware.org/downloads_phpgw/phpGroupWare-${PV}.tar.bz2"
HOMEPAGE="http://www.phpgroupware.org"

LICENSE="GPL-2"
SLOT="="
KEYWORDS="~x86 ~ppc ~alpha"
IUSE=""

DEPEND="virtual/php
		 dev-db/mysql"


pkg_setup() {
	if [ -L ${HTTPD_ROOT}/phpgroupware ] ; then
		ewarn "You need to unmerge your old phpGroupWare version first."
		ewarn "phpGroupWare will be installed into ${HTTPD_ROOT}/phpgroupware"
		ewarn "directly instead of a version-dependant directory."
		die "need to unmerge old version first"
	fi
}

src_compile() {
	#nothing to compile
	echo "Nothing to compile"
}

src_install () {
	dodir ${HTTPD_ROOT}/phpgroupware
	cd ../work
	cp -r . ${D}/${HTTPD_ROOT}
	cd ${D}/${HTTPD_ROOT}
	chown -R ${HTTPD_USER}.${HTTPD_GROUP} phpgroupware
	chmod -R 700 phpgroupware/files
}

pkg_postinst() {
	einfo "Follow the instructions at http://docs.phpgroupware.org/12-docs/html/admin/x62.html#AEN134 "
	einfo "to complete the install.  You need to add MySQL users and configure phpGroupWare"
}