Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74935 - app-admin/bacula update
Summary: app-admin/bacula update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords:
: 75455 75519 83610 84501 93789 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-19 06:24 UTC by D. Scott Barninger
Modified: 2005-07-03 00:17 UTC (History)
10 users (show)

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


Attachments
ebuild file (bacula-1.36.1-r2.ebuild,10.61 KB, text/plain)
2004-12-19 06:25 UTC, D. Scott Barninger
Details
bacula_log.diff (bacula_log.diff,790 bytes, patch)
2005-02-05 04:32 UTC, Carsten Frewert
Details | Diff
Revised ebuild corrects bug 75020 and adds logrotate script (bacula-1.36.1-r3.ebuild,11.25 KB, text/plain)
2005-02-06 06:24 UTC, D. Scott Barninger
Details
patch for configure script to correct sandbox violation (1.36.1-cdrecord-configure.patch,522 bytes, patch)
2005-02-06 06:25 UTC, D. Scott Barninger
Details | Diff
revised ebuild corrects documentation bug (bacula-1.36.1-r4.ebuild,11.23 KB, text/plain)
2005-02-07 13:02 UTC, D. Scott Barninger
Details
1.36.2-cdrecord-configure.patch (1.36.2-cdrecord-configure.patch,635 bytes, patch)
2005-03-06 13:23 UTC, Daniel Heule
Details | Diff
bacula-1.36.2.ebuild (bacula-1.36.2.ebuild,13.08 KB, application/octet-stream)
2005-03-06 13:24 UTC, Daniel Heule
Details
digest-bacula-1.36.2 (digest-bacula-1.36.2,66 bytes, application/octet-stream)
2005-03-06 13:24 UTC, Daniel Heule
Details
Properly working CDRECORD patch for 1.36.2 (bacula-1.36.2-nocdrecord.patch,8.67 KB, patch)
2005-03-08 07:22 UTC, Thomas Cameron
Details | Diff
Add the ability to install the console apps (bacula-1.36.2.ebuild,5.41 KB, text/plain)
2005-03-08 07:23 UTC, Thomas Cameron
Details
bacula-1.36.3.ebuild (bacula-1.36.3.ebuild,15.11 KB, text/plain)
2005-05-24 11:25 UTC, Chris Lee (RETIRED)
Details
files/digest-bacula-1.36.3 (digest-bacula-1.36.3,67 bytes, text/plain)
2005-05-24 11:27 UTC, Chris Lee (RETIRED)
Details
updated 1.36.3 ebuild (bacula-1.36.3.ebuild,10.83 KB, text/plain)
2005-06-08 06:12 UTC, Chris Lee (RETIRED)
Details
updated 1.36.3 ebuild (for init-depends patch) (bacula-1.36.3.ebuild,10.93 KB, text/plain)
2005-06-08 08:14 UTC, Chris Lee (RETIRED)
Details
init scripts depend() patch (bacula-1.36.3-init-depends.patch,1.82 KB, patch)
2005-06-08 08:16 UTC, Chris Lee (RETIRED)
Details | Diff
another 1.36.3 ebuild (bacula-1.36.3.ebuild,10.93 KB, text/plain)
2005-06-08 19:57 UTC, Chris Lee (RETIRED)
Details
patch to add working Makefile for cd rescue package (bacula-1.36.3-rescue-makefile.patch,1.09 KB, patch)
2005-06-09 08:58 UTC, Chris Lee (RETIRED)
Details | Diff
yet another 1.36.3 ebuild (bacula-1.36.3.ebuild,9.89 KB, text/plain)
2005-06-09 09:08 UTC, Chris Lee (RETIRED)
Details
fixed 1.36.3 ebuild (bacula-1.36.3.ebuild,9.78 KB, text/plain)
2005-06-09 10:25 UTC, Chris Lee (RETIRED)
Details
fixed 1.36.3 ebuild (bacula-1.36.3.ebuild,9.78 KB, text/plain)
2005-06-09 10:57 UTC, Chris Lee (RETIRED)
Details
fixed rescue-makefile patch (bacula-1.36.3-rescue-makefile.patch,1.25 KB, patch)
2005-06-20 08:13 UTC, Chris Lee (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description D. Scott Barninger 2004-12-19 06:24:28 UTC
Please find attached an updated ebuild and init script for bacula version 1.36.1.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 D. Scott Barninger 2004-12-19 06:25:41 UTC
Created attachment 46340 [details]
ebuild file
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-23 13:00:13 UTC
*** Bug 75455 has been marked as a duplicate of this bug. ***
Comment 3 Carsten Frewert 2005-02-05 04:32:04 UTC
Created attachment 50432 [details, diff]
bacula_log.diff

Patch for logging to /var/log/bacula instead of /var/bacula/log.
Comment 4 Carsten Frewert 2005-02-05 04:34:41 UTC
Comment on attachment 50432 [details, diff]
bacula_log.diff

The patch also copies a configuration file for logrotate to /etc/logrotate.d
Comment 5 D. Scott Barninger 2005-02-05 13:11:13 UTC
While the name and location of the log file may appear to have been an oversight, it is in fact the intention of the designer. Patching the software in this manner breaks it in the sense that it no longer conforms to the published documentation. Such a patch, in later releases, will also have to deal with the logwatch script now in cvs.
Comment 6 Carsten Frewert 2005-02-05 14:09:49 UTC
I dont't think I'm an FHS fanatic, but I do like all logfiles going to /var/log
(as with configuration files in /etc). However, this is only a suggestion.
OTOH, I strongly agree with you (Scott) regarding the documentation etc.
If done right, patching the logfile location must imply patching man pages and
other documentation as well (what I failed to do...).
BTW, I took a quick look into bacula.pdf and found that the paths in several 
examples are already out of sync - even without my patch ;)
Comment 7 D. Scott Barninger 2005-02-06 06:24:17 UTC
Created attachment 50534 [details]
Revised ebuild corrects bug 75020 and adds logrotate script

This revised ebuild corrects the sandbox violation noted in bug 75020 with a
patch to the configure script and adds in the logrotate script previously
missing. Requires 1.36.1-cdrecord-configure.patch
Comment 8 D. Scott Barninger 2005-02-06 06:25:11 UTC
Created attachment 50535 [details, diff]
patch for configure script to correct sandbox violation

Removes call to cdrecord in configure script to address bug 75020
Comment 9 Carsten Frewert 2005-02-06 09:39:45 UTC
Wenn installing the documentation, the ebuild calls
[...]
| dohtml -r ${S}/doc/html-manual doc/home-page
| chown -R root:root ${D}/usr/share/doc/${PF}
| chmod -R 644 ${D}/usr/share/doc/${PF}/*

This leaves the html docs unreachable as the 'execute' permissions are removed
from all directories under /usr/share/doc/${PF}.

The chmod call should be removed, dodoc and dohtml already install regular files
with 644 permissions.

The call to chown seems to be obsolete, at least if you call emerge as root.
Comment 10 D. Scott Barninger 2005-02-07 13:02:27 UTC
Created attachment 50656 [details]
revised ebuild corrects documentation bug

remove chown and chmode on documentation files.
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-06 09:33:06 UTC
*** Bug 83610 has been marked as a duplicate of this bug. ***
Comment 12 Daniel Heule 2005-03-06 13:23:40 UTC
Created attachment 52811 [details, diff]
1.36.2-cdrecord-configure.patch
Comment 13 Daniel Heule 2005-03-06 13:24:13 UTC
Created attachment 52812 [details]
bacula-1.36.2.ebuild
Comment 14 Daniel Heule 2005-03-06 13:24:37 UTC
Created attachment 52813 [details]
digest-bacula-1.36.2
Comment 15 Daniel Heule 2005-03-06 13:26:04 UTC
Hello, I have uploadet the ebuild from the bacula sf page,
please add the ebuild fast to the main portage.

Thanks Daniel Heule
Comment 16 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-08 07:09:41 UTC
*** Bug 84501 has been marked as a duplicate of this bug. ***
Comment 17 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-08 07:10:21 UTC
*** Bug 75519 has been marked as a duplicate of this bug. ***
Comment 18 Thomas Cameron 2005-03-08 07:20:21 UTC
Please review my patch file and ebuild a bit closer. If you do not use the proper patch for 1.36.2 the problem will NOT go away. I had to grep through other files and directories to come up with a properly working solution.

In addition, my ebuild file adds the ability to install a console on the client, or any other machine. This is important for those situations where the "server" may be headless (as is my case), or the server is not to be used for administrative logins.

Thomas Cameron
Comment 19 Thomas Cameron 2005-03-08 07:22:15 UTC
Created attachment 52941 [details, diff]
Properly working CDRECORD patch for 1.36.2

This patch works CORRECTLY for version 1.36.2, and the patch from 1.36.1 does
not.
Comment 20 Thomas Cameron 2005-03-08 07:23:23 UTC
Created attachment 52942 [details]
Add the ability to install the console apps

This ebuild has the added ability to control the build and install of the
console applications. Please review it a bit closer, and consider the notes I
left.
Comment 21 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-13 17:42:36 UTC
zul: would you like to join app-backup?
Comment 22 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-14 06:35:10 UTC
Robin: Do you know what's up with zul? Last seen on irc +/- two weeks, the bacula bugs are getting really old and the interest doesn't seem to be low. I tried to find a developer via irc who is using bacula - no luck. Chris White doesn't use it, but showed interest.
Comment 23 Chuck Short (RETIRED) gentoo-dev 2005-03-14 11:14:48 UTC
I dont have interest anymore bacula so i you want its yours. I dont use it at all either, and I dont have time for it.

Sorry 
chuck
Comment 24 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-14 13:46:37 UTC
Carsten: I'll grab beejay for it, since he noted in his blog that he uses it on his home network.
Comment 25 Michael Cramer 2005-04-29 12:36:40 UTC
only want to say that the version 1.36.3 was released in meantime
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2005-05-24 04:46:34 UTC
*** Bug 93789 has been marked as a duplicate of this bug. ***
Comment 27 Chris Lee (RETIRED) gentoo-dev 2005-05-24 11:25:08 UTC
Created attachment 59723 [details]
bacula-1.36.3.ebuild

working ebuild for 1.36.3 with bacula-clientonly, bacula-console, and
bacula-split USE flags, as well as support for environment variables to specify
db user, password, and host when checking db version in pkg_postinst()
Comment 28 Chris Lee (RETIRED) gentoo-dev 2005-05-24 11:27:02 UTC
Created attachment 59724 [details]
files/digest-bacula-1.36.3
Comment 29 Michael Imhof (RETIRED) gentoo-dev 2005-05-30 12:00:48 UTC
beejay: interested in maintaining bacula?
Comment 30 Chris Lee (RETIRED) gentoo-dev 2005-06-08 06:12:36 UTC
Created attachment 60836 [details]
updated 1.36.3 ebuild

Reworked use flags some more, cleaning up alot of 'if use' in the
configuration.	Added logrotate and logwatch local flags to optionally suppress
unwanted installation of respective scripts.
Shortened the verbosity of alot of einfo, particularly in pkg_postinst().
Replaced a few 'make's with 'emake's.
Comment 31 Chris Lee (RETIRED) gentoo-dev 2005-06-08 08:14:56 UTC
Created attachment 60838 [details]
updated 1.36.3 ebuild (for init-depends patch)

patched init scripts which previously omitted depend()
Comment 32 Chris Lee (RETIRED) gentoo-dev 2005-06-08 08:16:46 UTC
Created attachment 60839 [details, diff]
init scripts depend() patch

package-included split init scripts lacked depend() and caused errors on
startup if started before net or db
Comment 33 Chris Lee (RETIRED) gentoo-dev 2005-06-08 19:57:25 UTC
Created attachment 60880 [details]
another 1.36.3 ebuild

corrected bug in attachment #60838 [details] ebuild around lines 290-295 where db checks
assumed that at least one db was set in use -- added an else to force mysql if
no db specified in use.
Comment 34 Chris Lee (RETIRED) gentoo-dev 2005-06-09 08:58:36 UTC
Created attachment 60916 [details, diff]
patch to add working Makefile for cd rescue package

This lets make handle building the static file daemon and installing the rescue
package directory instead of having so many manual commands in the ebuild.
Comment 35 Chris Lee (RETIRED) gentoo-dev 2005-06-09 09:08:34 UTC
Created attachment 60917 [details]
yet another 1.36.3 ebuild

uses attachment #60916 [details, diff] patch and trims down alot of manual cd/cp/mkdir/etc,
letting (e)make do these things instead of them (redundantly) taking up space
in the ebuild.
Comment 36 Chris Lee (RETIRED) gentoo-dev 2005-06-09 10:25:29 UTC
Created attachment 60926 [details]
fixed 1.36.3 ebuild

My last couple of ebuild submissions had a bug in the detection of db use flags
which failed to properly update ${myconf} when only one db was in use.	This is
now fixed around lines 115-131.
Comment 37 Chris Lee (RETIRED) gentoo-dev 2005-06-09 10:57:08 UTC
Created attachment 60930 [details]
fixed 1.36.3 ebuild

fixed syntax errors in postinst
Comment 38 Chris Lee (RETIRED) gentoo-dev 2005-06-20 08:13:36 UTC
Created attachment 61577 [details, diff]
fixed rescue-makefile patch

previously submitted bacula-1.36.3-rescue-makefile.patch caused make to fail
during 'make install' and is now fixed
Comment 39 Fernando Serboncini (RETIRED) gentoo-dev 2005-07-02 21:03:15 UTC
Me and hadfield have just commited a new 1.36.3-r1 ebuild. Please test and
report any bugs.
Comment 40 Chris Lee (RETIRED) gentoo-dev 2005-07-03 00:17:56 UTC
Ciaranm informed me that any combination of USE flags - conflicting,
unspecified, whatever - should not cause emerge to die.  In your ebuild you have
removed some DEPEND and USE checks that were put there for that very reason. 
Either what ciaranm told me was wrong, or your ebuild deviates from policy.

Why do you have so much manual 'sed ...' in the ebuild?  Why have you removed
the split init script feature requested by users?