1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/www/bareos-webui/Makefile
Jose Alonso Cardenas Marquez 903a740d76
sysutils/bareos-*: update to 23.0.2
- Replace BACULA_DIR/BAREOS_DIR into pkg-deinstall.client.in [1]

ChangeLog at:	https://github.com/bareos/bareos/blob/Release/23.0.2/CHANGELOG.md
PR:		276634
Reported by:	Trond.Endrestol __at_ ximalas.info [1]
2024-05-02 01:54:07 -05:00

67 lines
2.6 KiB
Makefile

PORTNAME= bareos
DISTVERSIONPREFIX= Release/
DISTVERSION= 23.0.2
CATEGORIES?= www sysutils
PKGNAMESUFFIX= -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} \
-DVERSION_STRING=${DISTVERSION} \
-DBAREOS_FULL_VERSION:STRING=${DISTVERSION}
SUB_FILES= pkg-message
SUB_LIST+= ETCDIRWEBUI=${PREFIX}/${ETCDIRWEBUI}
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} ETCDIRWEBUI=${ETCDIRWEBUI}
OPTIONS_DEFINE= PGSQL
OPTIONS_DEFAULT= PGSQL
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 module public vendor" \
${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/webui/*.php ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/webui/composer* ${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>