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",
".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 = (
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
%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
/sbin/service baculum stop
/sbin/chkconfig --del baculum
fi
-