1 |
On Thu, 2009-04-30 at 21:09 +0200, Justin wrote: |
2 |
> Frank Peters wrote: |
3 |
> > Is there a way, aside from writing a custom ebuild script, of changing |
4 |
> > the install prefix for a package? What I want to do is install some |
5 |
> > packages under /usr/local or /opt rather than the default of /usr. |
6 |
> > Unless I am mistaken, there does not seem to be a way of doing this |
7 |
> > with either portage variables or with portage profiles. |
8 |
> > |
9 |
> > Using the ROOT variable is not feasible because the resulting |
10 |
> > emerge will create an independent tree of packages. I just want |
11 |
> > to shift some packages out of /usr without losing any dependency |
12 |
> > or linking information. |
13 |
> > |
14 |
> > Linux is a flexible system in that it will allow libraries, include |
15 |
> > files, and configure information to be stored in a variety of places |
16 |
> > without losing any interaction. Modification of PATH, PKG_CONFIG_PATH, |
17 |
> > CPPFLAGS, LDFLAGS, and other variables as well as the /etc/ld.so.conf |
18 |
> > file will keep a system integrated no matter where things are stored. |
19 |
> > Yet, unless I am missing something, Gentoo does not seem to embody this |
20 |
> > same flexibility, at least not in a simple manner. All packages have |
21 |
> > to go under /usr only. |
22 |
> > |
23 |
> > Is this actually the case or is there a way to change the installation |
24 |
> > prefix? |
25 |
> > |
26 |
> > Frank Peters |
27 |
> > |
28 |
> perhaps you like to go with a prefixed portage: |
29 |
> http://www.gentoo.org/proj/en/gentoo-alt/prefix/ |
30 |
> |
31 |
>From http://linuxreviews.org/gentoo/ebuilds/ |
32 |
|
33 |
Make a folder where you will store your own ebuilds |
34 |
|
35 |
mkdir -p /usr/local/portage |
36 |
|
37 |
and set that folder in /etc/make.conf: |
38 |
|
39 |
PORTDIR_OVERLAY=/usr/local/portage |
40 |
|
41 |
The folder structure in your overlay folder should be the same as found |
42 |
in /usr/portage. |