Gentoo Archives: gentoo-user

From: "Öhler
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] convert rpm to ebuild
Date: Fri, 11 May 2007 18:36:47
Message-Id: 3A96AA8E0B83F74B8861155C3E6CF8530DA5B5@vie-ms03.office.ecetra.com
1 Hi
2
3 I follow this treat now for a while, but something is still missing here.
4
5 RPM is not just a Binary Package. I agree most of them are.
6 Some of the RPM´s also have some scripts embedded which are not handled if you convert it with rpm2targz or simular.
7
8 For example i still look for an way to convert Legate Networker RPM´s to Gentoo Ebuild without manual extracting those scripts which are normaly handled at installtime by the RPM System :-(.
9
10
11 ------------------http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html-------------
12 Install/Erase-time Scripts
13
14 The other type of scripts that are present in the spec file are those that are only used when the package is either installed or erased. There are four scripts, each one meant to be executed at different times during the life of a package:
15
16 *
17
18 Before installation.
19 *
20
21 After installation.
22 *
23
24 Before erasure.
25 *
26
27 After erasure.
28 -----------------------------------------------------------------------------------
29
30 By the way does someone have an idea how this can be done easily without extracting them manualy ??
31
32
33 Building an Binary Gentoo Ebuild from just Binary RPM´s no problem so far, but if those scripts needed for installation, the hard life goes on.
34
35 Ciao
36
37 Alessandro
38
39
40
41
42
43 -----Original Message-----
44 From: Neil Bothwick [mailto:neil@××××××××××.uk]
45 Sent: Freitag, 11. Mai 2007 12:35
46 To: gentoo-user@l.g.o
47 Subject: Re: [gentoo-user] convert rpm to ebuild
48
49 On Fri, 11 May 2007 13:25:46 +0300, Nistor Andrei wrote:
50
51 > > That won't work, emerge can only work with ebuilds or portage binary
52 > > packages. You can either write your own ebuild to install the
53 > > binary, which is pretty straightforward, or simply unpack it to /.
54 > >
55 > Portage binary packages aren't actually .tar.gz archives?
56
57 No, they are tar.bz2 archives with some metadata appended. without that metadata, portage cannot create an entry in the package database.
58
59
60 --
61 Neil Bothwick
62
63 Life is pleasant. Death is peaceful. Its the transition thats troublesome. - Isaac Asimov
64 Die Information in dieser Nachricht ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Der Empfaenger dieser Nachricht, der nicht der Adressat, einer seiner Mitarbeiter oder sein Empfangsbevollmaechtigter ist, wird hiermit davon in Kenntnis gesetzt, dass er deren Inhalt nicht verwenden, weitergeben oder reproduzieren darf. Sollten Sie diese Nachricht irrtuemlich erhalten haben, benachrichtigen Sie uns bitte unverzueglich per Telefon und retournieren Sie uns die Nachricht per E-Mail/Fax.
65
66
67 The information contained in this e-mail is privileged and confidential and is for the exclusive use of the addressee. The person who receives this e-mail and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof. If you have received this communication by mistake, please let us know by telephone without delay and send it back to us by e-mail/fax.
68 --
69 gentoo-user@g.o mailing list