The bacula Makefile.in contains many errors that prevent tray-monitor to be compiled. That ebuild will accept more USE flags: examples for example files, vim-syntax for vim colour syntaxes and pam. It includes the tray monitor too. With pam activated, bacula will use an helper instead of calling gksu directly from a .desktop file. With that flag, the user can run bacula without any root privileges. Also, the ebuild lacks some policy files for the moment. Besides, the bconsolehelper script will work with gksu until the policykit has a better support. The helper avoid to have gksu declared in the .destktop file and it doesn't use ck-launch-session for the reason explained above :) I have tested the ebuild with the following flags activated, USE="X bacula-console examples gnome logrotate mysql pam python qt4 readline ssl tcpd vim-syntax wxwindows" @maintainers: I don't have too much time to test it intensively, so be careful. Reproducible: Always
Created attachment 175791 [details] bacula-2.4.3.ebuild
Created attachment 175793 [details, diff] bacula-fd-Makefile.in.patch
Created attachment 175794 [details] bacula-tray-monitor.pamd
Created attachment 175795 [details] bat.pamd
Created attachment 175798 [details] bconsolehelper
Created attachment 175799 [details] bwx-console.pamd
I forgot, bacula now supports WX GTK 2.8 and its magic file is copied in /etc
Created attachment 175803 [details] bacula-2.4.3.ebuild
(In reply to comment #8) > Created an attachment (id=175803) [edit] > bacula-2.4.3.ebuild > Sorry, sed regex is somehow corrupted ... if the pathname isn't /usr/bin you won't call the helper at all (see attachment) --- /var/tmp/bacula-2.4.3.ebuild 2008-12-18 23:17:47.000000000 +0100 +++ bacula-2.4.3.ebuild 2008-12-18 23:15:40.813403901 +0100 @@ -376,7 +376,7 @@ "${D}"/usr/share/applications/${desktop}.desktop if useq pam; then - sed -i "s,/usr/sbin/,/usr/bin/" \ + sed -i "s,/usr/sbin/,/usr/bin/," \ "${D}"/usr/share/applications/${desktop}.desktop fi done
Created attachment 175808 [details] correct the bad regex for sed in bacula ebuild
Thanks for contributing these enhancements! Assigning to maintainers.
are that patches valid for bacula-2.4.4 or applied already to new versions?
(In reply to comment #12) > are that patches valid for bacula-2.4.4 or applied already to new versions? > Most yes, see attachments please.
Created attachment 186970 [details, diff] patch diffs between 2.4.3 & 2.4.4
Created attachment 186972 [details, diff] ebuild diff between 2.4.3 & 2.4.4
Jimmy, what about bacula-3.0.2 which I just committed?
(In reply to comment #16) > Jimmy, what about bacula-3.0.2 which I just committed? > It fits most of the user needs but I still will stuck with mine :) The current working version I'm using is 3.0.1 and 3.0.2 Anyway, did you encounter any problems to implement the helper? Actually, its main interest is to ease the use of consolekit (when ck-launch-session will be functional) without changing any upstream scripts (if I remember well). At the moment (for some reasons) I'm using gksu in combination with the helper and the sudoers file (batman ALL=(root) NOPASSWD: /usr/sbin/bat, /usr/sbin/bacula-tray-monitor, /usr/sbin/bwx-console, /usr/sbin/bgnome-console). That's not the best way to proceed but at least I can use the status monitor and other scripts without password ;) To avoid dealing with duplicate libraries, I'm using only the last wxGTK 2.8. Is there any reason to compile bacula with the old wxGTK 2.6 ? In case that you haven't already tried the way I did it, I can send you the full ebuild + scripts in a tar file so that you won't waste your time to gather the lot. FYI, some commands entered in bat won't work properly due to some lack of compability with readline or simply because of nasty bugs. Anyway, all of them will at least do their job in the wxconsole. Thx to make the lastest release ebuild available to us.
gnome-console support has been dropped from upstream Bacula 5.0.0, bwx-console/wxwindows support is still deprecated and thus will be removed from bacula-5.0.0.ebuild. Please reopen a new bug for what's left from your original changes.