From: Marcin Haba Date: Sat, 15 Aug 2015 23:43:36 +0000 (+0200) Subject: baculum: Split deb result package into baculum, baculum-lighttpd and baculum-apache2... X-Git-Tag: Release-7.4.0~229 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c99881b3c3f7b33e88bdf5d177f9995ef3f7b168;p=bacula%2Fbacula baculum: Split deb result package into baculum, baculum-lighttpd and baculum-apache2 packages --- diff --git a/gui/baculum/debian/baculum-apache2.dirs b/gui/baculum/debian/baculum-apache2.dirs new file mode 100644 index 0000000000..948b7859da --- /dev/null +++ b/gui/baculum/debian/baculum-apache2.dirs @@ -0,0 +1 @@ +etc/baculum/Data-apache \ No newline at end of file diff --git a/gui/baculum/debian/baculum-apache2.install b/gui/baculum/debian/baculum-apache2.install new file mode 100644 index 0000000000..b38195f928 --- /dev/null +++ b/gui/baculum/debian/baculum-apache2.install @@ -0,0 +1,2 @@ +build/etc/baculum/Data-apache/baculum.users /etc/baculum/Data-apache/ +build/etc/apache2/sites-available/baculum.conf /etc/apache2/sites-available/ \ No newline at end of file diff --git a/gui/baculum/debian/baculum-apache2.links b/gui/baculum/debian/baculum-apache2.links new file mode 100644 index 0000000000..35b0099ad4 --- /dev/null +++ b/gui/baculum/debian/baculum-apache2.links @@ -0,0 +1 @@ +etc/baculum/Data-apache usr/share/baculum/htdocs/protected/Data \ No newline at end of file diff --git a/gui/baculum/debian/baculum-apache2.postinst b/gui/baculum/debian/baculum-apache2.postinst new file mode 100644 index 0000000000..80ea2cd417 --- /dev/null +++ b/gui/baculum/debian/baculum-apache2.postinst @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + chown -R www-data:www-data /etc/baculum/Data-apache + chmod 750 /etc/baculum/Data-apache + chown -R www-data:www-data /var/cache/baculum + ;; +esac + +#DEBHELPER# diff --git a/gui/baculum/debian/baculum-apache2.prerm b/gui/baculum/debian/baculum-apache2.prerm new file mode 100644 index 0000000000..ff8e5c4255 --- /dev/null +++ b/gui/baculum/debian/baculum-apache2.prerm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +rm /usr/share/baculum/htdocs/protected/Data/baculum.users + +#DEBHELPER# + +exit 0 \ No newline at end of file diff --git a/gui/baculum/debian/baculum-lighttpd.dirs b/gui/baculum/debian/baculum-lighttpd.dirs new file mode 100644 index 0000000000..c4f4fbf6da --- /dev/null +++ b/gui/baculum/debian/baculum-lighttpd.dirs @@ -0,0 +1 @@ +etc/baculum/Data-lighttpd \ No newline at end of file diff --git a/gui/baculum/debian/baculum-lighttpd.init b/gui/baculum/debian/baculum-lighttpd.init new file mode 100755 index 0000000000..27f6fb30fb --- /dev/null +++ b/gui/baculum/debian/baculum-lighttpd.init @@ -0,0 +1,93 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: baculum +# Required-Start: $local_fs $remote_fs $network $syslog $named +# Required-Stop: $local_fs $remote_fs $network $syslog $named +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start/stop Baculum +# Description: Start the Baculum WebGUI Bacula Community tool. +# This script uses Lighttpd web server for working Baculum WebGUI tool. +### END INIT INFO + +DESC="Baculum WebGUI Bacula Community tool" +NAME=baculum +SCRIPTNAME=/etc/init.d/$NAME +DAEMON=/usr/sbin/lighttpd +DAEMON_OPTS="-f /etc/baculum/baculum-lighttpd.conf" +PIDFILE="/var/run/$NAME.pid" + +test -x $DAEMON || exit 0 + +check_syntax() +{ + $DAEMON -t $DAEMON_OPTS > /dev/null || exit $? +} + +. /lib/lsb/init-functions + +case "$1" in + start) + check_syntax + log_daemon_msg "Starting $DESC" $NAME + if ! start-stop-daemon --start --oknodo --quiet \ + --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS + then + log_end_msg 1 + else + log_end_msg 0 + fi + ;; + stop) + log_daemon_msg "Stopping $DESC" $NAME + if start-stop-daemon --stop --retry 30 --oknodo --quiet \ + --pidfile $PIDFILE --exec $DAEMON + then + rm -f $PIDFILE + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + reload|force-reload) + check_syntax + log_daemon_msg "Reloading $DESC configuration" $NAME + if start-stop-daemon --stop --signal INT --quiet \ + --pidfile $PIDFILE --exec $DAEMON + then + rm $PIDFILE + if start-stop-daemon --start --quiet \ + --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS ; then + log_end_msg 0 + else + log_end_msg 1 + fi + else + log_end_msg 1 + fi + ;; + reopen-logs) + log_daemon_msg "Reopening $DESC logs" $NAME + if start-stop-daemon --stop --signal HUP --oknodo --quiet \ + --pidfile $PIDFILE --exec $DAEMON + then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart) + check_syntax + $0 stop + $0 start + ;; + status) + status_of_proc -p "$PIDFILE" "$DAEMON" lighttpd && exit 0 || exit $? + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 \ No newline at end of file diff --git a/gui/baculum/debian/baculum-lighttpd.install b/gui/baculum/debian/baculum-lighttpd.install new file mode 100644 index 0000000000..21770ecdcf --- /dev/null +++ b/gui/baculum/debian/baculum-lighttpd.install @@ -0,0 +1,2 @@ +build/etc/baculum/baculum-lighttpd.conf /etc/baculum/ +build/etc/baculum/Data-lighttpd/baculum.users /etc/baculum/Data-lighttpd/ \ No newline at end of file diff --git a/gui/baculum/debian/baculum-lighttpd.links b/gui/baculum/debian/baculum-lighttpd.links new file mode 100644 index 0000000000..5477af7309 --- /dev/null +++ b/gui/baculum/debian/baculum-lighttpd.links @@ -0,0 +1 @@ +etc/baculum/Data-lighttpd usr/share/baculum/htdocs/protected/Data diff --git a/gui/baculum/debian/baculum-lighttpd.postinst b/gui/baculum/debian/baculum-lighttpd.postinst new file mode 100644 index 0000000000..c00e972a72 --- /dev/null +++ b/gui/baculum/debian/baculum-lighttpd.postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + chown -R www-data:www-data /etc/baculum/Data-lighttpd + chown www-data:www-data /etc/baculum/baculum-lighttpd.conf + chmod 750 /etc/baculum/Data-lighttpd + chown -R www-data:www-data /var/cache/baculum + ;; +esac + +#DEBHELPER# diff --git a/gui/baculum/debian/baculum-lighttpd.prerm b/gui/baculum/debian/baculum-lighttpd.prerm new file mode 100644 index 0000000000..ff8e5c4255 --- /dev/null +++ b/gui/baculum/debian/baculum-lighttpd.prerm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +rm /usr/share/baculum/htdocs/protected/Data/baculum.users + +#DEBHELPER# + +exit 0 \ No newline at end of file diff --git a/gui/baculum/debian/baculum.dirs b/gui/baculum/debian/baculum.dirs new file mode 100644 index 0000000000..02791f0468 --- /dev/null +++ b/gui/baculum/debian/baculum.dirs @@ -0,0 +1 @@ +var/cache/baculum \ No newline at end of file diff --git a/gui/baculum/debian/baculum.init b/gui/baculum/debian/baculum.init deleted file mode 100755 index 913796730b..0000000000 --- a/gui/baculum/debian/baculum.init +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: baculum -# Required-Start: $local_fs $remote_fs $network $syslog $named -# Required-Stop: $local_fs $remote_fs $network $syslog $named -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start/stop Baculum -# Description: Start the Baculum WebGUI Bacula Community tool. -# This script uses Lighttpd web server for working Baculum WebGUI tool. -### END INIT INFO - -DESC="Baculum WebGUI Bacula Community tool" -NAME=baculum -SCRIPTNAME=/etc/init.d/$NAME -DAEMON=/usr/sbin/lighttpd -DAEMON_OPTS="-f /etc/baculum/baculum.lighttpd.conf" -PIDFILE="/var/run/$NAME.pid" - -test -x $DAEMON || exit 0 - -check_syntax() -{ - $DAEMON -t $DAEMON_OPTS > /dev/null || exit $? -} - -. /lib/lsb/init-functions - -case "$1" in - start) - check_syntax - log_daemon_msg "Starting $DESC" $NAME - if ! start-stop-daemon --start --oknodo --quiet \ - --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS - then - log_end_msg 1 - else - log_end_msg 0 - fi - ;; - stop) - log_daemon_msg "Stopping $DESC" $NAME - if start-stop-daemon --stop --retry 30 --oknodo --quiet \ - --pidfile $PIDFILE --exec $DAEMON - then - rm -f $PIDFILE - log_end_msg 0 - else - log_end_msg 1 - fi - ;; - reload|force-reload) - check_syntax - log_daemon_msg "Reloading $DESC configuration" $NAME - if start-stop-daemon --stop --signal INT --quiet \ - --pidfile $PIDFILE --exec $DAEMON - then - rm $PIDFILE - if start-stop-daemon --start --quiet \ - --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS ; then - log_end_msg 0 - else - log_end_msg 1 - fi - else - log_end_msg 1 - fi - ;; - reopen-logs) - log_daemon_msg "Reopening $DESC logs" $NAME - if start-stop-daemon --stop --signal HUP --oknodo --quiet \ - --pidfile $PIDFILE --exec $DAEMON - then - log_end_msg 0 - else - log_end_msg 1 - fi - ;; - restart) - check_syntax - $0 stop - $0 start - ;; - status) - status_of_proc -p "$PIDFILE" "$DAEMON" lighttpd && exit 0 || exit $? - ;; - *) - echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2 - exit 1 - ;; -esac - -exit 0 \ No newline at end of file diff --git a/gui/baculum/debian/baculum.install b/gui/baculum/debian/baculum.install new file mode 100644 index 0000000000..c2d4f6a45a --- /dev/null +++ b/gui/baculum/debian/baculum.install @@ -0,0 +1,13 @@ +build/usr/share/baculum/htdocs/AUTHORS /usr/share/baculum/htdocs/ +build/usr/share/baculum/htdocs/framework /usr/share/baculum/htdocs/ +build/usr/share/baculum/htdocs/index.php /usr/share/baculum/htdocs/ +build/usr/share/baculum/htdocs/protected/application.xml /usr/share/baculum/htdocs/protected/ +build/usr/share/baculum/htdocs/protected/Class /usr/share/baculum/htdocs/protected/ +build/usr/share/baculum/htdocs/protected/JavaScript /usr/share/baculum/htdocs/protected/ +build/usr/share/baculum/htdocs/protected/Lang /usr/share/baculum/htdocs/protected/ +build/usr/share/baculum/htdocs/protected/Layouts /usr/share/baculum/htdocs/protected/ +build/usr/share/baculum/htdocs/protected/Pages /usr/share/baculum/htdocs/protected/ +build/usr/share/baculum/htdocs/protected/Portlets /usr/share/baculum/htdocs/protected/ +build/usr/share/baculum/htdocs/themes /usr/share/baculum/htdocs/ +build/usr/share/locale/en/LC_MESSAGES/baculum.mo /usr/share/locale/en/LC_MESSAGES/ +build/usr/share/locale/pl/LC_MESSAGES/baculum.mo /usr/share/locale/pl/LC_MESSAGES/ \ No newline at end of file diff --git a/gui/baculum/debian/baculum.links b/gui/baculum/debian/baculum.links index c2b821f6ac..11559a0345 100644 --- a/gui/baculum/debian/baculum.links +++ b/gui/baculum/debian/baculum.links @@ -1,5 +1,6 @@ usr/share/javascript/excanvas/excanvas.js usr/share/baculum/htdocs/protected/JavaScript/excanvas.js -etc/baculum/baculum.users usr/share/baculum/htdocs/protected/Data/baculum.users usr/share/doc/baculum/copyright usr/share/baculum/htdocs/LICENSE var/cache/baculum usr/share/baculum/htdocs/assets -var/cache/baculum usr/share/baculum/htdocs/protected/runtime \ No newline at end of file +var/cache/baculum usr/share/baculum/htdocs/protected/runtime +usr/share/locale/en/LC_MESSAGES/baculum.mo usr/share/baculum/htdocs/protected/Lang/en/messages.mo +usr/share/locale/pl/LC_MESSAGES/baculum.mo usr/share/baculum/htdocs/protected/Lang/pl/messages.mo \ No newline at end of file diff --git a/gui/baculum/debian/baculum.postinst b/gui/baculum/debian/baculum.postinst index fee9d1b58f..1a21eca17b 100644 --- a/gui/baculum/debian/baculum.postinst +++ b/gui/baculum/debian/baculum.postinst @@ -4,13 +4,8 @@ set -e case "$1" in configure) - chown -R www-data:www-data /etc/baculum chown -R www-data:www-data /usr/share/baculum/htdocs - chmod 750 /etc/baculum - chmod 750 /usr/share/baculum/htdocs/protected/Data chown -R www-data:www-data /var/cache/baculum - chown www-data:www-data /var/log/baculum - chmod 750 /var/log/baculum ;; esac diff --git a/gui/baculum/debian/baculum.prerm b/gui/baculum/debian/baculum.prerm index 697846fb2c..b9555f2ad0 100644 --- a/gui/baculum/debian/baculum.prerm +++ b/gui/baculum/debian/baculum.prerm @@ -3,7 +3,6 @@ set -e rm /usr/share/baculum/htdocs/protected/JavaScript/excanvas.js -rm /usr/share/baculum/htdocs/protected/Data/baculum.users rm /usr/share/baculum/htdocs/LICENSE #DEBHELPER# diff --git a/gui/baculum/debian/changelog b/gui/baculum/debian/changelog index 5ac862d147..29fe299bc0 100644 --- a/gui/baculum/debian/changelog +++ b/gui/baculum/debian/changelog @@ -1,5 +1,18 @@ -baculum (7.0.5) stable; urgency=low +baculum (7.2.0-1~vivid1) vivid; urgency=medium - * new upstream + [ Marcin Haba ] + * update upstream to 7.2.0 + * Tweak typo in package description + * runtime symbolic link is not included in install file + * override dh_auto_build in rules file + * update copyright + * split package into baculum, baculum-apache2 and baculum-lighttpd packages - -- Marcin Haba Sun, 08 Feb 2015 21:00:01 +0200 + -- Marcin Haba Sun, 16 Aug 2015 00:48:01 +0200 + +baculum (7.0+git20150616ppa1~vivid1) vivid; urgency=low + + [ Marcin Haba ] + * new upstream + + -- Marcin Haba Tue, 16 Jun 2015 22:52:01 +0200 diff --git a/gui/baculum/debian/control b/gui/baculum/debian/control index 5b7670adbd..b9f10e1e99 100644 --- a/gui/baculum/debian/control +++ b/gui/baculum/debian/control @@ -8,9 +8,28 @@ Standards-Version: 3.9.6 Package: baculum Section: web Architecture: all -Depends: ${misc:Depends}, php5-cgi, php5-curl, php5-mysql, php5-pgsql, php5-sqlite, php5-json, lighttpd, libjs-excanvas +Depends: ${misc:Depends}, php5-cgi, php5-curl, php5-mysql, php5-pgsql, php5-sqlite, php5-json, libjs-excanvas Description: WebGUI tool for Bacula Community program - Baculum is web based tool to manage, administrate and monitor Bacula services. - From server side Baculum is written in PHP and works basing on PRADO Framework. + Baculum is web based tool to manage, administer and monitor Bacula services. + From server side Baculum is written in PHP and it works basing on PRADO Framework. Baculum interface enables e.g. to run Bacula backup and restore actions, take - access to Bacula console via web, watch backup graphs and others. \ No newline at end of file + access to Bacula console via web, watch backup graphs and others. + +Package: baculum-apache2 +Section: web +Architecture: all +Depends: ${misc:Depends}, apache2, libapache2-mod-php5, baculum +Conflicts: baculum-lighttpd +Description: WebGUI tool for Bacula Community program + This package provides the Apache configuration for Baculum WebGUI tool. + By using this module it is possible to run Baculum in Apache environment. + +Package: baculum-lighttpd +Section: web +Architecture: all +Depends: ${misc:Depends}, lighttpd +Conflicts: baculum-httpd +Description: WebGUI tool for Bacula Community program, baculum + This package provides the Lighttpd configuration for Baculum WebGUI tool. + By using this module it is possible to run Baculum in Lighttpd environment. + diff --git a/gui/baculum/debian/dirs b/gui/baculum/debian/dirs deleted file mode 100644 index 7b407e78ee..0000000000 --- a/gui/baculum/debian/dirs +++ /dev/null @@ -1,5 +0,0 @@ -etc/baculum -usr/share/baculum/htdocs -usr/share/baculum/htdocs/protected -var/cache/baculum -var/log/baculum \ No newline at end of file diff --git a/gui/baculum/debian/install b/gui/baculum/debian/install deleted file mode 100644 index f9fa9983b3..0000000000 --- a/gui/baculum/debian/install +++ /dev/null @@ -1,16 +0,0 @@ -.htaccess /usr/share/baculum/htdocs/ -AUTHORS /usr/share/baculum/htdocs/ -framework /usr/share/baculum/htdocs/ -index.php /usr/share/baculum/htdocs/ -protected/application.xml /usr/share/baculum/htdocs/protected/ -protected/Class /usr/share/baculum/htdocs/protected/ -protected/Data /usr/share/baculum/htdocs/protected/ -protected/.htaccess /usr/share/baculum/htdocs/protected/ -protected/JavaScript /usr/share/baculum/htdocs/protected/ -protected/Lang /usr/share/baculum/htdocs/protected/ -protected/Layouts /usr/share/baculum/htdocs/protected/ -protected/Pages /usr/share/baculum/htdocs/protected/ -protected/Portlets /usr/share/baculum/htdocs/protected/ -themes /usr/share/baculum/htdocs/ -examples/deb/baculum.users /etc/baculum/ -examples/deb/baculum.lighttpd.conf /etc/baculum/ diff --git a/gui/baculum/debian/rules b/gui/baculum/debian/rules index 251d2cff32..9dd2f0b872 100755 --- a/gui/baculum/debian/rules +++ b/gui/baculum/debian/rules @@ -14,4 +14,4 @@ PACKAGE_NAME = baculum %: dh $@ override_dh_auto_build: - true + make DESTDIR=build SAMPLETYPE=deb-template HTTPDNAME=apache2 HTTPDSITECONF=sites-available