Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hybrid gentoo/hand-crafted system? Ideas?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
samureye
n00b
n00b


Joined: 11 Jul 2002
Posts: 15

PostPosted: Tue Jul 23, 2002 1:07 pm    Post subject: Hybrid gentoo/hand-crafted system? Ideas? Reply with quote

Hey there..

Does anyone know of an option I might be able to set/define in the /etc/make.conf that will allow me to do the following: -

Just say I wanted to install less-376 into /usr/local/packages/less-376
and have the 'bin' and 'man' directories under it.

I would then like to symlink the files in 'bin' and 'man' into the appropriate directories.

This will allow me to have all installed packages in /usr/local/packages to which I could easily remove/disable/upgrade/etc and make maintaining different package versions even easier.

At the moment, on my other non-gentoo box, I build everything manually and install packages in /usr/local/packages but find this difficult when trying to keep up to date with latest packages (where I find gentoo excellent).

So, I guess, what I'm after is a combination of a gentoo system with a hand-crafted system.

Anyone have any ideas/flames? :wink:
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jul 23, 2002 3:22 pm    Post subject: Reply with quote

http://www.gnu.org/software/stow/

may help.
Back to top
View user's profile Send private message
n0n
Guru
Guru


Joined: 13 Jun 2002
Posts: 355

PostPosted: Tue Jul 23, 2002 6:54 pm    Post subject: Reply with quote

Another package that does the same thing as GNU Stow is called Encap, available at http://www.encap.org/. You install packages into /usr/local/encap/package-1.0.0 (or whatever), run "epkg -i package", and it makes the symlinks for you. "epkg -r package" will remove it. If package version 1.1.0 comes out, just install into /usr/local/encap/package-1.1.0, then "epkg -i package" and it'll deal with the upgrade for you. Very very cool.

Evidentally it's functionally identical to GNU Stow, but I've never used Stow myself, so I can't vouch for it. On my Debian system, though, I've got over 190 packages installed using Encap. IMO, it's the best way to keep track of self-installed software that there is.

Update: Oh, right . . . There's more to it than just the symlink thing - Encap kind of defines its own package format (in competition with Debian and RPM, etc), but I've never used that bit. So on the homepage you'll probably see stuff about their package format, but feel free to just ignore it and just worry about the symlinking.
Back to top
View user's profile Send private message
samureye
n00b
n00b


Joined: 11 Jul 2002
Posts: 15

PostPosted: Wed Jul 24, 2002 11:27 am    Post subject: nice programs, but.. Reply with quote

Thanks for the replies guys :)

Just wondering if there would be any way to integrate either of these utilities into gentoo?

So, instead of gentoo selecting the installation location, could it be chosen based on the default packages directory and the package name

'/usr/local/packages' and 'less-376' for example?
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 24, 2002 4:07 pm    Post subject: Reply with quote

I cannot see any easy way of doing this (others might :)). I suspect if you were going to write wrappers in order to integrate into ebuild, it may be as easy/hard to build an ebuild for the package itself.

If you keep it in /usr/local in separate directories, as you would with encap or stow, it is typically not that much of a maintenance headache.
Back to top
View user's profile Send private message
mvo
n00b
n00b


Joined: 16 Apr 2002
Posts: 49
Location: Frankfurt/Germany

PostPosted: Wed Jul 24, 2002 4:16 pm    Post subject: Reply with quote

I'm using checkinstall to create slackware *.tgz packages, and the slackware package tools to manage them - works fine. You can also use it to create RPM's - the RPM package manager is included in gentoo.
Back to top
View user's profile Send private message
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Wed Jul 24, 2002 5:53 pm    Post subject: Reply with quote

Gentoo/Portage does not support installing packages in locations other than where the ebuild puts them by default. It was probably a mistake, but the policy has always been to hardcode the --prefix in the ebuilds. New ebuilds are getting away from this and using "econf" instead of configure --prefix=/usr --mandir=/usr/share/man --... Eventually we may be able to support installing packages to separate subdirectories.
_________________
Chad
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 24, 2002 5:56 pm    Post subject: Reply with quote

Not sure why one would need this with emerge/ebuild itself? It already maintains a manifest of installed files in /var/db... to make emerge clean/unmerge, etc., work correctly.

I guess there is a little less clutter with separate directories :)
chadh wrote:
Gentoo/Portage does not support installing packages in locations other than where the ebuild puts them by default. It was probably a mistake, but the policy has always been to hardcode the --prefix in the ebuilds. New ebuilds are getting away from this and using "econf" instead of configure --prefix=/usr --mandir=/usr/share/man --... Eventually we may be able to support installing packages to separate subdirectories.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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