Enable bat, BZ 470800.

This commit is contained in:
Jon Ciesla 2008-11-17 18:07:33 +00:00
parent d923dd6cdf
commit 7dc8299430
6 changed files with 41 additions and 8 deletions

View File

@ -5,7 +5,7 @@ Name=Bacula Bat Console
GenericName=Backup Management Console
Comment=Control your Bacula Server
Exec=bat -c /etc/bacula/bat.conf
Icon=bacula.png
Icon=bat_icon
Terminal=false
Type=Application
Categories=System;Application;Utility

View File

@ -5,7 +5,7 @@ Name=Bacula WX Console
GenericName=Backup Management Console
Comment=Control your Bacula Server
Exec=bwxconsole -c /etc/bacula/bwxconsole.conf
Icon=wxwin16x16.xpm
Icon=wxwin16x16
Terminal=false
Type=Application
Categories=System;Application;Utility

View File

@ -5,7 +5,7 @@ Name=Bacula Console
GenericName=Backup Management Console
Comment=Control your Bacula Server
Exec=bgnome-console -c /etc/bacula/bgnome-console.conf
Icon=bacula.png
Icon=bacula
Terminal=false
Type=Application
Categories=System;Application;

View File

@ -5,7 +5,7 @@ Name=Bacula Monitor
GenericName=Bacula Tray Monitor
Comment=Monitor your Bacula Backup server
Exec=bacula-tray-monitor -c /etc/bacula/tray-monitor.conf
Icon=bacula-tray-monitor.xpm
Icon=bacula-tray-monitor
Terminal=false
Type=Application
Categories=System;Application;Utility

View File

@ -5,7 +5,7 @@ Name=Bacula WX Console
GenericName=Backup Management Console
Comment=Control your Bacula Server
Exec=wxconsole -c /etc/bacula/bwxconsole.conf
Icon=wxwin16x16.xpm
Icon=wxwin16x16
Terminal=false
Type=Application
Categories=System;Application;

View File

@ -9,7 +9,7 @@
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
Name: bacula
Version: 2.4.3
Release: 1%{?dist}
Release: 2%{?dist}
# See LICENSE for details
License: GPLv2 with exceptions
Group: System Environment/Daemons
@ -25,6 +25,7 @@ Source8: bacula-dir.init
Source9: bacula-sd.init
#Source10: http://download.sourceforge.net/bacula/bacula-gui-%{gui_version}.tar.gz
#Source11: bacula-web.apache
Source12: bacula-bat.desktop
Patch0: bacula-director-configuration.patch
Patch1: bacula-config.patch
#Patch2: bacula-wxconsole.patch
@ -46,7 +47,7 @@ BuildRequires: libbonobo-devel, libbonoboui-devel, bonobo-activation-devel
BuildRequires: mysql-devel, cdrecord, postgresql-devel, wxGTK-devel
BuildRequires: desktop-file-utils, python-devel, sqlite-devel, sed,
BuildRequires: libacl-devel, latex2html, tetex-latex, tetex, ghostscript
BuildRequires: dvipdfm
BuildRequires: dvipdfm, qwt-devel
%if 0%{?fedora} >= 7
BuildRequires: tcp_wrappers-devel
@ -256,6 +257,18 @@ different computers. It is based on a client/server architecture.
This package contains the gnome version of the bacula management console
%package console-bat
Summary: Bacula bat console
Group: System Environment/Daemons
Requires: usermode
%description console-bat
Bacula is a set of programs that allow you to manage the backup,
recovery, and verification of computer data across a network of
different computers. It is based on a client/server architecture.
This package contains the bat version of the bacula management console
%package console-wxwidgets
Summary: Bacula console using the wx widgets toolkit
@ -387,6 +400,8 @@ export CPPFLAGS=-I%{_includedir}/ncurses
--with-python \
--enable-smartalloc \
--with-x \
--enable-bat \
--with-qwt=/usr/lib \
$*
# Scratch this, it is trouble
# --with-readline \
@ -531,13 +546,18 @@ install -m 644 -D bacula-sqlite/src/wx-console/wxwin16x16.xpm %{buildroot}%{_dat
install -m 644 -D bacula-sqlite/scripts/wxconsole.pamd %{buildroot}%{_sysconfdir}/pam.d/wxconsole
install -m 644 -D bacula-sqlite/scripts/wxconsole.desktop.consolehelper %{buildroot}%{_sysconfdir}/security/console.apps/wxconsole
install -m 644 -D bacula-sqlite/src/tray-monitor/generic.xpm %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.xpm
install -m 644 -D bacula-sqlite/src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
ln -sf consolehelper %{buildroot}%{_bindir}/gnome-console
ln -sf consolehelper %{buildroot}%{_bindir}/wxconsole
#ln -sf consolehelper %{buildroot}%{_bindir}/bat
install -m 755 bacula-sqlite/src/qt-console/bat %{buildroot}%{_sbindir}
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE4}
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE5}
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE12}
# logrotate
@ -774,6 +794,17 @@ fi
%{_datadir}/applications/fedora-bacula-gconsole.desktop
%{_datadir}/pixmaps/bacula.png
%files console-bat
%defattr(-,root,root,-)
#%config %{_sysconfdir}/security/console.apps/bat
#%config %{_sysconfdir}/pam.d/bat
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bat.conf
#%{_bindir}/bat
%{_sbindir}/bat
%{_mandir}/man1/bat.1.gz
%{_datadir}/applications/fedora-bacula-bat.desktop
%{_datadir}/pixmaps/bat_icon.png
%files console-wxwidgets
%defattr(-,root,root,-)
@ -798,7 +829,6 @@ fi
%{_initrddir}/bacula-dir
%{_sbindir}/bregex
%{_sbindir}/bwild
%{_mandir}/man1/bat.1.gz
%{_mandir}/man8/dbcheck.8*
%{_mandir}/man8/bacula-dir.8*
%{_libexecdir}/bacula/delete_catalog_backup
@ -930,6 +960,9 @@ fi
%changelog
* Mon Nov 10 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-2
- Added bat. BZ 470800.
* Wed Oct 22 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-1
- Update to 2.4.3.