2015-08-09 04:59:25 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bareos-webui
|
2018-05-18 13:27:23 +00:00
|
|
|
PORTVERSION= 17.2.5
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 01:35:33 +00:00
|
|
|
PORTREVISION= 1
|
2016-06-01 13:15:36 +00:00
|
|
|
DISTVERSIONPREFIX= Release/
|
2015-08-09 04:59:25 +00:00
|
|
|
CATEGORIES= www sysutils
|
|
|
|
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2016-12-28 19:18:04 +00:00
|
|
|
COMMENT= PHP-Frontend to manage Bareos over the web
|
2015-08-09 04:59:25 +00:00
|
|
|
|
2016-12-28 19:18:04 +00:00
|
|
|
LICENSE= AGPLv3+
|
2015-08-09 04:59:25 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2016-06-01 13:15:36 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= bareos
|
|
|
|
GH_PROJECT= bareos-webui
|
|
|
|
|
2016-12-28 19:18:04 +00:00
|
|
|
USES= php
|
2018-05-18 13:27:23 +00:00
|
|
|
USE_PHP= openssl gettext ctype hash json session iconv
|
2015-08-09 04:59:25 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2018-05-18 13:27:23 +00:00
|
|
|
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
SUB_LIST= BAREOSWEBUIDIR=${WWWDIR}
|
2015-08-09 04:59:25 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL ZENDFRAMEWORK
|
|
|
|
OPTIONS_DEFAULT= PGSQL
|
2015-10-08 15:12:22 +00:00
|
|
|
ZENDFRAMEWORK_DESC= Install zend framework
|
2015-08-09 04:59:25 +00:00
|
|
|
|
2016-12-28 19:18:04 +00:00
|
|
|
MYSQL_USE= PHP=pdo_mysql
|
|
|
|
PGSQL_USE= PHP=pdo_pgsql
|
|
|
|
ZENDFRAMEWORK_RUN_DEPENDS= ${LOCALBASE}/share/ZendFramework/bin/classmap_generator.php:www/zend-framework
|
2015-08-09 04:59:25 +00:00
|
|
|
|
|
|
|
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:
|
2018-05-18 13:27:23 +00:00
|
|
|
@${ECHO} "Installing in ${WWWDIR}"
|
2016-12-28 19:18:04 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/console
|
|
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile
|
|
|
|
@${MKDIR} ${STAGEDIR}${BAREOSWEB_HOME}
|
2015-08-09 04:59:25 +00:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "config data module public vendor" \
|
2018-05-18 13:27:23 +00:00
|
|
|
${STAGEDIR}${WWWDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.php ${STAGEDIR}${WWWDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/composer* ${STAGEDIR}${WWWDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/phpunit.xml ${STAGEDIR}${WWWDIR}
|
2015-08-09 04:59:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/install/directors.ini ${STAGEDIR}${ETCDIR}
|
2016-11-16 07:15:06 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/install/configuration.ini ${STAGEDIR}${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/install/bareos/bareos-dir.d/console/admin.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/console/admin.conf.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/install/bareos/bareos-dir.d/profile/webui-admin.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-admin.conf.sample
|
2015-08-09 04:59:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/install/apache/bareos-webui.conf ${STAGEDIR}${ETCDIR}/apache-bareos-webui.conf
|
2016-11-16 07:15:06 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/install/nginx/bareos-webui.conf ${STAGEDIR}${ETCDIR}/nginx-bareos-webui.conf
|
2015-08-09 04:59:25 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|