freebsd-ports/www/bareos20-webui/Makefile
Muhammad Moinur Rahman 0ac3a69555 */*: Remove merged or non-existent USE_PHP directives
- Remove USE_PHP=hash which is available in default php installation of
  all versions of php
  * security/pear-Horde_Crypt_Blowfish: Remove OPTION MHASH
- Remove USE_PHP=json which is available in default php installation of
  all versions of php
  * devel/pear-PHPTAL: Remove OPTION JSON
  * www/ilias: Remove OPTION SCORM2004
- Remove USE_PHP=mssql which is no longer available in php from php80
  and later and has been replaced with sqlsrv module which is Windows
  only
  * www/codeigniter: Remove OPTION MSSQL
  * www/moodle311: Remove OPTION MSSQL
  * www/moodle39: Remove OPTION MSSQL
  * www/moodle40: Remove OPTION MSSQL
  * www/moodle41: Remove OPTION MSSQL
- Remove USE_PHP=openssl which is available in default php installation
  of all versions of php
  * databases/phpmyadmin: Remove OPTION OPENSSL
  * databases/phpmyadmin5: Remove OPTION OPENSSL
  * security/pear-Horde_Crypt_Blowfish: Remove OPTION OPENSSL
  * www/nextcloud: Remove OPTION SSL
  * www/owncloud: Remove OPTION SSL
- Remove USE_PHP=pcre which is available in default php installation of
  all versions of php
  * sysutils/racktables: Remove OPTION PCRE
- Remove USE_PHP=postgresql which should be USE_PHP=pgsql and update
  following ports
  * www/typo3-11
  * www/typo3-12
- Remove USE_PHP=pdf which is no longer available as php module
  * databases/phpmyadmin: Remove OPTION PDF
- Remove USE_PHP=spl which is available in default php installation of
  all versions of php
- Remove USE_PHP=sqlsrv which was never imported into FreeBSD as that is
  Windows only php module
  * www/typo3-11: Remove OPTION SQLSRV
  * www/typo3-12: Remove OPTION SQLSRV
- Bump where DEFAULT OPTIONS are affected

Sponsored by:	Bounce Experts

Approved by:	portmgr(blanket)
2023-04-16 20:09:23 +02:00

66 lines
2.7 KiB
Makefile

PORTNAME= bareos
DISTVERSIONPREFIX= Release/
DISTVERSION= 20.0.8
CATEGORIES?= www sysutils
PKGNAMESUFFIX= 20-webui
MAINTAINER= acm@FreeBSD.org
COMMENT= PHP-Frontend to manage Bareos over the web
WWW= https://www.bareos.org/
LICENSE= AGPLv3+
LICENSE_FILE= ${WRKSRC}/webui/LICENSE
USE_GITHUB= yes
USES= cpe php:build cmake gettext
USE_PHP= gettext ctype session iconv
NO_BUILD= yes
NO_ARCH= yes
CMAKE_SOURCE_PATH= ${WRKSRC}/webui
CMAKE_INSTALL_PREFIX= ${STAGEDIR}
CMAKE_ARGS+= -DSHARE_INSTALL_PREFIX:PATH=${PREFIX}/www \
-DCMAKE_INSTALL_FULL_SYSCONFDIR:PATH=${PREFIX}/etc \
-Dsysconfdir=${PREFIX}/etc \
-Dwebuiconfdir=${PREFIX}/${ETCDIRWEBUI}
SUB_FILES= pkg-message
SUB_LIST+= ETCDIRWEBUI=${PREFIX}/${ETCDIRWEBUI}
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} ETCDIRWEBUI=${ETCDIRWEBUI}
OPTIONS_DEFINE= MYSQL PGSQL
OPTIONS_DEFAULT= PGSQL
MYSQL_USE= PHP=pdo_mysql
PGSQL_USE= PHP=pdo_pgsql
ETCDIRWEBUI= etc/${PORTNAME}${PKGNAMESUFFIX}
post-extract:
${FIND} ${WRKSRC}/webui -name .gitignore -delete
pre-install:
${FIND} ${WRKSRC}/webui -name *.in -delete
do-install:
@${ECHO} "Installing in ${WWWDIR}"
@${MKDIR} ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}
@${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/console
@${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile
@${MKDIR} ${STAGEDIR}${BAREOSWEB_HOME}
cd ${WRKSRC}/webui && ${COPYTREE_SHARE} "config data module public vendor" \
${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/webui/*.php ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/webui/composer* ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/webui/phpunit.xml ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/webui/install/directors.ini ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/directors.ini
${INSTALL_DATA} ${WRKSRC}/webui/install/configuration.ini ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/configuration.ini
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/console/admin.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/console/admin.conf.sample
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-admin.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-admin.conf.sample
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-limited.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-limited.conf.sample
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-readonly.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-readonly.conf.sample
${INSTALL_DATA} ${WRKSRC}/webui/install/apache/bareos-webui.conf ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/apache-bareos-webui.conf
${INSTALL_DATA} ${WRKSRC}/webui/install/nginx/bareos-webui.conf ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/nginx-bareos-webui.conf
.include <bsd.port.mk>