diff options
Diffstat (limited to '')
-rw-r--r-- | www/phpvirtualbox-72/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/www/phpvirtualbox-72/Makefile b/www/phpvirtualbox-72/Makefile new file mode 100644 index 000000000000..5cd673bbf480 --- /dev/null +++ b/www/phpvirtualbox-72/Makefile @@ -0,0 +1,37 @@ +PORTNAME= phpvirtualbox +DISTVERSION= 7.2-1 +PORTREVISION= 1 +CATEGORIES= www +SUFFIX= -72 +PKGNAMESUFFIX= ${SUFFIX}${PHP_PKGNAMESUFFIX} + +MAINTAINER= vbox@FreeBSD.org +COMMENT= AJAX Web Interface for VirtualBox +WWW= https://github.com/phpvirtualbox/phpvirtualbox/ + +LICENSE= GPLv3 + +USES= php:flavors +USE_GITHUB= yes +USE_PHP= session simplexml soap xml + +ETCDIR= ${WWWDIR} +WWWDIR= ${PREFIX}/www/${PORTNAME}${SUFFIX} +NO_ARCH= yes +NO_BUILD= yes +PORTSCOUT= limit:^7\.2\. + +post-patch: + @${MV} ${WRKSRC}/phpvirtualbox.conf ${WRKSRC}/phpvirtualbox${SUFFIX}.conf + @${REINPLACE_CMD} -e 's#Alias /phpvirtualbox#Alias /phpvirtualbox${SUFFIX}#' \ + -e 's#/usr/share/phpvirtualbox#${WWWDIR}#g' \ + ${WRKSRC}/phpvirtualbox${SUFFIX}.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> |