Search
j0ke.net Open Build Service
>
Projects
>
server:backup
:
testing
>
bacula
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
bacula.spec
@@ -16,11 +16,11 @@ # # norootforbuild - +%define build_console 1 Name: bacula %define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services -BuildRequires: gcc-c++ libacl-devel mysql-devel openssl-devel readline-devel tcpd-devel xorg-x11-devel +BuildRequires: gcc-c++ libacl-devel mysql-devel openssl gettext openssl-devel readline-devel tcpd-devel xorg-x11-devel License: GPL v2 or later Group: Productivity/Archiving/Backup AutoReqProv: on @@ -40,6 +40,16 @@ Patch2: %{name}-%{version}-fortify.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build + +# for console package +%if 0%{?build_console} +BuildRequires: pkgconfig pango-devel atk-devel gtk2-devel libgnomeui-devel +BuildRequires: ORBit2-devel libart_lgpl-devel libbonobo-devel libbonoboui-devel +BuildRequires: bonobo-activation-devel gconf2-devel, freetype2-devel cairo-devel +BuildRequires: fontconfig-devel gnome-vfs2-devel libpng-devel wxGTK-devel +BuildRequires: libqt4-devel libqwt5-devel +%endif + %description Bacula comes by night and sucks the vital essence from your computers. Bacula is a set of computer programs that permit you (or the system @@ -70,7 +80,22 @@ recover lost or damaged files. This package contains Bacula server daemons. +%if 0%{?build_console} +%package console +Summary: Bacula - The Network Backup Solution - GUI +Group: Productivity/Archiving/Backup +%description console +Bacula - It comes by night and sucks the vital essence from your +computers. Bacula is a set of computer programs that permit you (or the +system administrator) to manage backup, recovery, and verification of +computer data across a network of computers of different kinds. In +technical terms, it is a network client/server based backup program. +Bacula is relatively easy to use and efficient, while offering many +advanced storage management features that make it easy to find and +recover lost or damaged files. This package contains different GUIs. + +%endif %prep %setup -q @@ -80,6 +105,13 @@ %build CFLAGS="-fno-strict-aliasing $RPM_OPT_FLAGS $(ncurses5-config --cflags)" LDFLAGS="-L/usr/%{_lib}/mysql $(ncurses5-config --libs)" ./configure \ +%if 0%{?build_console} + --enable-gnome \ + --enable-bat \ + --enable-bwx-console \ + --enable-tray-monitor \ + --with-qwt=%{_prefix} \ +%endif --prefix=%{_prefix} \ --libexecdir=%{_libdir} \ --sbindir=%{_sbindir} \ @@ -91,7 +123,7 @@ --with-working-dir=/var/lib/bacula/working \ --with-mysql \ --with-openssl \ - --with-tcp-wrappers + --with-tcp-wrappers || cat config.log make CFLAGS="$RPM_OPT_FLAGS" %install @@ -114,6 +146,34 @@ install -m 644 %SOURCE21 $RPM_BUILD_ROOT/%{_fwdefdir}/bacula-fd install -m 644 %SOURCE22 $RPM_BUILD_ROOT/%{_fwdefdir}/bacula-sd +%if 0%{?build_console} +mkdir -p $RPM_BUILD_ROOT/usr/share/applications +mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps +mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps +mkdir -p $RPM_BUILD_ROOT/etc/pam.d + +cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png +cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop +cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console +cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console + +cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm +cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop + +cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm +cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop +cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console + +cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png + +cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop +cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat +cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat + +cp -p src/qt-console/bat $RPM_BUILD_ROOT%{_sbindir}/bat +cp -p src/qt-console/bat.conf $RPM_BUILD_ROOT%{sysconf_dir}/bat.conf +%endif + %clean rm -rf $RPM_BUILD_ROOT @@ -149,6 +209,7 @@ %config /etc/bacula/bacula %config /etc/bacula/dvd-handler %config /etc/bacula/disk-changer + %dir /etc/bacula %dir /var/lib/bacula %dir /var/lib/bacula/working @@ -176,6 +237,35 @@ %dir /var/lib/bacula %dir /var/lib/bacula/working +%if 0%{?build_console} +%files console +%defattr(-,root,root) +%config /etc/bacula/bat.conf +%config /etc/bacula/bgnome-console.conf +%config /etc/bacula/bwx-console.conf +%config /etc/bacula/tray-monitor.conf +%{_sbindir}/bwx-console +%{_sbindir}/bat +%{_sbindir}/bacula-tray-monitor +%{_sbindir}/bgnome-console +/usr/share/pixmaps/bacula.png +/usr/share/applications/bacula.desktop +/etc/security/console.apps/bgnome-console +/etc/pam.d/bgnome-console + +/usr/share/pixmaps/bacula-tray-monitor.xpm +/usr/share/applications/bacula-tray-monitor.desktop + +/usr/share/pixmaps/wxwin16x16.xpm +/usr/share/applications/wxconsole.desktop +/etc/pam.d/bwx-console + +/usr/share/pixmaps/bat_icon.png +/usr/share/applications/bat.desktop +/etc/security/console.apps/bat +/etc/pam.d/bat +%endif + %changelog * Wed Sep 10 2008 anicka@suse.cz - update to 2.4.2