Files
2024-04-08 15:04:44 +10:00

65 lines
2.3 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name phpbb
version 3.3.10
set branch [join [lrange [split ${version} .] 0 1] .]
categories www php
platforms any
supported_archs noarch
maintainers {snc @nerdling} openmaintainer
license {GPL-2 GPL-3}
description A PHP-based bulletin board / discussion forum system
long_description phpBB is a high powered, fully scalable, and highly \
customisable open-source bulletin board package. phpBB \
has a user-friendly interface, simple and straightforward \
administration panel, and helpful FAQ. Based on the \
powerful PHP server language and your choice of MySQL, \
MS-SQL, PostgreSQL or Access/ODBC database servers, phpBB \
is the ideal free community solution for all web sites.
installs_libs no
depends_run port:php82-apache2handler \
port:php82-ftp \
port:php82-imagick \
port:php82-gd
homepage http://www.phpbb.com/
master_sites https://download.phpbb.com/pub/release/${branch}/${version}/
distname phpBB-${version}
use_bzip2 yes
checksums rmd160 42c210b0a84ed9fdf5bb1729c17c7067beda3630 \
sha256 4383cd82a9db93914f252cc3535a789ff3d41447f5214dbe5416483b97ac5ef0 \
size 4097933
variant mysql description {add convenient runtime dependency on PHP's mysql extension} {
depends_run-append port:php82-mysql
}
variant postgresql description {add convenient runtime dependency on PHP's postgresql extension} {
depends_run-append port:php82-postgresql
}
set docpath ${destroot}${prefix}/www/data
set worksrcpath ${workpath}/phpBB3
use_configure no
build {}
destroot {
xinstall -d -m 0755 ${docpath}/phpbb
file copy {*}[glob ${worksrcpath}/*] ${docpath}/phpbb
file rename ${docpath}/phpbb/config.php \
${docpath}/phpbb/config.php-dist
}
livecheck.type regex
livecheck.url http://www.phpbb.com/
livecheck.regex version">(\\d+(\\.\\d+)+(-PL\\d+)?)