View previous topic :: View next topic |
Author |
Message |
ib n00b
Joined: 14 Mar 2003 Posts: 25
|
Posted: Tue Mar 18, 2003 10:23 pm Post subject: portage package bundling |
|
|
Greetings,
I'm fairly new to this distro, and I'm liking what I'm finding.
There is however one major issue that I have been unable to solve. Is there a tool to install groups of programs. I.E. "Developent tools" Many rpm based distros allow you to define groups or collections of software. To install you simply select the group instead of each individual package. Basically something similar to CPANs Bundle.
Thanks in advance,
IB _________________ 2nd Law of Thermodynamics: Chaos will Reign. |
|
Back to top |
|
|
axxackall l33t
Joined: 06 Nov 2002 Posts: 651 Location: Toronto, Ontario, 3rd Rock From Sun
|
Posted: Wed Mar 19, 2003 1:14 am Post subject: |
|
|
There is such tool. It's Portage itself.
In PORTAGE_OVERLAY you can create your own ebuild, which does not not compile anything by itself, but which RDEPENDS on packages you like.
Thus, you will make your own choice among alternative options and you will install *all* what you want and *only* what you want (or needed by packages you want).
That the spirit of Gentoo. |
|
Back to top |
|
|
axxackall l33t
Joined: 06 Nov 2002 Posts: 651 Location: Toronto, Ontario, 3rd Rock From Sun
|
Posted: Wed Mar 19, 2003 1:22 am Post subject: |
|
|
Look at this example:
Code: |
root# cat /usr/portage/x11-plugins/gkrellm-plugins/gkrellm-plugins-1.2.11-r1.ebuild
# Copyright ...
# $Header: ...
IUSE="gnome"
S=${WORKDIR}/${P//gkrellm-}
DESCRIPTION="emerge this package to install all of the gkrellm plugins"
HOMEPAGE="http://www.gkrellm.net/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc "
DEPEND="=app-admin/gkrellm-1.2*
x11-plugins/gkrellm-bfm
x11-plugins/gkrellm-console
x11-plugins/gkrellm-mailwatch
x11-plugins/gkrellm-radio
x11-plugins/gkrellm-reminder
x11-plugins/gkrellm-volume
x11-plugins/gkrellmitime
x11-plugins/gkrellmlaunch
x11-plugins/gkrellmms
x11-plugins/gkrellmoon
x11-plugins/gkrellmouse
x11-plugins/gkrellmwho
net-wireless/gkrellmwireless
x11-plugins/gkrellshoot
x11-plugins/gkrellweather
gnome? ( x11-plugins/gkrellm-gnome )"
root#
|
See? This ebuild doesn't compile anything by itself. Instead, it refers to other packages and that forces to emerge all of them.
They use DEPEND, as they do it with plugins. Personally, I prefer RDEPEND for run-time dependencies. |
|
Back to top |
|
|
ib n00b
Joined: 14 Mar 2003 Posts: 25
|
Posted: Wed Mar 19, 2003 1:40 am Post subject: A just what I was looking for |
|
|
I knew it had to be something simple. Thanks for the hint, must be the lack of sleep
ib _________________ 2nd Law of Thermodynamics: Chaos will Reign. |
|
Back to top |
|
|
ib n00b
Joined: 14 Mar 2003 Posts: 25
|
Posted: Wed Mar 19, 2003 9:35 pm Post subject: PORTAGE_OVERLAY info |
|
|
O.K. So I'm trying to do as you suggested creating my own ebuild file using your example as a reference, that includes the packages I want added. I've uncommented the PORTAGE_OVERLAY=/usr/local/portage and copied my 'netpackages.ebuild' file to this directory. When I try and do
Code: |
emerge netpackage
Calculating dependencies
emerge: there are no masked or unmasked ebuilds to satisfy "netpackage".
!!! Error calculating dependancies. Please correct.
|
The only thing I can think of is that the following
Code: |
S=${WORKDIR}/${P//netpacakge-}
|
Means the path should be different. Any thoughts _________________ 2nd Law of Thermodynamics: Chaos will Reign. |
|
Back to top |
|
|
rbonthond Apprentice
Joined: 24 Jun 2002 Posts: 190
|
Posted: Wed Mar 19, 2003 11:07 pm Post subject: Re: PORTAGE_OVERLAY info |
|
|
S=${WORKDIR}/${P//netpacakge-}
don't you mean "netpackage" instead of "netpacakge" ? |
|
Back to top |
|
|
ib n00b
Joined: 14 Mar 2003 Posts: 25
|
Posted: Thu Mar 20, 2003 4:08 pm Post subject: |
|
|
yep -- typo _________________ 2nd Law of Thermodynamics: Chaos will Reign. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Mar 20, 2003 8:10 pm Post subject: |
|
|
You have to choose a category for your package. In this case, maybe "net-misc" would be best. Make a net-misc directory in your overlay directory, and put the ebuild there. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|