Edward Catmur wrote:
Is it possible to get Portage (or ebuild) to build a package for
installation into /opt? If not, how much work would that be?
What would be great would be to have emerge --optinstall package, that
installs the package into /opt/$PV and doesn't create a vdb entry...
feasible?

Possible, sure:

emerge -B package
mkdir /opt/package
tar -C /opt/package -xjf /usr/portage/packages/All/package-ver.tar.bz2

Smart, not really. Using portage to install packages that are outside of portage's control is kinda silly. If you want to do that, build it by hand or use a pre-compiled package such as a RPM or DEB from the author's site.

--
Andrew Gaffney                            http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer                                   Installer Project

--
gentoo-dev@gentoo.org mailing list

Reply via email to