freebsd-ports/www/phpvirtualbox-legacy/Makefile
Vladimir Druzenko f3629be7b9 www/phpvirtualbox-legacy: PHP 8 support
Patched from different sources

PR:			261498
Approved by:		arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D40116
2023-05-22 12:52:20 +03:00

40 lines
1 KiB
Makefile

PORTNAME= phpvirtualbox
DISTVERSION= 5.2-1
PORTREVISION= 2
CATEGORIES= www
PKGNAMESUFFIX= -legacy
MAINTAINER= vbox@FreeBSD.org
COMMENT= AJAX Web Interface for VirtualBox
WWW= https://sourceforge.net/projects/phpvirtualbox/
LICENSE= GPLv3
USES= dos2unix php
USE_PHP= session simplexml soap xml
NO_ARCH= yes
NO_BUILD= yes
USE_GITHUB= yes
DOS2UNIX_REGEX= .*\.(php|txt|js|css|html)
WWWDIR= ${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
ETCDIR= ${WWWDIR}
EXTRA_PATCHES+= ${.CURDIR}/../phpvirtualbox/files/patch-php8
post-patch:
@${MV} ${WRKSRC}/phpvirtualbox.conf ${WRKSRC}/phpvirtualbox-legacy.conf
@${REINPLACE_CMD} -e 's#Alias /phpvirtualbox#Alias /phpvirtualbox-legacy#' \
-e 's#/usr/share/phpvirtualbox#${WWWDIR}#g' \
${WRKSRC}/phpvirtualbox-legacy.conf
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} \
"-not -name *.orig -not -name config.php-example")
${INSTALL_DATA} ${WRKSRC}/config.php-example \
${STAGEDIR}${WWWDIR}/config.php.sample
.include <bsd.port.mk>