Import webacula-5.0.3.

Webacula, i.e. Web + Bacula is a web interface for the Bacula backup
system.

ok sthen@ robert@
This commit is contained in:
ajacoutot 2011-03-21 18:01:08 +00:00
parent c94ae4fc50
commit 775cfae1df
12 changed files with 654 additions and 0 deletions

49
www/webacula/Makefile Normal file
View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/21 18:01:08 ajacoutot Exp $
COMMENT= bacula(8) web interface
DISTNAME= webacula-5.0.3
CATEGORIES= www sysutils
HOMEPAGE= http://webacula.sourceforge.net/
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webacula/}
RUN_DEPENDS= www/php5/extensions,-gd \
php5-pdo_pgsql-*|php5-pdo_mysql-*|php5-pdo_sqlite-*:www/php5/extensions,-pdo_pgsql \
www/zendframework
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
PREFIX= /var/www
INSTDIR= ${PREFIX}/webacula
TINSTDIR= ${TRUEPREFIX}/webacula
SUBST_VARS= INSTDIR TINSTDIR
do-install:
mv ${WRKSRC} ${INSTDIR}
${SUBST_CMD} ${INSTDIR}/application/config.ini
.for i in install/webacula_mysql_create_database.sh \
install/webacula_postgresql_create_database.sh \
install/webacula_postgresql_make_tables.sh \
application/config.ini
mv ${INSTDIR}/$i ${INSTDIR}/$i.dist
.endfor
${SUBST_CMD} -c ${FILESDIR}/webacula.conf \
${INSTDIR}/webacula.conf.dist
${SUBST_CMD} -c ${FILESDIR}/webacula-chroot-bconsole.sh \
${INSTDIR}/webacula-chroot-bconsole
find ${INSTDIR} -type f -name \*.orig -or -name \*.gitignore \
-or -name \*.project -or -name \*.beforesubst | xargs rm
chown -R ${BINOWN}:${BINGRP} ${INSTDIR}
.include <bsd.port.mk>

5
www/webacula/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (webacula-5.0.3.tar.gz) = CjuR41079VRX9MeLOILCwg==
RMD160 (webacula-5.0.3.tar.gz) = 547z1TuRTW40n+rLgN9p15RYMMY=
SHA1 (webacula-5.0.3.tar.gz) = o/o/AaRqrCuWrLwixmJbVJcH/ag=
SHA256 (webacula-5.0.3.tar.gz) = X1+/Dkae4MW/skFu7oyaocpYd12bjrrAHN2HzzW3hMg=
SIZE (webacula-5.0.3.tar.gz) = 425748

View File

@ -0,0 +1,50 @@
#!/bin/sh
#
# make bconsole(8) available in Apache chroot(8)
# WARNING: /var/www/bin/sh , /var/www/usr/libexec/ld.so and
# /var/www/lib/* make be shared by other executables in the chroot(8)
if [ "$(id -u)" -ne 0 ]; then
echo " *** Error: need root privileges to run this script"
exit 1
fi
do_enable() {
mkdir -p /var/www{${SYSCONFDIR}/bacula,/usr/lib,/usr/libexec,${LOCALBASE}/{lib,sbin}}
cp -p ${LOCALBASE}/sbin/bconsole /var/www${LOCALBASE}/sbin
cp -p ${SYSCONFDIR}/bacula/bconsole.conf /var/www${SYSCONFDIR}/bacula/
for i in $(ldd ${LOCALBASE}/sbin/bconsole | grep 'lib/' | awk '{ print $7 }') ; do \
cp -p $i /var/www$i
done
cp -p /bin/sh /var/www/bin/
cp -p /usr/libexec/ld.so /var/www/usr/libexec/
chown -R www /var/www${SYSCONFDIR}/bacula/ /var/www${LOCALBASE}/sbin/bconsole
chmod 0500 /var/www${SYSCONFDIR}/bacula/
chmod 0100 /var/www${LOCALBASE}/sbin/bconsole
chmod 0400 /var/www${SYSCONFDIR}/bacula/bconsole.conf
}
do_disable() {
rm -rf /var/www${SYSCONFDIR}/bacula \
/var/www/usr/local/sbin/bconsole \
/var/www/usr/libexec/ld.so \
/var/www/bin/sh
for i in $(ldd ${LOCALBASE}/sbin/bconsole | grep 'lib/' | awk '{ print $7 }') ; do \
rm -f /var/www/$(echo $i | sed -e 's,\.so.*,,')*
done
rmdir /var/www{/etc,${LOCALBASE}/{lib,sbin},${LOCALBASE},/usr/lib,/usr/libexec,/usr} 2>/dev/null
}
case $1 in
enable)
do_disable
do_enable
;;
disable)
do_disable
;;
*)
echo "usage: ${0##*/} {enable|disable}"
;;
esac

View File

@ -0,0 +1,19 @@
Alias /webacula ${TINSTDIR}/html
<IfModule mod_php5.c>
php_value max_execution_time 3600
</IfModule>
<Directory "${TINSTDIR}/html">
RewriteEngine on
Options FollowSymLinks
AllowOverride All
Order deny,allow
# allow authenticated users access from LAN and localhost
Allow from 127.0.0.1
Allow from 192.168.255.0/255.255.255.0
AuthType Basic
AuthName "Webacula"
AuthUserFile /var/www/conf/webacula.users
Require valid-user
</Directory>

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-application_config_ini,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot Exp $
--- application/config.ini.orig Mon Mar 21 15:13:26 2011
+++ application/config.ini Mon Mar 21 15:15:41 2011
@@ -10,20 +10,20 @@ db.config.host = localhost
db.config.username = root
db.config.password =
db.config.dbname = bacula
-;; for Sqlite db.config.dbname = "/full patch/bacula.db"
+;; for Sqlite db.config.dbname = "/full_path_to/bacula.db"
;; see http://www.php.net/timezones
; def.timezone = "UTC"
-def.timezone = "Europe/Minsk"
+def.timezone = "Europe/London"
;; if locale undefined, webacula use autodetect
;; avaliable locales : en, de, fr, pt_BR, ru, it, es
; locale = "en"
;; see INSTALL file for details
-bacula.sudo = "/usr/bin/sudo"
-bacula.bconsole = "/sbin/bconsole"
-bacula.bconsolecmd = "-n -c /etc/bacula/bconsole.conf"
+bacula.sudo = ""
+bacula.bconsole = "${LOCALBASE}/sbin/bconsole"
+bacula.bconsolecmd = "-n -c ${SYSCONFDIR}/bacula/bconsole.conf"
;; Directory "tmpdir" which will be saved the file, which contains a list of files to restore.
;; This directory and files in it should be available to read the Director service.
@@ -73,7 +73,7 @@ db.config.host = localhost
db.config.username = wbuser
db.config.password = "wbpass"
db.config.dbname = webacula
-;; for Sqlite db.config.dbname = "/var/lib/sqlite/webacula.db"
+;; for Sqlite db.config.dbname = "/var/db/sqlite/webacula.db"
email.to_admin = root@localhost
email.from = webacula@localhost

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-html_index_php,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot Exp $
--- html/index.php.orig Mon Mar 21 14:34:46 2011
+++ html/index.php Mon Mar 21 14:35:23 2011
@@ -34,6 +34,7 @@ if ( APPLICATION_ENV == 'development') {
// PATH_SEPARATOR ":"
set_include_path('.' . PATH_SEPARATOR . '../library' . PATH_SEPARATOR . '../application/models/' .
PATH_SEPARATOR . '../application/forms/' .
+ PATH_SEPARATOR . '/zendframework/' .
PATH_SEPARATOR . get_include_path() );
include "Zend/Loader.php";

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-install_webacula_postgresql_create_database_sh,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot Exp $
--- install/webacula_postgresql_create_database.sh.orig Mon Mar 21 12:16:46 2011
+++ install/webacula_postgresql_create_database.sh Mon Mar 21 12:17:02 2011
@@ -12,8 +12,8 @@ db_name="webacula"
db_user="wbuser"
db_password="wbpass"
-psql -f - -d template1 $* <<END-OF-DATA
-CREATE DATABASE ${db_name} ENCODING 'UTF8';
+psql -f - $* <<END-OF-DATA
+CREATE DATABASE ${db_name} TEMPLATE template0 encoding 'utf-8' ;
ALTER DATABASE ${db_name} SET datestyle TO 'ISO, YMD';
END-OF-DATA

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-install_webacula_sqlite_create_database_sh,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot Exp $
--- install/webacula_sqlite_create_database.sh.orig Mon Jan 24 11:58:16 2011
+++ install/webacula_sqlite_create_database.sh Mon Mar 21 16:53:52 2011
@@ -1,6 +1,6 @@
#!/bin/sh
-db_name="/var/lib/sqlite/webacula.db"
+db_name="/var/www/var/db/sqlite/webacula.db"
if [ $# -eq 1 ]
then
@@ -64,6 +64,6 @@ CREATE TABLE wbtmptablelist (
END-OF-DATA
# access by apache
-chgrp apache ${db_name}
+chgrp www ${db_name}
chmod g+rw ${db_name}
exit 0

2
www/webacula/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
Webacula, i.e. Web + Bacula is a web interface for the Bacula backup
system.

322
www/webacula/pkg/PLIST Normal file
View File

@ -0,0 +1,322 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot Exp $
webacula/
webacula/4CONTRIBUTORS
webacula/4CONTRIBUTORS.ru
webacula/AUTHORS
webacula/COPYING
webacula/ChangeLog
webacula/README
webacula/UPDATE
webacula/application/
webacula/application/.htaccess
webacula/application/config.ini.dist
@mode 0640
@group www
@sample webacula/application/config.ini
@mode
@group
webacula/application/config.ini.original
webacula/application/controllers/
webacula/application/controllers/BconsoleController.php
webacula/application/controllers/ChartController.php
webacula/application/controllers/ClientController.php
webacula/application/controllers/DirectorController.php
webacula/application/controllers/ErrorController.php
webacula/application/controllers/FeedController.php
webacula/application/controllers/FileController.php
webacula/application/controllers/HelpController.php
webacula/application/controllers/IndexController.php
webacula/application/controllers/JobController.php
webacula/application/controllers/LogController.php
webacula/application/controllers/PoolController.php
webacula/application/controllers/RestorejobController.php
webacula/application/controllers/StorageController.php
webacula/application/controllers/VolumeController.php
webacula/application/controllers/WbjobdescController.php
webacula/application/controllers/WblogbookController.php
webacula/application/forms/
webacula/application/forms/FormJobdesc.php
webacula/application/forms/FormJobrun.php
webacula/application/forms/FormRestoreOptions.php
webacula/application/layouts/
webacula/application/layouts/default/
webacula/application/layouts/default/dashboard.phtml
webacula/application/layouts/default/help.phtml
webacula/application/layouts/default/main.phtml
webacula/application/layouts/default/printable.phtml
webacula/application/models/
webacula/application/models/Client.php
webacula/application/models/Director.php
webacula/application/models/FileSet.php
webacula/application/models/Files.php
webacula/application/models/Job.php
webacula/application/models/Log.php
webacula/application/models/Media.php
webacula/application/models/Pool.php
webacula/application/models/Storage.php
webacula/application/models/Timeline.php
webacula/application/models/Version.php
webacula/application/models/WbTmpTable.php
webacula/application/models/Wbjobdesc.php
webacula/application/models/Wblogbook.php
webacula/application/models/Wblogtype.php
webacula/application/views/
webacula/application/views/helpers/
webacula/application/views/helpers/ConvBytes.php
webacula/application/views/helpers/ConvSecondsToDays.php
webacula/application/views/helpers/ConvSecondsToDaysHours.php
webacula/application/views/helpers/DecodeJobType.php
webacula/application/views/helpers/Int2Char.php
webacula/application/views/helpers/MainmenuFloat.php
webacula/application/views/helpers/PermissionOctal2String.php
webacula/application/views/scripts/
webacula/application/views/scripts/bconsole/
webacula/application/views/scripts/bconsole/cmd.phtml
webacula/application/views/scripts/bconsole/wterminal.phtml
webacula/application/views/scripts/client/
webacula/application/views/scripts/client/all.phtml
webacula/application/views/scripts/client/status-client-id.phtml
webacula/application/views/scripts/decorators/
webacula/application/views/scripts/decorators/formJobrun.phtml
webacula/application/views/scripts/decorators/formRestoreoptions.phtml
webacula/application/views/scripts/director/
webacula/application/views/scripts/director/listjobtotals.phtml
webacula/application/views/scripts/director/statusdir.phtml
webacula/application/views/scripts/error/
webacula/application/views/scripts/error/error.phtml
webacula/application/views/scripts/file/
webacula/application/views/scripts/file/list.phtml
webacula/application/views/scripts/file/list_pagination_ctrl.phtml
webacula/application/views/scripts/help/
webacula/application/views/scripts/help/index_en.phtml
webacula/application/views/scripts/help/index_ru.phtml
webacula/application/views/scripts/help/my-id.phtml
webacula/application/views/scripts/help/my-php-info.phtml
webacula/application/views/scripts/index/
webacula/application/views/scripts/index/index.phtml
webacula/application/views/scripts/job/
webacula/application/views/scripts/job/cancel-job.phtml
webacula/application/views/scripts/job/detail.phtml
webacula/application/views/scripts/job/find-file-name.phtml
webacula/application/views/scripts/job/find-filters.phtml
webacula/application/views/scripts/job/find-form.phtml
webacula/application/views/scripts/job/find_filters_pagination_ctrl.phtml
webacula/application/views/scripts/job/next-dashboard.phtml
webacula/application/views/scripts/job/next.phtml
webacula/application/views/scripts/job/problem-dashboard.phtml
webacula/application/views/scripts/job/problem.phtml
webacula/application/views/scripts/job/run-job-output.phtml
webacula/application/views/scripts/job/run-job.phtml
webacula/application/views/scripts/job/running-dashboard.phtml
webacula/application/views/scripts/job/running.phtml
webacula/application/views/scripts/job/terminated-dashboard.phtml
webacula/application/views/scripts/job/terminated.phtml
webacula/application/views/scripts/job/timeline-dashboard.phtml
webacula/application/views/scripts/job/timeline.phtml
webacula/application/views/scripts/log/
webacula/application/views/scripts/log/view-log-id.phtml
webacula/application/views/scripts/msg-note.phtml
webacula/application/views/scripts/pagination_ctrl.phtml
webacula/application/views/scripts/pool/
webacula/application/views/scripts/pool/all.phtml
webacula/application/views/scripts/restorejob/
webacula/application/views/scripts/restorejob/draw-file-tree.phtml
webacula/application/views/scripts/restorejob/list-recent-restore.phtml
webacula/application/views/scripts/restorejob/list-restore.phtml
webacula/application/views/scripts/restorejob/main-form.phtml
webacula/application/views/scripts/restorejob/msg01.phtml
webacula/application/views/scripts/restorejob/msg02session.phtml
webacula/application/views/scripts/restorejob/restore-all.phtml
webacula/application/views/scripts/restorejob/restore-recent-all.phtml
webacula/application/views/scripts/restorejob/restore-single-file.phtml
webacula/application/views/scripts/restorejob/run-restore.phtml
webacula/application/views/scripts/restorejob/select-backups-before-date.phtml
webacula/application/views/scripts/storage/
webacula/application/views/scripts/storage/act-mount.phtml
webacula/application/views/scripts/storage/status-id.phtml
webacula/application/views/scripts/storage/storage.phtml
webacula/application/views/scripts/volume/
webacula/application/views/scripts/volume/detail.phtml
webacula/application/views/scripts/volume/find-name.phtml
webacula/application/views/scripts/volume/find-pool-id.phtml
webacula/application/views/scripts/volume/problem-dashboard.phtml
webacula/application/views/scripts/volume/problem.phtml
webacula/application/views/scripts/wbjobdesc/
webacula/application/views/scripts/wbjobdesc/add.phtml
webacula/application/views/scripts/wbjobdesc/index.phtml
webacula/application/views/scripts/wbjobdesc/modify.phtml
webacula/application/views/scripts/wblogbook/
webacula/application/views/scripts/wblogbook/add.phtml
webacula/application/views/scripts/wblogbook/index-printable.phtml
webacula/application/views/scripts/wblogbook/index.phtml
webacula/application/views/scripts/wblogbook/modify.phtml
webacula/docs/
webacula/docs/.htaccess
webacula/docs/FAQ
webacula/docs/INSTALL
webacula/docs/INSTALL.debian
webacula/docs/INSTALL.es
webacula/docs/INSTALL.fedora
webacula/docs/INSTALL.ru
webacula/docs/RestoreJob.txt
webacula/docs/WebaculaTerminal.txt
webacula/docs/Workflow.txt
webacula/html/
webacula/html/.htaccess
webacula/html/favicon.ico
webacula/html/images/
webacula/html/images/1x1.png
webacula/html/images/PoweredBy_ZF_4LightBG.png
webacula/html/images/Webacula_logo.png
webacula/html/images/arrow-left.png
webacula/html/images/arrow-right.png
webacula/html/images/bookmark-new.png
webacula/html/images/connected.png
webacula/html/images/dialog-ok-apply-small.png
webacula/html/images/dialog-ok-apply.png
webacula/html/images/disconnected.png
webacula/html/images/document-edit.png
webacula/html/images/edit-delete.png
webacula/html/images/feed-icon-14x14.png
webacula/html/images/feed-icon-28x28.png
webacula/html/images/folder.png
webacula/html/images/gplv3-127x51.png
webacula/html/images/jquery_logo.png
webacula/html/images/list-add.png
webacula/html/images/media-tape-changer.png
webacula/html/images/printer1.png
webacula/html/images/process-stop.png
webacula/html/images/re-run-job-small.png
webacula/html/images/re-run-job.png
webacula/html/images/restore-small.png
webacula/html/images/restore.png
webacula/html/images/up.png
webacula/html/images/user-online.png
webacula/html/index.php
webacula/html/scripts/
webacula/html/scripts/hoverIntent.js
webacula/html/scripts/insert_tags.js
webacula/html/scripts/jqModal.js
webacula/html/scripts/jquery-1.3.2.min.js
webacula/html/scripts/jquery-blockUI.js
webacula/html/scripts/jquery-ui-1.7.2.custom.min.js
webacula/html/scripts/jquery-ui.core.js
webacula/html/scripts/jquery-ui.datepicker-de.js
webacula/html/scripts/jquery-ui.datepicker-es.js
webacula/html/scripts/jquery-ui.datepicker-fr.js
webacula/html/scripts/jquery-ui.datepicker-it.js
webacula/html/scripts/jquery-ui.datepicker-pt.js
webacula/html/scripts/jquery-ui.datepicker-ru.js
webacula/html/scripts/jquery-ui.datepicker.js
webacula/html/scripts/jquery.confirm-1.2.js
webacula/html/scripts/jquery.corner.js
webacula/html/scripts/jquery.tooltip.min.js
webacula/html/scripts/json2.js
webacula/html/scripts/superfish.js
webacula/html/scripts/supersubs.js
webacula/html/scripts/ui.selectmenu.js
webacula/html/scripts/wterm.jquery.js
webacula/html/styles/
webacula/html/styles/default/
webacula/html/styles/default/dialog.css
webacula/html/styles/default/images/
webacula/html/styles/default/images/arrows-ffffff.png
webacula/html/styles/default/images/shadow.png
webacula/html/styles/default/images/ui-bg_flat_0_aaaaaa_40x100.png
webacula/html/styles/default/images/ui-bg_flat_55_fbec88_40x100.png
webacula/html/styles/default/images/ui-bg_glass_75_d0e5f5_1x400.png
webacula/html/styles/default/images/ui-bg_glass_85_dfeffc_1x400.png
webacula/html/styles/default/images/ui-bg_glass_95_fef1ec_1x400.png
webacula/html/styles/default/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png
webacula/html/styles/default/images/ui-bg_inset-hard_100_f5f8f9_1x100.png
webacula/html/styles/default/images/ui-bg_inset-hard_100_fcfdfd_1x100.png
webacula/html/styles/default/images/ui-icons_217bc0_256x240.png
webacula/html/styles/default/images/ui-icons_2e83ff_256x240.png
webacula/html/styles/default/images/ui-icons_469bdd_256x240.png
webacula/html/styles/default/images/ui-icons_6da8d5_256x240.png
webacula/html/styles/default/images/ui-icons_cd0a0a_256x240.png
webacula/html/styles/default/images/ui-icons_d8e7f3_256x240.png
webacula/html/styles/default/images/ui-icons_f9bd01_256x240.png
webacula/html/styles/default/jquery-ui-1.7.2.custom.css
webacula/html/styles/default/site.css
webacula/html/styles/default/superfish-navbar.css
webacula/html/styles/default/superfish-vertical.css
webacula/html/styles/default/superfish.css
webacula/html/styles/default/ui.selectmenu.css
webacula/html/styles/default/wbjobdesc.css
webacula/html/styles/default/wblogbook.css
webacula/html/styles/default/wterm.css
webacula/html/test_mod_rewrite/
webacula/html/test_mod_rewrite/.htaccess
webacula/html/test_mod_rewrite/index.php
webacula/html/test_mod_rewrite/testlink1.html
webacula/install/
webacula/install/.htaccess
webacula/install/check_system_requirements.php
webacula/install/webacula.conf
webacula/install/webacula_clean_tmp_files.sh
webacula/install/webacula_mysql_create_database.sh.dist
@mode 0755
@sample webacula/install/webacula_mysql_create_database.sh
webacula/install/webacula_mysql_make_tables.sh
@mode
webacula/install/webacula_postgresql_create_database.sh.dist
@mode 0755
@sample webacula/install/webacula_postgresql_create_database.sh
@mode
webacula/install/webacula_postgresql_make_tables.sh.dist
@mode 0755
@sample webacula/install/webacula_postgresql_make_tables.sh
@mode
webacula/install/webacula_postgresql_make_tables.sql
@mode 0755
webacula/install/webacula_sqlite_create_database.sh
@mode
webacula/languages/
webacula/languages/.htaccess
webacula/languages/de/
webacula/languages/de/webacula_de.mo
webacula/languages/de/webacula_de.po
webacula/languages/en/
webacula/languages/en/webacula_en.mo
webacula/languages/en/webacula_en.po
webacula/languages/es/
webacula/languages/es/webacula_es.mo
webacula/languages/es/webacula_es.po
webacula/languages/fr/
webacula/languages/fr/webacula_fr.mo
webacula/languages/fr/webacula_fr.po
webacula/languages/it/
webacula/languages/it/webacula_it.mo
webacula/languages/it/webacula_it.po
webacula/languages/pt/
webacula/languages/pt/webacula_pt_BR.mo
webacula/languages/pt/webacula_pt_BR.po
webacula/languages/ru/
webacula/languages/ru/webacula_ru.mo
webacula/languages/ru/webacula_ru.po
webacula/library/
webacula/library/MyClass/
webacula/library/MyClass/ControllerAction.php
webacula/library/MyClass/GaugeTime.php
webacula/library/MyClass/HomebrewBase64.php
webacula/library/MyClass/SendEmail.php
webacula/library/MyClass/Validate/
webacula/library/MyClass/Validate/BaculaJobId.php
webacula/library/MyClass/Validate/Datetime.php
webacula/library/MyClass/Validate/LogBookId.php
webacula/update/
webacula/update/webacula_mysql_update_3.4_to_5.0.sh
webacula/update/webacula_mysql_update_3.x_to_3.4.sh
webacula/update/webacula_postgresql_update_3.4_to_5.0.sh
webacula/update/webacula_postgresql_update_3.x_to_3.4.sh
webacula/update/webacula_postgresql_update_3.x_to_3.4.sql
webacula/update/webacula_sqlite_update_3.4_to_5.0.sh
webacula/update/webacula_sqlite_update_3.x_to_3.4.sh
@mode 0555
webacula/webacula-chroot-bconsole
@mode
webacula/webacula.conf.dist
@sample /var/www/conf/modules.sample/webacula.conf
@cwd ${LOCALBASE}/share/doc/pkg-readmes
${FULLPKGNAME}

115
www/webacula/pkg/README Normal file
View File

@ -0,0 +1,115 @@
$OpenBSD: README,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot Exp $
Running webacula under OpenBSD
==============================
Webacula has been installed into ${INSTDIR}
Database creation
-----------------
Depending on the database you wish to access, you'll need the
corresponding PHP module. e.g:
for PostreSQL you'll need to install php5-pdo_pgsql
for MySQL you'll need to install php5-pdo_mysql
for SQLite3 you'll need to install php5-pdo_sqlite
Note that this is needed for both the webacula DB itself and the one
used by bacula(8) so you may need two different modules if using
different RDBMS.
To setup the webacula DB, run the following commands according to the
RDBMS that webacula will use. While it is not advised to modify
"db_name" you may want to ajust "db_user", "db_password" and "host" in
these scripts.
Also note that the scripts can take arguments:
e.g. ./webacula_postgresql_create_database.sh -U postgres
* MySQL
# cd ${INSTDIR}/install && ./webacula_mysql_create_database.sh
# cd ${INSTDIR}/install && ./webacula_mysql_make_tables.sh
* PostgreSQL
# cd ${INSTDIR}/install && ./webacula_postgresql_create_database.sh
# cd ${INSTDIR}/install && ./webacula_postgresql_make_tables.sh
* SQLite3
# mkdir -p /var/www/var/db/sqlite/
# cd ${INSTDIR}/install && ./webacula_sqlite_create_database.sh
# chown -R www /var/www/var/db/sqlite
# chmod 0700 /var/www/var/db/sqlite
# chmod 0600 /var/www/var/db/sqlite/webacula.db
Running Webacula under chroot(8)ed Apache
-----------------------------------------
Under OpenBSD, the default Apache runs chrooted under /var/www.
Since Webacula needs to access the bconsole(8) binary we will need to
copy it in the chroot along with the required libs and configuration.
To do so, run the following command:
# ${INSTDIR}/webacula-chroot-bconsole enable
(note that you will have to run this command again when the bacula
package is updated)
The rewrite module needs to be enabled. As root:
# perl -pi -e 's,^# LoadModule rewrite_module,LoadModule rewrite_module,' \
/var/www/conf/httpd.conf
With Apache, AllowOverride settings are required on the ${INSTDIR}
directory. You can configure this as follows:
# ln -s ${PREFIX}/conf/modules.sample/webacula.conf \
/var/www/conf/modules
Webacula setup and configuration
--------------------------------
While upstream install notes are available with this package in:
${INSTDIR}/docs/INSTALL
we advise you to follow the following instructions that were written
specifically for OpenBSD.
Webacula configuration itself is done in
${INSTDIR}/application/config.ini
Under [general] you need to configure the way you will connect to the
bacula(8) catalog DB. When using SQLite3, make sure the bacula(8) DB
is available from the chroot(8).
Then you may want to adapt "def.timezone" according to your current
location.
Under [webacula] you need to configure the way you will connect to the
webacula DB.
Then you may want to adapt "email.to_admin" and "email.from" according
to your site.
You should add the following cron(8) job to the root's crontab to clean
old temporary files:
0 1 * * * find /var/www/tmp/ -name "webacula*" -type f -mtime -24 -exec rm -f {} \;
After restarting your webserver, you can access webacula at:
http://<hostname>/webacula/
*** WARNING!
By default *anyone* can access the webacula interface.
A sample commented configuration for http basic authentication is
available in /var/www/conf/modules.sample/webacula.conf and you are
STRONGLY ADVISED to enable and edit it to your needs.
Bacula messages configuration
-----------------------------
To show messages of the Job output, you must change the "catalog' line
from the "Messages" block in ${SYSCONFDIR}/bacula/bacula-dir.conf to
read:
catalog = all, !skipped, !saved
i.e.
Messages {
Name = Standard
<snip>
catalog = all, !skipped, !saved
}
The reload bacula-dir(8):
# /etc/rc.d/bacula_dir reload

View File

@ -0,0 +1,10 @@
To completely deinstall webacula you need to perform the following steps
as root:
# rm -f /var/www/conf/modules/webacula.conf
# ${INSTDIR}/webacula-chroot-bconsole disable
*** WARNING ***
/var/www/bin/sh, /var/www/usr/libexec/ld.so and files under
/var/www/lib/ may be shared by other executable(s) in the chroot(8), so
when running 'webacula-chroot-bconsole disable', make sure nothing else
uses these files or you will need to reinstall them manually