Gentoo Archives: gentoo-dev

From: Thomas Arnhold <mail@×××××××.de>
To: Gentoo Development List <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] ebuild question, unpacking multi-packed tarballs
Date: Wed, 19 Feb 2003 17:06:57
Message-Id: 20030219165636.GA2472@slysoft.dyndns.org
In Reply to: Re: [gentoo-dev] ebuild question, unpacking multi-packed tarballs by Benjamin Podszun
1 On Wed, Feb 19, 2003 at 05:44:04PM +0100, Benjamin Podszun wrote:
2 > I'm not very experienced with ebuilds, but I'd start like this:
3 >
4 > # Would make $MY_P equal to samhain-version
5 > MY_P=samhain${P#samhain_server}
6 > # Set the source-dir to the right directory-structure (only an example)
7 > S=${WORKDIR}/${MY_P}/${MY_P}_src
8
9 I think S=${WORKDIR/${MY_P} would be ok.
10
11 > # Where can we get the file and what's its name anyway?
12 > SRC_URI="http://path/to/samhain/${MY_P}_signed.tar.gz
13 >
14 > If there's anything wrong with the lines above, please correct me.
15 > Better approaches would be nice as well..
16 >
17 > Ben
18 >
19 >
20 > On Wed, 2003-02-19 at 17:09, Michael Boman wrote:
21 > > I am trying to create ebuilds for samhain (http://la-samhna.de/samhain/index.html), both client/server and stand-alone mode. I have some problems with it thought:
22 > >
23 > > - The distribution tarball contains the GPG signature + source tarball,
24 > > so I need to unpack it several times..
25 > >
26 > > - Even thought it is using the same tarball there is 3 ways to get it
27 > > compiled: server, client and stand-alone mode
28 > >
29 > > First I am planning to have something like:
30 > >
31 > > app-admin/samhain-server
32 > > app-admin/samhain-client
33 > > app-admin/samhain-standalone
34 > >
35 > > Now, these ebuild names doesn't match the (first) tarball name:
36 > > "samhain_signed-1.7.2.tar.gz". In that tarball I have a new tarball called
37 > > "samhain-1.7.2.tar.gz"
38 > >
39 > > How do I get about to unpack this multi-packed archive in a nice and
40 > > version independent way, so when next version comes out I just need to
41 > > bump up the version number of the ebuild?
42 > >
43 > > Best regards
44 > > Michael Boman
45
46
47
48 --
49 www: http://slysoft.de
50 mail: mail@×××××××.de
51 pgp-id: 0xD92FA6E7