diff --git a/www/webacula/Makefile b/www/webacula/Makefile index 273f338afb5..55c23903f81 100644 --- a/www/webacula/Makefile +++ b/www/webacula/Makefile @@ -1,10 +1,8 @@ -# $OpenBSD: Makefile,v 1.10 2011/07/22 10:20:11 sthen Exp $ +# $OpenBSD: Makefile,v 1.11 2011/07/28 09:24:35 ajacoutot Exp $ COMMENT= bacula(8) web interface -DISTNAME= webacula-5.0.3 - -REVISION= 8 +DISTNAME= webacula-5.5 CATEGORIES= www sysutils @@ -36,11 +34,8 @@ SUBST_VARS= INSTDIR TINSTDIR do-install: mv ${WRKSRC} ${INSTDIR} ${SUBST_CMD} ${INSTDIR}/application/config.ini \ - ${INSTDIR}/install/webacula.conf -.for i in install/webacula_mysql_create_database.sh \ - install/webacula_postgresql_create_database.sh \ - install/webacula_postgresql_make_tables.sh \ - application/config.ini + ${INSTDIR}/install/apache/webacula.conf +.for i in install/db.conf application/config.ini mv ${INSTDIR}/$i ${INSTDIR}/$i.dist .endfor ${SUBST_CMD} -c ${FILESDIR}/webacula-chroot-bconsole.sh \ diff --git a/www/webacula/distinfo b/www/webacula/distinfo index 456e75a2256..4284a946827 100644 --- a/www/webacula/distinfo +++ b/www/webacula/distinfo @@ -1,5 +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 +MD5 (webacula-5.5.tar.gz) = 1/UlYkeDbdxmOmMT48AZ0g== +RMD160 (webacula-5.5.tar.gz) = 7thdPI/qWCdGTjGzF4SvS9jWuNs= +SHA1 (webacula-5.5.tar.gz) = L19eO5tFyo9oyi8K9GskKiR1qlk= +SHA256 (webacula-5.5.tar.gz) = xi47kj+w3JEJV3uM6nhj0yxPL/pCsA6/3kyJ6ctWxg0= +SIZE (webacula-5.5.tar.gz) = 757935 diff --git a/www/webacula/patches/patch-application_config_ini b/www/webacula/patches/patch-application_config_ini index 47d9a6fd2ee..ecde7df8acd 100644 --- a/www/webacula/patches/patch-application_config_ini +++ b/www/webacula/patches/patch-application_config_ini @@ -1,8 +1,15 @@ -$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 +$OpenBSD: patch-application_config_ini,v 1.2 2011/07/28 09:24:35 ajacoutot Exp $ +--- application/config.ini.orig Wed May 11 10:20:56 2011 ++++ application/config.ini Thu Jul 28 10:47:40 2011 +@@ -5,25 +5,25 @@ + + [general] + ;; supported adapters : PDO_MYSQL, PDO_PGSQL, PDO_SQLITE +-db.adapter = PDO_MYSQL ++db.adapter = PDO_PGSQL + db.config.host = localhost +-db.config.username = root ++db.config.username = postgres db.config.password = db.config.dbname = bacula -;; for Sqlite db.config.dbname = "/full patch/bacula.db" @@ -14,7 +21,7 @@ $OpenBSD: patch-application_config_ini,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot E +def.timezone = "Europe/London" ;; if locale undefined, webacula use autodetect - ;; avaliable locales : en, de, fr, pt_BR, ru, it, es + ;; avaliable locales : en, cs, de, fr, pt_BR, ru, it, es ; locale = "en" ;; see INSTALL file for details @@ -25,14 +32,14 @@ $OpenBSD: patch-application_config_ini,v 1.1.1.1 2011/03/21 18:01:09 ajacoutot E +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" + ;; time to live data (session and temporary data tables) for restore files (sec) + ; default = 1h +@@ -62,7 +62,7 @@ fontsize = 10 + [webacula] email.to_admin = root@localhost - email.from = webacula@localhost +-email.from = webacula@localhost ++email.from = root@localhost + + + diff --git a/www/webacula/patches/patch-html_index_php b/www/webacula/patches/patch-html_index_php new file mode 100644 index 00000000000..0d78a268bfb --- /dev/null +++ b/www/webacula/patches/patch-html_index_php @@ -0,0 +1,15 @@ +$OpenBSD: patch-html_index_php,v 1.3 2011/07/28 09:24:35 ajacoutot Exp $ +--- html/index.php.orig Thu Jul 28 10:41:02 2011 ++++ html/index.php Thu Jul 28 10:44:37 2011 +@@ -36,8 +36,10 @@ if ( APPLICATION_ENV == 'development') { + } + + // PATH_SEPARATOR ":" +-set_include_path('.' . PATH_SEPARATOR . __DIR__ . '/../library' . PATH_SEPARATOR . '../application/models/' . ++set_include_path('.' . PATH_SEPARATOR . dirname(__FILE__) . '/../library' . PATH_SEPARATOR . '../application/models/' . + PATH_SEPARATOR . '../application/forms/' . ++ PATH_SEPARATOR . '/zendframework' . ++ PATH_SEPARATOR . '/var/www/zendframework' . + PATH_SEPARATOR . get_include_path() ); + + include "Zend/Loader.php"; diff --git a/www/webacula/patches/patch-install_SqLite_10_make_tables_sh b/www/webacula/patches/patch-install_SqLite_10_make_tables_sh new file mode 100644 index 00000000000..213100c5235 --- /dev/null +++ b/www/webacula/patches/patch-install_SqLite_10_make_tables_sh @@ -0,0 +1,12 @@ +$OpenBSD: patch-install_SqLite_10_make_tables_sh,v 1.1 2011/07/28 09:24:35 ajacoutot Exp $ +--- install/SqLite/10_make_tables.sh.orig Wed Jul 27 11:39:55 2011 ++++ install/SqLite/10_make_tables.sh Wed Jul 27 11:40:05 2011 +@@ -55,7 +55,7 @@ INSERT INTO webacula_version (versionId) VALUES (5); + END-OF-DATA + + # access by apache +-chgrp apache ${db_name_sqlite} ++chgrp www ${db_name_sqlite} + chmod g+rw ${db_name_sqlite} + + echo "Sqlite : Webacula Logbook created" diff --git a/www/webacula/patches/patch-install_SqLite_20_acl_make_tables_sh b/www/webacula/patches/patch-install_SqLite_20_acl_make_tables_sh new file mode 100644 index 00000000000..78096bbaf84 --- /dev/null +++ b/www/webacula/patches/patch-install_SqLite_20_acl_make_tables_sh @@ -0,0 +1,12 @@ +$OpenBSD: patch-install_SqLite_20_acl_make_tables_sh,v 1.1 2011/07/28 09:24:35 ajacoutot Exp $ +--- install/SqLite/20_acl_make_tables.sh.orig Wed Jul 27 11:39:03 2011 ++++ install/SqLite/20_acl_make_tables.sh Wed Jul 27 11:39:29 2011 +@@ -274,7 +274,7 @@ CREATE TABLE webacula_php_session ( + END-OF-DATA + + # access by apache +-chgrp apache ${db_name_sqlite} ++chgrp www ${db_name_sqlite} + chmod g+rw ${db_name_sqlite} + + echo "Sqlite : Webacula ACLs created" diff --git a/www/webacula/patches/patch-install_webacula_conf b/www/webacula/patches/patch-install_apache_webacula_conf similarity index 64% rename from www/webacula/patches/patch-install_webacula_conf rename to www/webacula/patches/patch-install_apache_webacula_conf index 1cafe0b6da9..1c972064c24 100644 --- a/www/webacula/patches/patch-install_webacula_conf +++ b/www/webacula/patches/patch-install_apache_webacula_conf @@ -1,7 +1,7 @@ -$OpenBSD: patch-install_webacula_conf,v 1.2 2011/03/28 13:38:38 ajacoutot Exp $ ---- install/webacula.conf.orig Mon Jan 24 11:58:16 2011 -+++ install/webacula.conf Mon Mar 28 15:35:25 2011 -@@ -3,17 +3,24 @@ +$OpenBSD: patch-install_apache_webacula_conf,v 1.1 2011/07/28 09:24:35 ajacoutot Exp $ +--- install/apache/webacula.conf.orig Wed May 11 10:20:56 2011 ++++ install/apache/webacula.conf Thu Jul 28 11:15:22 2011 +@@ -5,17 +5,24 @@ # Allows only localhost by default # @@ -9,13 +9,13 @@ $OpenBSD: patch-install_webacula_conf,v 1.2 2011/03/28 13:38:38 ajacoutot Exp $ + + LoadModule rewrite_module /usr/lib/apache/modules/mod_rewrite.so + - ++ + + php_value max_execution_time 3600 + -+ + # AccessFileName .htaccess --# RewriteLog "/var/log/httpd/rewrite.log" +-# RewriteLog "/var/log/httpd/mod_rewrite.log" +# RewriteLog "/var/www/log/rewrite.log" # RewriteLogLevel 3 @@ -30,14 +30,27 @@ $OpenBSD: patch-install_webacula_conf,v 1.2 2011/03/28 13:38:38 ajacoutot Exp $ RewriteEngine On RewriteBase /webacula -@@ -40,42 +47,42 @@ Alias /webacula /usr/share/webacula/html +@@ -30,50 +37,50 @@ Alias /webacula /usr/share/webacula/html - # AuthType Basic - # AuthName "Webacula" --# AuthUserFile /etc/httpd/conf/webacula.users -+# AuthUserFile /var/www/conf/webacula.users - # Require valid-user - + Options Indexes FollowSymLinks + AllowOverride All +- Order deny,allow ++ #Order deny,allow + +- Deny from all +- Allow from 127.0.0.1 +- Allow from localhost +- Allow from ::1 ++ #Deny from all ++ #Allow from 127.0.0.1 ++ #Allow from localhost ++ #Allow from ::1 + # + # change the settings below + # + # Allow from +-/Directory> ++ - @@ -76,13 +89,17 @@ $OpenBSD: patch-install_webacula_conf,v 1.2 2011/03/28 13:38:38 ajacoutot Exp $ Deny from all +- ++ + Order deny,allow + Deny from all + +@@ -81,7 +88,7 @@ Alias /webacula /usr/share/webacula/html + # + # test mod_rewrite + # - + RewriteEngine On # for test mod_rewrite RewriteBase /webacula/test_mod_rewrite -@@ -93,4 +100,3 @@ Alias /webacula /usr/share/webacula/html - Allow from localhost - Allow from ::1 - -- diff --git a/www/webacula/patches/patch-install_db_conf b/www/webacula/patches/patch-install_db_conf new file mode 100644 index 00000000000..0be99a35e97 --- /dev/null +++ b/www/webacula/patches/patch-install_db_conf @@ -0,0 +1,12 @@ +$OpenBSD: patch-install_db_conf,v 1.1 2011/07/28 09:24:35 ajacoutot Exp $ +--- install/db.conf.orig Thu Jul 28 10:49:12 2011 ++++ install/db.conf Thu Jul 28 10:49:24 2011 +@@ -4,7 +4,7 @@ + db_name="bacula" + # for Sqlite only + db_name_sqlite="/var/bacula/working/bacula.db" +-db_user="root" ++db_user="postgres" + + # CHANGE_THIS + db_pwd="" diff --git a/www/webacula/patches/patch-install_webacula_postgresql_create_database_sh b/www/webacula/patches/patch-install_webacula_postgresql_create_database_sh deleted file mode 100644 index b3373aa3b1e..00000000000 --- a/www/webacula/patches/patch-install_webacula_postgresql_create_database_sh +++ /dev/null @@ -1,14 +0,0 @@ -$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 $* </webacula/ -*** WARNING! -By default *anyone* can access the webacula interface from localhost. -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. +The built-in admin username is "root" and the password is the one you +configured in "webacula_root_pwd" (${INSTDIR}/install/db.conf). Bacula messages configuration ============================= @@ -108,5 +93,5 @@ Messages { catalog = all, !skipped, !saved } -The reload bacula-dir(8): +Then reload bacula-dir(8): # /etc/rc.d/bacula_dir reload