blob: c4b2092205fc49251be6366abdf03c092a85cde6 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Tim Raedisch <tim.raedisch@udo.edu>
# $Header: /var/cvsroot/gentoo-x86/net-www/phpBB/phpBB-2.0.4.ebuild,v 1.2 2003/02/10 16:21:53 seemant Exp $
S=${WORKDIR}/${PN}2
DESCRIPTION="phpBB is a high powered, fully scalable, and highly customisable open-source bulletin board package."
HOMEPAGE="http://www.phpbb.com/"
SRC_URI="http://belnet.dl.sourceforge.net/sourceforge/phpbb/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc ~sparc ~alpha"
DEPEND="virtual/php"
HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`"
[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache2/conf/apache.conf | cut -d\ -f2`"
[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs"
HTTPD_USER="apache"
HTTPD_GROUP="apache"
pkg_setup() {
if [ -L ${HTTPD_ROOT}/phpbb ] ; then
ewarn "You need to unmerge your old phpBB version first."
ewarn "phpBB will be installed into ${HTTPD_ROOT}/phpbb"
ewarn "directly instead of a version-dependant directory."
die "need to unmerge old version first"
fi
}
src_compile() {
#we need to have this empty function ... default compile hangs
echo "Nothing to compile"
}
src_install() {
cd ${S}
dodir ${HTTPD_ROOT}/phpbb
cp -r * ${D}/${HTTPD_ROOT}/phpbb
cd ${D}/${HTTPD_ROOT}
chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${D}/${HTTPD_ROOT}/phpbb
dodoc ${S}/docs/*
}
|