Import bacula-web-5.2.6.

Bacula-Web is a web based tool written in PHP that provides a
summarized view of the bacula backup infrastructure. It obtain this
information from the bacula catalog's database.
This tool provides you informations on the last day jobs status, media
and pool usage, catalog size usage, etc.

ok jasper@
This commit is contained in:
ajacoutot 2012-06-26 08:54:05 +00:00
parent 7cdaafdf15
commit 0f38f27be9
7 changed files with 325 additions and 0 deletions

46
www/bacula-web/Makefile Normal file
View File

@ -0,0 +1,46 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/06/26 08:54:05 ajacoutot Exp $
COMMENT= monitoring and reporting tool for bacula(8)
DISTNAME= bacula-web-5.2.6
CATEGORIES= www sysutils
HOMEPAGE= http://www.bacula-web.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}tl_files/downloads/
MODULES= lang/php
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
PREFIX= /var/www
INSTDIR= ${PREFIX}/bacula-web
TINSTDIR= ${TRUEPREFIX}/bacula-web
SUBST_VARS= INSTDIR TINSTDIR
do-extract:
mkdir ${WRKDIST}
cd ${WRKDIST}; \
for archive in ${EXTRACT_ONLY}; do \
case $$archive in \
${EXTRACT_CASES} \
esac; \
done
do-install:
cp -Rp ${WRKSRC} ${INSTDIR}
${SUBST_CMD} -c ${FILESDIR}/bacula-web.conf \
${INSTDIR}/bacula-web.conf.dist
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
.include <bsd.port.mk>

5
www/bacula-web/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (bacula-web-5.2.6.tar.gz) = i0ePsGL6UO1Cng12FO8ieg==
RMD160 (bacula-web-5.2.6.tar.gz) = 0ekXpQNgQfLgCAawg+qs8Z30ZME=
SHA1 (bacula-web-5.2.6.tar.gz) = OKOjL0zfexs0RQv8KXV3I8+ICBU=
SHA256 (bacula-web-5.2.6.tar.gz) = AAtCKLRiNStM2g2KhTYKrud+LYwNd0h0RtU6LuoBthE=
SIZE (bacula-web-5.2.6.tar.gz) = 362907

View File

@ -0,0 +1,3 @@
# $OpenBSD: bacula-web.conf,v 1.1.1.1 2012/06/26 08:54:05 ajacoutot Exp $
Alias /bacula-web ${TINSTDIR}

View File

@ -0,0 +1,37 @@
$OpenBSD: patch-config_config_php_sample,v 1.1.1.1 2012/06/26 08:54:05 ajacoutot Exp $
--- config/config.php.sample.orig Thu May 24 21:28:18 2012
+++ config/config.php.sample Mon Jun 25 08:57:44 2012
@@ -17,22 +17,22 @@
// Example:
//MySQL bacula catalog
+ // $config[0]['label'] = 'Backup Server';
+ // $config[0]['host'] = 'localhost';
+ // $config[0]['login'] = 'bacula';
+ // $config[0]['password'] = 'verystrongpassword';
+ // $config[0]['db_name'] = 'bacula';
+ // $config[0]['db_type'] = 'mysql';
+ // $config[0]['db_port'] = '3306';
+
+ // PostgreSQL bacula catalog
$config[0]['label'] = 'Backup Server';
$config[0]['host'] = 'localhost';
$config[0]['login'] = 'bacula';
$config[0]['password'] = 'verystrongpassword';
$config[0]['db_name'] = 'bacula';
- $config[0]['db_type'] = 'mysql';
- $config[0]['db_port'] = '3306';
-
- // PostgreSQL bacula catalog
- // $config[0]['label'] = 'Prod Server';
- // $config[0]['host'] = 'db-server.domain.com';
- // $config[0]['login'] = 'bacula';
- // $config[0]['password'] = 'otherstrongpassword';
- // $config[0]['db_name'] = 'bacula';
- // $config[0]['db_type'] = 'pgsql';
- // $config[0]['db_port'] = '5432';
+ $config[0]['db_type'] = 'pgsql';
+ $config[0]['db_port'] = '5432';
// SQLite bacula catalog
// $config[0]['label'] = 'Dev backup server';

5
www/bacula-web/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
Bacula-Web is a web based tool written in PHP that provides a
summarized view of the bacula backup infrastructure. It obtain this
information from the bacula catalog's database.
This tool provides you informations on the last day jobs status, media
and pool usage, catalog size usage, etc.

210
www/bacula-web/pkg/PLIST Normal file
View File

@ -0,0 +1,210 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/06/26 08:54:05 ajacoutot Exp $
@extraunexec rm -rf %D/bacula-web/templates_c/*
@unexec-delete rm -f /var/www/conf/modules/bacula-web.conf
bacula-web/
bacula-web/COPYING
bacula-web/Changelog
bacula-web/INSTALL
bacula-web/README
bacula-web/bacula-web.conf.dist
@sample /var/www/conf/modules.sample/bacula-web.conf
bacula-web/backupjob-report.php
bacula-web/client-report.php
bacula-web/config/
bacula-web/config/.htaccess
@group www
@mode 0640
bacula-web/config/config.php.sample
@sample bacula-web/config/config.php
@group
@mode
bacula-web/core/
bacula-web/core/app/
bacula-web/core/app/cerrorhandler.class.php
bacula-web/core/bweb.inc.php
bacula-web/core/cfg/
bacula-web/core/cfg/config.class.php
bacula-web/core/db/
bacula-web/core/db/cdb.class.php
bacula-web/core/db/cdbquery.class.php
bacula-web/core/db/cdbresult.class.php
bacula-web/core/external/
bacula-web/core/external/phplot/
bacula-web/core/external/phplot/COPYING
bacula-web/core/external/phplot/ChangeLog
bacula-web/core/external/phplot/NEWS.txt
bacula-web/core/external/phplot/README.txt
bacula-web/core/external/phplot/contrib/
bacula-web/core/external/phplot/contrib/README.txt
bacula-web/core/external/phplot/contrib/color_range.example.php
bacula-web/core/external/phplot/contrib/color_range.php
bacula-web/core/external/phplot/contrib/color_range.test1.php
bacula-web/core/external/phplot/contrib/color_range.test2.php
bacula-web/core/external/phplot/contrib/prune_labels.example.php
bacula-web/core/external/phplot/contrib/prune_labels.php
bacula-web/core/external/phplot/contrib/prune_labels.test.php
bacula-web/core/external/phplot/phplot.php
bacula-web/core/external/phplot/rgb.inc.php
bacula-web/core/external/smarty/
bacula-web/core/external/smarty/BUGS
bacula-web/core/external/smarty/COPYING.lib
bacula-web/core/external/smarty/ChangeLog
bacula-web/core/external/smarty/FAQ
bacula-web/core/external/smarty/INSTALL
bacula-web/core/external/smarty/NEWS
bacula-web/core/external/smarty/QUICK_START
bacula-web/core/external/smarty/README
bacula-web/core/external/smarty/RELEASE_NOTES
bacula-web/core/external/smarty/TODO
bacula-web/core/external/smarty/demo/
bacula-web/core/external/smarty/demo/configs/
bacula-web/core/external/smarty/demo/configs/test.conf
bacula-web/core/external/smarty/demo/index.php
bacula-web/core/external/smarty/demo/templates/
bacula-web/core/external/smarty/demo/templates/footer.tpl
bacula-web/core/external/smarty/demo/templates/header.tpl
bacula-web/core/external/smarty/demo/templates/index.tpl
bacula-web/core/external/smarty/libs/
bacula-web/core/external/smarty/libs/Config_File.class.php
bacula-web/core/external/smarty/libs/Smarty.class.php
bacula-web/core/external/smarty/libs/Smarty_Compiler.class.php
bacula-web/core/external/smarty/libs/debug.tpl
bacula-web/core/external/smarty/libs/internals/
bacula-web/core/external/smarty/libs/internals/core.assemble_plugin_filepath.php
bacula-web/core/external/smarty/libs/internals/core.assign_smarty_interface.php
bacula-web/core/external/smarty/libs/internals/core.create_dir_structure.php
bacula-web/core/external/smarty/libs/internals/core.display_debug_console.php
bacula-web/core/external/smarty/libs/internals/core.get_include_path.php
bacula-web/core/external/smarty/libs/internals/core.get_microtime.php
bacula-web/core/external/smarty/libs/internals/core.get_php_resource.php
bacula-web/core/external/smarty/libs/internals/core.is_secure.php
bacula-web/core/external/smarty/libs/internals/core.is_trusted.php
bacula-web/core/external/smarty/libs/internals/core.load_plugins.php
bacula-web/core/external/smarty/libs/internals/core.load_resource_plugin.php
bacula-web/core/external/smarty/libs/internals/core.process_cached_inserts.php
bacula-web/core/external/smarty/libs/internals/core.process_compiled_include.php
bacula-web/core/external/smarty/libs/internals/core.read_cache_file.php
bacula-web/core/external/smarty/libs/internals/core.rm_auto.php
bacula-web/core/external/smarty/libs/internals/core.rmdir.php
bacula-web/core/external/smarty/libs/internals/core.run_insert_handler.php
bacula-web/core/external/smarty/libs/internals/core.smarty_include_php.php
bacula-web/core/external/smarty/libs/internals/core.write_cache_file.php
bacula-web/core/external/smarty/libs/internals/core.write_compiled_include.php
bacula-web/core/external/smarty/libs/internals/core.write_compiled_resource.php
bacula-web/core/external/smarty/libs/internals/core.write_file.php
bacula-web/core/external/smarty/libs/plugins/
bacula-web/core/external/smarty/libs/plugins/block.textformat.php
bacula-web/core/external/smarty/libs/plugins/compiler.assign.php
bacula-web/core/external/smarty/libs/plugins/function.assign_debug_info.php
bacula-web/core/external/smarty/libs/plugins/function.config_load.php
bacula-web/core/external/smarty/libs/plugins/function.counter.php
bacula-web/core/external/smarty/libs/plugins/function.cycle.php
bacula-web/core/external/smarty/libs/plugins/function.debug.php
bacula-web/core/external/smarty/libs/plugins/function.eval.php
bacula-web/core/external/smarty/libs/plugins/function.fetch.php
bacula-web/core/external/smarty/libs/plugins/function.html_checkboxes.php
bacula-web/core/external/smarty/libs/plugins/function.html_image.php
bacula-web/core/external/smarty/libs/plugins/function.html_options.php
bacula-web/core/external/smarty/libs/plugins/function.html_radios.php
bacula-web/core/external/smarty/libs/plugins/function.html_select_date.php
bacula-web/core/external/smarty/libs/plugins/function.html_select_time.php
bacula-web/core/external/smarty/libs/plugins/function.html_table.php
bacula-web/core/external/smarty/libs/plugins/function.mailto.php
bacula-web/core/external/smarty/libs/plugins/function.math.php
bacula-web/core/external/smarty/libs/plugins/function.popup.php
bacula-web/core/external/smarty/libs/plugins/function.popup_init.php
bacula-web/core/external/smarty/libs/plugins/modifier.capitalize.php
bacula-web/core/external/smarty/libs/plugins/modifier.cat.php
bacula-web/core/external/smarty/libs/plugins/modifier.count_characters.php
bacula-web/core/external/smarty/libs/plugins/modifier.count_paragraphs.php
bacula-web/core/external/smarty/libs/plugins/modifier.count_sentences.php
bacula-web/core/external/smarty/libs/plugins/modifier.count_words.php
bacula-web/core/external/smarty/libs/plugins/modifier.date_format.php
bacula-web/core/external/smarty/libs/plugins/modifier.debug_print_var.php
bacula-web/core/external/smarty/libs/plugins/modifier.default.php
bacula-web/core/external/smarty/libs/plugins/modifier.escape.php
bacula-web/core/external/smarty/libs/plugins/modifier.indent.php
bacula-web/core/external/smarty/libs/plugins/modifier.lower.php
bacula-web/core/external/smarty/libs/plugins/modifier.nl2br.php
bacula-web/core/external/smarty/libs/plugins/modifier.regex_replace.php
bacula-web/core/external/smarty/libs/plugins/modifier.replace.php
bacula-web/core/external/smarty/libs/plugins/modifier.spacify.php
bacula-web/core/external/smarty/libs/plugins/modifier.string_format.php
bacula-web/core/external/smarty/libs/plugins/modifier.strip.php
bacula-web/core/external/smarty/libs/plugins/modifier.strip_tags.php
bacula-web/core/external/smarty/libs/plugins/modifier.truncate.php
bacula-web/core/external/smarty/libs/plugins/modifier.upper.php
bacula-web/core/external/smarty/libs/plugins/modifier.wordwrap.php
bacula-web/core/external/smarty/libs/plugins/outputfilter.trimwhitespace.php
bacula-web/core/external/smarty/libs/plugins/shared.escape_special_chars.php
bacula-web/core/external/smarty/libs/plugins/shared.make_timestamp.php
bacula-web/core/external/smarty_gettext-0.9/
bacula-web/core/external/smarty_gettext-0.9/COPYING
bacula-web/core/external/smarty_gettext-0.9/ChangeLog
bacula-web/core/external/smarty_gettext-0.9/README
bacula-web/core/external/smarty_gettext-0.9/smarty_gettext.php
bacula-web/core/external/smarty_gettext-0.9/tsmarty2c.php
bacula-web/core/global.inc.php
bacula-web/core/graph/
bacula-web/core/graph/cgraph.class.php
bacula-web/core/i18n/
bacula-web/core/i18n/ctranslation.class.php
bacula-web/core/utils/
bacula-web/core/utils/chttprequest.class.php
bacula-web/core/utils/ctimeutils.class.php
bacula-web/core/utils/cutils.class.php
bacula-web/index.php
bacula-web/jobs.php
bacula-web/locale/
bacula-web/locale/de_DE/
bacula-web/locale/de_DE/LC_MESSAGES/
bacula-web/locale/de_DE/LC_MESSAGES/messages.mo
bacula-web/locale/de_DE/LC_MESSAGES/messages.po
bacula-web/locale/en_EN/
bacula-web/locale/en_EN/LC_MESSAGES/
bacula-web/locale/en_EN/LC_MESSAGES/messages.mo
bacula-web/locale/en_EN/LC_MESSAGES/messages.po
bacula-web/locale/es_ES/
bacula-web/locale/es_ES/LC_MESSAGES/
bacula-web/locale/es_ES/LC_MESSAGES/messages.mo
bacula-web/locale/es_ES/LC_MESSAGES/messages.po
bacula-web/locale/fr_FR/
bacula-web/locale/fr_FR/LC_MESSAGES/
bacula-web/locale/fr_FR/LC_MESSAGES/messages.mo
bacula-web/locale/fr_FR/LC_MESSAGES/messages.po
bacula-web/locale/it_IT/
bacula-web/locale/it_IT/LC_MESSAGES/
bacula-web/locale/it_IT/LC_MESSAGES/messages.mo
bacula-web/locale/it_IT/LC_MESSAGES/messages.po
bacula-web/locale/sv_SV/
bacula-web/locale/sv_SV/LC_MESSAGES/
bacula-web/locale/sv_SV/LC_MESSAGES/messages.mo
bacula-web/locale/sv_SV/LC_MESSAGES/messages.po
bacula-web/pools.php
bacula-web/style/
bacula-web/style/default.css
bacula-web/style/images/
bacula-web/style/images/canceled.png
bacula-web/style/images/error.png
bacula-web/style/images/ok.png
bacula-web/style/images/running.png
bacula-web/style/images/waiting.png
bacula-web/style/images/warning.png
bacula-web/templates/
bacula-web/templates/backupjob-report.tpl
bacula-web/templates/client-report.tpl
bacula-web/templates/footer.tpl
bacula-web/templates/header.tpl
bacula-web/templates/index.tpl
bacula-web/templates/jobs.tpl
bacula-web/templates/pools.tpl
bacula-web/templates/test.tpl
@owner www
@group www
bacula-web/templates_c/
@owner
@group
bacula-web/templates_c/README
bacula-web/test.php
@cwd ${LOCALBASE}/share/doc/pkg-readmes
${FULLPKGNAME}

19
www/bacula-web/pkg/README Normal file
View File

@ -0,0 +1,19 @@
$OpenBSD: README,v 1.1.1.1 2012/06/26 08:54:05 ajacoutot Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
bacula-web has been installed into ${INSTDIR}
bacula-web can work with a PostgreSQL, MySQL or SQLite3 database.
Support for SQLite3 is included with the main php package; to use
another database, the corresponding package needs to be installed:
php-pdo_pgsql or php-pdo_mysql
Configuration is done in:
${INSTDIR}/config/config.php
When using Apache, running the following command and restarting httpd(8)
will make bacula-web available from "http://<hostname>/bacula-web".
# ln -s ../modules.sample/bacula-web.conf ${PREFIX}/conf/modules