Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251551 - bacula 2.4.3.ebuild with more extensions
Summary: bacula 2.4.3.ebuild with more extensions
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 21:45 UTC by Jimmy.Jazz
Modified: 2010-01-27 13:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bacula-2.4.3.ebuild (bacula-2.4.3.ebuild,18.21 KB, text/plain)
2008-12-18 21:47 UTC, Jimmy.Jazz
Details
bacula-fd-Makefile.in.patch (bacula-fd-Makefile.in.patch,1.86 KB, patch)
2008-12-18 21:48 UTC, Jimmy.Jazz
Details | Diff
bacula-tray-monitor.pamd (bacula-tray-monitor.pamd,203 bytes, text/plain)
2008-12-18 21:49 UTC, Jimmy.Jazz
Details
bat.pamd (bat.pamd,203 bytes, text/plain)
2008-12-18 21:49 UTC, Jimmy.Jazz
Details
bconsolehelper (bconsolehelper,102 bytes, text/plain)
2008-12-18 21:49 UTC, Jimmy.Jazz
Details
bwx-console.pamd (bwx-console.pamd,203 bytes, text/plain)
2008-12-18 21:50 UTC, Jimmy.Jazz
Details
bacula-2.4.3.ebuild (bacula-2.4.3.ebuild,18.25 KB, text/plain)
2008-12-18 22:02 UTC, Jimmy.Jazz
Details
correct the bad regex for sed in bacula ebuild (bacula-2.4.3.ebuild.patch,374 bytes, text/plain)
2008-12-18 22:23 UTC, Jimmy.Jazz
Details
patch diffs between 2.4.3 & 2.4.4 (toto,13.87 KB, patch)
2009-04-01 09:51 UTC, Jimmy.Jazz
Details | Diff
ebuild diff between 2.4.3 & 2.4.4 (titi,378 bytes, patch)
2009-04-01 09:52 UTC, Jimmy.Jazz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy.Jazz 2008-12-18 21:45:29 UTC
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
Comment 1 Jimmy.Jazz 2008-12-18 21:47:54 UTC
Created attachment 175791 [details]
bacula-2.4.3.ebuild
Comment 2 Jimmy.Jazz 2008-12-18 21:48:46 UTC
Created attachment 175793 [details, diff]
bacula-fd-Makefile.in.patch
Comment 3 Jimmy.Jazz 2008-12-18 21:49:15 UTC
Created attachment 175794 [details]
bacula-tray-monitor.pamd
Comment 4 Jimmy.Jazz 2008-12-18 21:49:31 UTC
Created attachment 175795 [details]
bat.pamd
Comment 5 Jimmy.Jazz 2008-12-18 21:49:50 UTC
Created attachment 175798 [details]
bconsolehelper
Comment 6 Jimmy.Jazz 2008-12-18 21:50:13 UTC
Created attachment 175799 [details]
bwx-console.pamd
Comment 7 Jimmy.Jazz 2008-12-18 22:01:03 UTC
I forgot, bacula now supports WX GTK 2.8 and its magic file is copied in /etc
Comment 8 Jimmy.Jazz 2008-12-18 22:02:50 UTC
Created attachment 175803 [details]
bacula-2.4.3.ebuild
Comment 9 Jimmy.Jazz 2008-12-18 22:22:27 UTC
(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
Comment 10 Jimmy.Jazz 2008-12-18 22:23:55 UTC
Created attachment 175808 [details]
correct the bad regex for sed in bacula ebuild
Comment 11 Wormo (RETIRED) gentoo-dev 2008-12-19 07:07:11 UTC
Thanks for contributing these enhancements! Assigning to maintainers.
Comment 12 Pawel Madej aka Nysander 2009-03-28 14:58:05 UTC
are that patches valid for bacula-2.4.4 or applied already to new versions?
Comment 13 Jimmy.Jazz 2009-04-01 09:50:16 UTC
(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.
Comment 14 Jimmy.Jazz 2009-04-01 09:51:14 UTC
Created attachment 186970 [details, diff]
patch diffs between 2.4.3 & 2.4.4
Comment 15 Jimmy.Jazz 2009-04-01 09:52:04 UTC
Created attachment 186972 [details, diff]
ebuild diff between 2.4.3 & 2.4.4
Comment 16 Wolfram Schlich (RETIRED) gentoo-dev 2009-09-09 08:47:10 UTC
Jimmy, what about bacula-3.0.2 which I just committed?
Comment 17 Jimmy.Jazz 2009-09-12 13:46:33 UTC
(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.
Comment 18 Wolfram Schlich (RETIRED) gentoo-dev 2010-01-27 13:53:16 UTC
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.