Skip to content

Commit

Permalink
www/bareos21-webui: Copy bareos-webui to bareos21-webui
Browse files Browse the repository at this point in the history
- update to 21.1.7
- www/bareos-webui will be updated to 22.0.3
  • Loading branch information
alonsobsd committed Apr 10, 2023
1 parent deb2a55 commit 950524d
Show file tree
Hide file tree
Showing 6 changed files with 2,134 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
SUBDIR += bareos18-webui
SUBDIR += bareos19-webui
SUBDIR += bareos20-webui
SUBDIR += bareos21-webui
SUBDIR += beehive
SUBDIR += bkmrkconv
SUBDIR += bluefish
Expand Down
67 changes: 67 additions & 0 deletions www/bareos21-webui/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
PORTNAME= bareos
DISTVERSIONPREFIX= Release/
DISTVERSION= 21.1.7
CATEGORIES?= www sysutils
PKGNAMESUFFIX= 21-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= openssl gettext ctype hash json 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 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>
3 changes: 3 additions & 0 deletions www/bareos21-webui/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1680995666
SHA256 (bareos-bareos-Release-21.1.7_GH0.tar.gz) = b87a8bba775adb8bbe15af0962b588cecc2179726dcf1e9e14cfeb89eccb2de6
SIZE (bareos-bareos-Release-21.1.7_GH0.tar.gz) = 11666508
19 changes: 19 additions & 0 deletions www/bareos21-webui/files/pkg-message.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{ type: install
message: <<EOM
bareos webui was installed

Please note that everything has been installed in %%WWWDIR%% and
%%ETCDIRWEBUI%%. You can look bareos-webui installation/configuration
instructions at:

https://docs.bareos.org/IntroductionAndTutorial/InstallingBareosWebui.html

1) Configuration files are stored at %%ETCDIRWEBUI%%
2) Some webserver configuration samples are installed at %%ETCDIRWEBUI%%
3) This install some bareos-dir configuration samples at %%PREFIX%%/etc/bareos.
Don't forget change permissions to user/group used by bareos-dir on server
where it is installed
EOM
}
]
8 changes: 8 additions & 0 deletions www/bareos21-webui/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The bareos-webui is a free software tool written in PHP, intended to monitor
and manage Bareos over the web.

The webui is based on Zend Framework 2, an open source framework for developing
web applications and services using PHP 5.3+ and makes extensive use of the
Twitter Bootstrap front-end framework.

The bareos-webui is licensed under AGPL Version 3.

0 comments on commit 950524d

Please sign in to comment.