# Created by: Alonso Cardenas # $FreeBSD$ PORTNAME= bareos-webui DISTVERSIONPREFIX= Release/ DISTVERSION= 15.2.2 PORTREVISION= 0 CATEGORIES= www sysutils MAINTAINER= acm@FreeBSD.org COMMENT= A PHP-Frontend to manage Bareos over the web LICENSE= AGPLv3 # or later LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes GH_ACCOUNT= bareos GH_PROJECT= bareos-webui USES= tar:tgz USE_PHP= openssl NO_BUILD= yes NO_ARCH= yes BAREOSWEB_HOME?=${WWWDIR} BAREOSWEBUIDIR= ${BAREOSWEB_HOME:S|${PREFIX}/||} SUB_FILES= pkg-message PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} BAREOSWEBUIDIR=${BAREOSWEBUIDIR} SUB_LIST= BAREOSWEBUIDIR=${BAREOSWEBUIDIR} OPTIONS_DEFINE= MYSQL PGSQL ZENDFRAMEWORK OPTIONS_DEFAULT= PGSQL ZENDFRAMEWORK_DESC= Install zend framework .include .if ${PORT_OPTIONS:MMYSQL} USE_PHP+= pdo_mysql .endif .if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pdo_pgsql .endif .if ${PORT_OPTIONS:MZENDFRAMEWORK} RUN_DEPENDS= ${LOCALBASE}/share/ZendFramework/bin/classmap_generator.php:www/zend-framework .endif post-extract: ${RM} ${WRKSRC}/config/autoload/.gitignore ${RM} ${WRKSRC}/data/cache/.gitignore ${RM} ${WRKSRC}/vendor/.gitignore post-patch: @${REINPLACE_CMD} -e 's|/etc/|${LOCALBASE}/etc/|g' ${WRKSRC}/config/autoload/global.php do-install: @${ECHO} "Installing in ${BAREOSWEB_HOME}" ${MKDIR} ${STAGEDIR}${ETCDIR} ${MKDIR} ${STAGEDIR}${BAREOSWEB_HOME} cd ${WRKSRC} && ${COPYTREE_SHARE} "config data module public vendor" \ ${STAGEDIR}${BAREOSWEB_HOME} ${INSTALL_DATA} ${WRKSRC}/*.php ${STAGEDIR}${BAREOSWEB_HOME} ${INSTALL_DATA} ${WRKSRC}/composer* ${STAGEDIR}${BAREOSWEB_HOME} ${INSTALL_DATA} ${WRKSRC}/phpunit.xml ${STAGEDIR}${BAREOSWEB_HOME} ${INSTALL_DATA} ${WRKSRC}/install/directors.ini ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/install/bareos/webui-consoles.conf ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/install/bareos/webui-profiles.conf ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/install/apache/bareos-webui.conf ${STAGEDIR}${ETCDIR}/apache-bareos-webui.conf .include