Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 50969
Collapse All | Expand All

(-)phpBB-2.0.8a.ebuild (-29 / +14 lines)
Lines 2-50 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /home/cvsroot/gentoo-x86/net-www/phpBB/phpBB-2.0.8a.ebuild,v 1.1 2004/03/30 20:30:48 stuart Exp $
3
# $Header: /home/cvsroot/gentoo-x86/net-www/phpBB/phpBB-2.0.8a.ebuild,v 1.1 2004/03/30 20:30:48 stuart Exp $
4
4
5
inherit webapp-apache
5
inherit webapp
6
6
7
DESCRIPTION="phpBB is a high powered, fully scalable, and highly customisable open-source bulletin board package."
7
DESCRIPTION="phpBB is a high powered, fully scalable, and highly customisable open-source bulletin board package."
8
HOMEPAGE="http://www.phpbb.com/"
8
HOMEPAGE="http://www.phpbb.com/"
9
SRC_URI="mirror://sourceforge/phpbb/${P}.tar.bz2"
9
SRC_URI="mirror://sourceforge/phpbb/${P}.tar.bz2"
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
13
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
12
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
14
RESTRICT="nomirror"
13
RESTRICT="nomirror"
15
14
16
DEPEND=">=sys-devel/patch-2.5.9"
15
DEPEND=""
17
RDEPEND="virtual/php"
16
RDEPEND="virtual/php"
18
17
19
S=${WORKDIR}/${PN}2
18
S=${WORKDIR}/${PN}2
20
19
21
pkg_setup() {
22
	webapp-detect || NO_WEBSERVER=1
23
24
	webapp-pkg_setup "${NO_WEBSERVER}"
25
26
	if [ -d ${HTTPD_ROOT}/phpbb ] ; then
27
		ewarn "You need to unmerge your old phpBB version first."
28
		ewarn "phpBB will be installed into ${HTTPD_ROOT}/phpbb"
29
		ewarn "directly instead of a version-dependant directory."
30
		die "need to unmerge old version first"
31
	fi
32
33
	einfo "Installing for ${WEBAPP_SERVER}"
34
}
35
36
src_unpack() {
37
	unpack ${A}
38
	cd ${S}
39
}
40
41
src_install() {
20
src_install() {
42
	webapp-mkdirs
21
	webapp_src_preinst
43
22
44
	dodir "${HTTPD_ROOT}/phpbb"
45
	cp -a * "${D}/${HTTPD_ROOT}/phpbb"
46
	dodoc ${S}/docs/*
23
	dodoc ${S}/docs/*
24
	rm -rf ${S}/docs/
25
26
	cp -a * "${D}/${MY_HTDOCSDIR}"
27
28
	echo "<?php trigger_error('Please use install/install.php to configure phpBB for your system!', E_USER_ERROR); ?>" >\
29
		"${D}/${MY_HTDOCSDIR}/config.php"
30
	webapp_serverowned "${MY_HTDOCSDIR}/config.php"
31
	webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
47
32
48
	cd "${D}/${HTTPD_ROOT}"
33
	webapp_src_install
49
	chown -R "${HTTPD_USER}:${HTTPD_GROUP}" "${D}/${HTTPD_ROOT}/phpbb"
50
}
34
}
51
-- files/postinstall-en.txt
Line 0 Link Here
1
Please use install/install.php to configure phpBB.
2
After that please delete contribs/ and install/

Return to bug 50969