]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Update example rpm specific files
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 17 Mar 2015 21:42:02 +0000 (22:42 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Fri, 20 Mar 2015 20:05:47 +0000 (21:05 +0100)
gui/baculum/examples/rpm/baculum.lighttpd.conf
gui/baculum/examples/rpm/baculum.spec

index 88294620a43632e39ddf44a5282e5d9846c4a5c3..56856d6ff9d994ca9a60c5a81eafa1fd182098b6 100644 (file)
@@ -6,20 +6,21 @@
 server.port           = 9095
 server.username       = "lighttpd"
 server.groupname      = "lighttpd"
-server.document-root  = "/var/www/baculum"
-server.errorlog       = "/var/www/baculum/protected/logs/baculum-error.log"
-accesslog.filename    = "/var/www/baculum/protected/logs/baculum-access.log"
+server.document-root  = "/usr/share/baculum/htdocs"
+server.errorlog       = "/usr/share/baculum/htdocs/protected/logs/baculum-error.log"
+accesslog.filename    = "/usr/share/baculum/htdocs/protected/logs/baculum-access.log"
 server.pid-file       = "/var/run/baculum.pid"
 
 server.modules = (
         "mod_auth",
+        "mod_alias",
         "mod_rewrite",
         "mod_fastcgi",
         "mod_accesslog"
 )
 
 auth.backend          = "plain" 
-auth.backend.plain.userfile = "/var/www/baculum/protected/Data/baculum.users"
+auth.backend.plain.userfile = "/usr/share/baculum/htdocs/protected/Data/baculum.users"
 auth.require = ( "/" => (
         "method" => "basic",
         "realm" => "Baculum Auth",
@@ -41,9 +42,22 @@ mimetype.assign = (
    ".js" => "application/javascript",
 )
 
+alias.url = (
+   "/" => "/usr/share/baculum/htdocs/"
+)
+
 fastcgi.server = (".php"=>((
   "bin-path"=>"/usr/bin/php-cgi",
-  "socket"=>"/tmp/php.socket"
+  "socket"=>"/tmp/php.sock",
+  "max-procs" => 1,
+  "bin-environment" => (
+    "PHP_FCGI_CHILDREN" => "4",
+    "PHP_FCGI_MAX_REQUESTS" => "10000"
+  ),
+  "bin-copy-environment" => (
+   "PATH", "SHELL", "USER"
+  ),
+  "broken-scriptfilename" => "enable"
 )))
 
 url.rewrite-once = (
index c62f7ca05a22ca6ad7263f84693a799f0eaa297b..17138e2512fb9c8ef00d550230c7ed79840855c0 100644 (file)
@@ -1,6 +1,6 @@
 Summary:       Baculum WebGUI tool for Bacula Community program
-Name:          bacula-gui
-Version:       7.0.5
+Name:          baculum
+Version:       7.0.20150315git
 Release:       1%{?dist}
 License:       AGPLv3
 Group:         Applications/Internet
@@ -32,21 +32,23 @@ console that communicates with Bacula bconsole program.
 
 %files
 %defattr(-,lighttpd,lighttpd)
-%attr(-,lighttpd,lighttpd) /var/www/baculum
-%attr(-,root,root) /etc/baculum
+%attr(-,lighttpd,lighttpd) /usr/share/baculum/htdocs
+%attr(-,lighttpd,lighttpd) /etc/baculum
 %attr(755,root,root) /etc/rc.d/init.d/baculum
 
 %install
-mkdir -p %{buildroot}/var/www/baculum
+mkdir -p %{buildroot}/usr/share/baculum/htdocs
 mkdir -p %{buildroot}/etc/baculum
 mkdir -p %{buildroot}/etc/rc.d/init.d
 
-cp -ra baculum %{buildroot}/var/www/
-install -m 750 baculum/examples/rpm/baculum.lighttpd.conf %{buildroot}/etc/baculum/
-install -m 755 baculum/examples/rpm/baculum.startup %{buildroot}/etc/rc.d/init.d/baculum
-install -m 600 baculum/examples/rpm/baculum.users %{buildroot}/var/www/baculum/protected/Data/
+cp -ra . %{buildroot}/usr/share/baculum/htdocs
+install -m 640 examples/rpm/baculum.lighttpd.conf %{buildroot}/etc/baculum/
+install -m 600 examples/rpm/baculum.users %{buildroot}/etc/baculum/
+install -m 755 examples/rpm/baculum.startup %{buildroot}/etc/rc.d/init.d/baculum
+
 
 %post
+ln -s /etc/baculum/baculum.users /usr/share/baculum/htdocs/protected/Data/baculum.users
 /sbin/chkconfig --add /etc/rc.d/init.d/baculum
 
 %preun
@@ -54,4 +56,3 @@ if [ $1 -eq 0 ] ; then
     /sbin/service baculum stop
     /sbin/chkconfig --del baculum
 fi
-