View previous topic :: View next topic |
Author |
Message |
frma71 Guest
|
Posted: Thu Apr 18, 2002 5:32 am Post subject: Local ebuild files... |
|
|
Gentoo is cool !
I'd like to use the portage system for my (yet) local/private hacks... Where should I put my .ebuild-scripts for emerge to find them ? Something /usr/local/portage/... would be cool for local portage scripts. |
|
Back to top |
|
|
slik n00b
Joined: 18 Apr 2002 Posts: 48 Location: Alberta, Canada
|
Posted: Thu Apr 18, 2002 8:22 am Post subject: Re: Local ebuild files... |
|
|
frma71 wrote: | /usr/local/portage/... would be cool for local portage scripts. |
I'll second that, really handy for those times when one must Code: | emerge --clean rsync |
|
|
Back to top |
|
|
tod Developer
Joined: 17 Apr 2002 Posts: 136 Location: Ozarks, USA
|
Posted: Thu Apr 18, 2002 3:13 pm Post subject: |
|
|
Hi!
AFAIK, portage does not easily support a local portage tree yet, although it is a planned feature.
*WARNING*: The following is totally unsupported, not tested, and will most likely trash your system and should not be played with by the faint of heart or the unconfident. You have been warned, no whining if something breaks.
There are a couple of ways you might be able to work around it currently though.
1. Keep your local portage tree where-ever; /usr/local/portage for example
a. use the low-level ebuild command, i.e. ebuild foo.ebuild merge. Note: that whatever subdirectory the ebuild is in will be the pseudo category it will install under in /var/db/pkg. It is usually wise to mirror the categories in the main portage tree.
b. or, whenever you want to use your local tree, 'export PORTDIR=/usr/local/portage' (Note: your local tree will *have* to mirror the categories in the main tree)
do your custom emerging, then remember to 'unset PORTDIR' when done
2. You might be able to 'mkdir /usr/portage/myebuilds', add 'myebuilds' to /usr/portage/profiles/categories, then keep all your custom ebuilds under /usr/portage/myebuilds. However, /usr/portage/profiles/categories will get over written with every 'emerge rsync'
hth,
tod |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|