Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Markus Krainer <markus-krainer@...>
Subject: Re: new ebuild questions
Date: Mon, 01 Jul 2002 17:06:21 +0200
Frank Riley wrote:
> Hello,
> 
> I've created my first ebuild, and I have a few questions:
> 
> 1) The ebuild creates 2 empty directories. When I do a reinstall of the 
> ebuild, the safe unmerge of the already-installed instance removes these 
> 2 directories. Is this the correct operation, and if so how do I make 
> sure these 2 directories are not deleted when a reinstall is done?

Create an empty .keep file in these directories, i.e. add
'touch /dir/to/keep/.keep' in src_install
(iirc there's a 'keepdir' function for that)


> 3) Finally, my ebuild creates a kernel module, thus it depends on kernel 
> source being installed. Obviously, only one kernel source needs to be 
> installed, but it could be any of the various kernel sources. Is it 
> possible to "or" in the DEPEND variable (i.e. to use this ebuild, you 
> need sys-kernel/gentoo-sources or sys-kernel/vanilla-sources)?

Add "virtual/linux-sources" to your DEPEND var.

hth,

   - Markus -



References:
new ebuild questions
-- Frank Riley
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
new ebuild questions
Next by thread:
Re: new ebuild questions
Previous by date:
xfs-sources
Next by date:
Not get RIP off !!


Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.