You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.6 KiB
58 lines
1.6 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit webapp
|
||
|
|
||
|
DESCRIPTION="An open-source PHP-based bulletin board package"
|
||
|
HOMEPAGE="https://www.phpbb.com/"
|
||
5 years ago
|
SRC_URI="https://download.phpbb.com/pub/release/$(ver_cut 1-2)/${PV}/${P}.tar.bz2"
|
||
5 years ago
|
LICENSE="GPL-2"
|
||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~sparc ~x86"
|
||
|
IUSE="ftp gd mssql mysqli postgres sqlite zlib"
|
||
|
REQUIRED_USE="|| ( mssql mysqli postgres sqlite )"
|
||
|
|
||
5 years ago
|
PHP_RDEPEND="(
|
||
|
virtual/httpd-php:@SLOT@
|
||
4 years ago
|
dev-lang/php:@SLOT@[ftp?,gd?,json(+),mssql?,mysqli?,postgres?,sqlite?,xml,zlib?]
|
||
5 years ago
|
)"
|
||
|
|
||
|
RDEPEND="|| (
|
||
4 years ago
|
${PHP_RDEPEND//@SLOT@/8.0}
|
||
4 years ago
|
${PHP_RDEPEND//@SLOT@/7.4}
|
||
|
${PHP_RDEPEND//@SLOT@/7.3}
|
||
5 years ago
|
)"
|
||
5 years ago
|
|
||
|
need_httpd_cgi
|
||
|
|
||
|
S="${WORKDIR}/${PN}${PV%%.*}"
|
||
|
|
||
|
src_install() {
|
||
|
webapp_src_preinst
|
||
|
|
||
|
insinto "${MY_HTDOCSDIR}"
|
||
|
doins -r .
|
||
|
|
||
|
webapp_configfile "${MY_HTDOCSDIR}"/config.php
|
||
|
webapp_hook_script "${FILESDIR}"/permissions
|
||
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
|
||
|
webapp_src_install
|
||
|
|
||
|
# phpBB needs docs together with the other files.
|
||
|
dosym ../webapps/${PN}/${SLOT}/htdocs/docs /usr/share/doc/${PF}
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
einfo "phpBB needs a specific web server configuration. For Apache httpd, an"
|
||
|
einfo "example configuration is provided via .htaccess files. For lighttpd and"
|
||
|
einfo "NGINX, example configuration files can be found in the documentation."
|
||
|
|
||
|
if use vhosts; then
|
||
|
echo
|
||
|
ewarn "When installing with webapp-config, specify a group that includes your"
|
||
|
ewarn "PHP user with the -g option. It will default to the web server group"
|
||
|
ewarn "when running webapp-config as root."
|
||
|
fi
|
||
|
}
|