From ee1aa83cbb4b59bb4201789d7594b2c6c9f48a88 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Tue, 17 Mar 2015 22:42:02 +0100 Subject: [PATCH] baculum: Update example rpm specific files --- .../examples/rpm/baculum.lighttpd.conf | 24 +++++++++++++++---- gui/baculum/examples/rpm/baculum.spec | 21 ++++++++-------- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/gui/baculum/examples/rpm/baculum.lighttpd.conf b/gui/baculum/examples/rpm/baculum.lighttpd.conf index 88294620a4..56856d6ff9 100644 --- a/gui/baculum/examples/rpm/baculum.lighttpd.conf +++ b/gui/baculum/examples/rpm/baculum.lighttpd.conf @@ -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 = ( diff --git a/gui/baculum/examples/rpm/baculum.spec b/gui/baculum/examples/rpm/baculum.spec index c62f7ca05a..17138e2512 100644 --- a/gui/baculum/examples/rpm/baculum.spec +++ b/gui/baculum/examples/rpm/baculum.spec @@ -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 - -- 2.39.5