Re: [gentoo-user] Re: [off-topic] RPM binary on Gentoo

2009-04-06 Thread Neil Bothwick
On Mon, 06 Apr 2009 14:41:43 +0300, Nikos Chantziaras wrote:

  Thanks Neil, is that the equivalent of running:
  
  yum install /usr/src/redhat/RPMS/i386/packageXXX.el5.i386.rpm

 No.  It is equivalent to running rpm2targz on RH and them extracting
 the tarball to / :P  It is equivalent to extracting *any* tarball to /
 for that matter.

More specifically, it does not run any pre/post-install scripts in the
RPM. There is an rpm package too, but this almost always fails because
the RPM database shows no dependencies installed.

 If you're familiar with ebuilds, you can write one that does all this
 so you can do emerge packageXXX to install it.

And there's an rpm.eclass to do some of the work for you.


-- 
Neil Bothwick

I've seen the procedure hundreds of times. - Qwark


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: [off-topic] RPM binary on Gentoo

2009-04-06 Thread Daniel Pielmeier
2009/4/6 Neil Bothwick n...@digimed.co.uk:
 On Mon, 06 Apr 2009 14:41:43 +0300, Nikos Chantziaras wrote:

 If you're familiar with ebuilds, you can write one that does all this
 so you can do emerge packageXXX to install it.

 And there's an rpm.eclass to do some of the work for you.

If you also have access to the source rpm, you can create an ebuild
with the help of the above mentioned eclass which just takes care of
the proper unpacking of the rpm source. You will find some information
here [1] or directly in the eclass which is located in your portage
tree in the eclass directory.

[1] 
http://devmanual.gentoo.org/ebuild-writing/functions/src_unpack/rpm-sources/index.html

-- 
Regards,
Daniel