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
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 -
|
|