--- /dev/null
+--- bacula-5.2.1/src/wx-console/console_thread.cpp.org 2011-11-01 21:39:04.664311911 +0100
++++ bacula-5.2.1/src/wx-console/console_thread.cpp 2011-11-01 21:52:51.874066263 +0100
+@@ -483,7 +483,7 @@
+ csprint(UA_sock->msg);
+ }
+ else if (stat == BNET_SIGNAL) {
+- if (UA_sock->msglen == BNET_PROMPT) {
++ if (UA_sock->msglen == BNET_SUB_PROMPT) {
+ csprint(NULL, CS_PROMPT);
+ } else if (UA_sock->msglen == BNET_EOD) {
+ last_is_eod = 1;
+@@ -534,7 +534,7 @@
+ if (UA_sock) {
+ UA_sock->msglen = (int32_t)strlen(str);
+ pm_strcpy(&UA_sock->msg, str);
+- UA_sock->_send();
++ UA_sock->send();
+ } else if (choosingdirector) {
+ // wxString number = str;
+ // number.RemoveLast(); /* Removes \n */
Patch3: %{name}-desktop.patch
Patch4: make_catalog_backup-setup-home.patch
Patch5: %{name}-mysql_thread.patch
+Patch6: %{name}-wxconsole.patch
URL: http://www.bacula.org/
BuildRequires: acl-devel
BuildRequires: autoconf
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue
cd ../..
%endif
-%{__make}
+%{__make} 2>&1 | tee log
+# check for build errors
+grep "Error in" log && exit 1
%if %{with nagios}
# nagios plugin
%doc LICENSE
%{_pixmapsdir}/%{name}.png
%{_desktopdir}/bacula-wx.desktop
-#%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf
-#%attr(755,root,root) %{_sbindir}/bwx-console
+%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf
+%attr(755,root,root) %{_sbindir}/bwx-console
%{_mandir}/man1/bacula-bwxconsole.1*
%endif