Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage package bundling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ib
n00b
n00b


Joined: 14 Mar 2003
Posts: 25

PostPosted: Tue Mar 18, 2003 10:23 pm    Post subject: portage package bundling Reply with quote

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
View user's profile Send private message
axxackall
l33t
l33t


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Wed Mar 19, 2003 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message
axxackall
l33t
l33t


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Wed Mar 19, 2003 1:22 am    Post subject: Reply with quote

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
View user's profile Send private message
ib
n00b
n00b


Joined: 14 Mar 2003
Posts: 25

PostPosted: Wed Mar 19, 2003 1:40 am    Post subject: A just what I was looking for Reply with quote

I knew it had to be something simple. Thanks for the hint, must be the lack of sleep

ib 8O
_________________
2nd Law of Thermodynamics: Chaos will Reign.
Back to top
View user's profile Send private message
ib
n00b
n00b


Joined: 14 Mar 2003
Posts: 25

PostPosted: Wed Mar 19, 2003 9:35 pm    Post subject: PORTAGE_OVERLAY info Reply with quote

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
View user's profile Send private message
rbonthond
Apprentice
Apprentice


Joined: 24 Jun 2002
Posts: 190

PostPosted: Wed Mar 19, 2003 11:07 pm    Post subject: Re: PORTAGE_OVERLAY info Reply with quote

S=${WORKDIR}/${P//netpacakge-}

don't you mean "netpackage" instead of "netpacakge" ?
Back to top
View user's profile Send private message
ib
n00b
n00b


Joined: 14 Mar 2003
Posts: 25

PostPosted: Thu Mar 20, 2003 4:08 pm    Post subject: Reply with quote

yep -- typo
_________________
2nd Law of Thermodynamics: Chaos will Reign.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Mar 20, 2003 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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