Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [prefix] Different install and build path
Date: Mon, 12 Nov 2007 08:59:07
Message-Id: 1194857932.2835.14.camel@salomon-22
In Reply to: Re: [gentoo-alt] [prefix] Different install and build path by Dirk Heinrichs
1 On Thu, 2007-11-08 at 17:05 +0200, Dirk Heinrichs wrote:
2
3 > Hmm, is it? In the end, what I ask for is the portage equivalent of:
4 >
5 > configure --prefix /afs/mydomain.com/software
6 > make
7 > make prefix=/afs/.mydomain.com/software install
8 > vos release
9
10 What if done this way:
11
12 1) in the ebuild:
13 configure --prefix=/afs/mydomain.com/software
14 make
15 make install DESTDIR="${D}"
16
17 2) in some pkg_preinst() hook:
18 mv "${D}"/afs/mydomain.com "${D}"/afs/.mydomain.com
19
20 But what happens with pkg_postinst() then ?
21
22 /haubi/
23 --
24 Michael Haubenwallner
25 Gentoo on a different level
26
27 --
28 gentoo-alt@g.o mailing list