1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/www/phpvirtualbox-legacy/Makefile
2021-04-06 16:31:07 +02:00

40 lines
991 B
Makefile

# Created by: Bernhard Froehlich <decke@bluelife.at>
PORTNAME= phpvirtualbox
DISTVERSION= 5.2-1
PORTREVISION= 1
CATEGORIES= www
PKGNAMESUFFIX= -legacy
MAINTAINER= vbox@FreeBSD.org
COMMENT= AJAX Web Interface for VirtualBox
LICENSE= GPLv3
USES= dos2unix php
USE_PHP= json 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}
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>