Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164850 - dev-db/mysql-zrm-2.2.0.ebuild (New Package)
Summary: dev-db/mysql-zrm-2.2.0.ebuild (New Package)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-02-01 14:50 UTC by James Johnson
Modified: 2022-04-26 00:01 UTC (History)
4 users (show)

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


Attachments
MySQL-zrm-1.1.4.ebuild (MySQL-zrm-1.1.4.ebuild,985 bytes, text/plain)
2007-02-01 14:52 UTC, James Johnson
Details
slightly modified version (MySQL-zrm-2.1.1.ebuild,992 bytes, text/plain)
2009-09-21 13:36 UTC, Oleg Gawriloff
Details
mysql-zrm-2.2.0.ebuild (mysql-zrm-2.2.0.ebuild,1.36 KB, application/octet-stream)
2011-05-29 22:58 UTC, Lance Albertson (RETIRED)
Details
mysql-zrm-2.2.0.ebuild (mysql-zrm-2.2.0.ebuild,1.35 KB, text/plain)
2011-05-29 23:28 UTC, Lance Albertson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Johnson 2007-02-01 14:50:51 UTC
Hi!

Please find attached MySQL-zrm-1.1.4.ebuild.

Zmanda Recovery Manager (ZRM) for MySQL simplifies life of a database administrator who needs an easy to use yet flexible and robust backup and recovery solution for MySQL server.

I suggest dev-db/MySQL-zrm. Also, this ebuild depends on dev-perl/DBI and dev-perl/XML-Parser.

James

Reproducible: Always
Comment 1 James Johnson 2007-02-01 14:52:01 UTC
Created attachment 108862 [details]
MySQL-zrm-1.1.4.ebuild
Comment 2 Dustin J. Mitchell 2008-01-28 16:46:30 UTC
I'd like to see this too.  I work for Zmanda, though not on ZRM, and I'd like to use ZRM for my home systems.  

The ebuild works unchanged for the latest release -- 1.2.1.

A question, though: the ebuild drops files in /etc/xinetd.d and /etc/logrotate.d, but doesn't require either of those applications.  Would it make more sense to make that depend on USE flags -- at least USE=xinetd?
Comment 3 Dustin J. Mitchell 2008-02-01 19:55:47 UTC
sorry to keep posting, but two additional comments on this ebuild --
  the category should probably be app-backup
  the DEPEND is really RDEPEND, since there are no build dependencies
  is there a reason to use 'dodir' instead of 'keepdir'?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-01 22:35:17 UTC
dustin: did you see the blog comment I left for you at tecosystems?
http://redmonk.com/sogrady/2006/11/06/miscellaneous-pre-travel-tidbits/#comment-291506

Wrt to the logrotate/xinetd stuff, the files get installed, but we don't bring in those apps, because not everybody wants them, and it's been raised before.

/var/{log,lib}/mysql-zrm should be keepdir yes.

Why are you installing .pm files into /usr/lib/mysql-zrm? These should go to the /usr/$(get_libdir)/perl5/vendor_perl/$PERLV 
Using /usr/lib blindly is bad news on multilib.
Maybe just convert the entire thing to use MakeMaker.

Minor other changes:
MY_PN="MySQL-zrm"
MY_P="${MY_PN}-${PV}-release"
SRC_URI="http://www.zmanda.com/downloads/community/ZRM-MySQL/$PV/Source/${MY_P}.tar.gz"

And give the ebuild a lowercase name.
Comment 5 Dustin J. Mitchell 2008-02-01 23:01:56 UTC
(In reply to comment #4)
> dustin: did you see the blog comment I left for you at tecosystems?
> http://redmonk.com/sogrady/2006/11/06/miscellaneous-pre-travel-tidbits/#comment-291506

No, but thanks for the link -- I just replied.

> Wrt to the logrotate/xinetd stuff, the files get installed, but we don't bring
> in those apps, because not everybody wants them, and it's been raised before.
> 
> /var/{log,lib}/mysql-zrm should be keepdir yes.

OK.  Thanks for confirming.

> Why are you installing .pm files into /usr/lib/mysql-zrm? These should go to
> the /usr/$(get_libdir)/perl5/vendor_perl/$PERLV 
> Using /usr/lib blindly is bad news on multilib.
> Maybe just convert the entire thing to use MakeMaker.

The problem is that those modules are "private" to ZRM -- they're not generally useful, and aren't scoped to e.g., ZRM::*, so dropping them into the regular Perl libs would likely cause trouble.  Is there somewhere else we should put them?

> Minor other changes:
> MY_PN="MySQL-zrm"
> MY_P="${MY_PN}-${PV}-release"
> SRC_URI="http://www.zmanda.com/downloads/community/ZRM-MySQL/$PV/Source/${MY_P}.tar.gz"
> 
> And give the ebuild a lowercase name.

Gotcha.
Comment 6 Christophe PEREZ 2009-06-14 19:05:55 UTC
no news about that ?
new ebuild ?
Comment 7 Dustin J. Mitchell 2009-06-14 19:18:18 UTC
Christophe - I think what's missing is a maintainer for this.  If you know any Gentoo devs, encourage them to adopt it :)
Comment 8 Christophe PEREZ 2009-06-16 21:02:42 UTC
I tried this ebuild with 2.1 version and it works fine.
Very simple tool to install.
I just changed what was proposed in previous comments.


But I'm not a maintainer ;)
Comment 9 Oleg Gawriloff 2009-09-21 13:36:57 UTC
Created attachment 204817 [details]
slightly modified version

Include ~amd64 to build on amd64 systems
Comment 10 Oleg Gawriloff 2010-07-21 01:45:17 UTC
Availably in my overlay at http://code.google.com/p/barzog-gentoo-overlay/
Comment 11 Lance Albertson (RETIRED) gentoo-dev 2011-05-28 16:51:05 UTC
We use mysql-zrm at the OSUOSL and have been maintaining an internal ebuild for a while now. I'll take over maintainership for this package. I noticed we're still several versions behind so I'll get it up to speed soon.
Comment 12 Lance Albertson (RETIRED) gentoo-dev 2011-05-29 22:58:48 UTC
Created attachment 275047 [details]
mysql-zrm-2.2.0.ebuild

Submitting my cleaned up version of Oleg's ebuild. I discovered several troubling aspects of how this was packaged by upstream. I considered migrating it to MakeMaker but decided not to do it this go around as it would have required much many changes to the upstream package.

Something to consider is they package XML::RSS and Data::Report inside of the package. IMO those should be ripped out of the package and added as a package dep. If others feel the same way I will test that out and change the ebuild to work in that fashion.

Please comment.
Comment 13 Lance Albertson (RETIRED) gentoo-dev 2011-05-29 23:28:49 UTC
Created attachment 275051 [details]
mysql-zrm-2.2.0.ebuild

Updated ebuild with some fixes from Tim via IRC. As for the packaged modules I decided to remove XML::RSS and add it as a dep and plan to file a bug to get Data::Report into portage for a future revision. For now I'll keep it in the package with the intention of getting it fixed.

I'll also see if upstream and come up with a saner tarball layout that includes a MakeMaker still install.
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-05-30 00:45:18 UTC
mysql team doesn't maintain random MySQL-using stuff, removing us from CC.