1 |
Frank Riley wrote: |
2 |
> Hello, |
3 |
> |
4 |
> I've created my first ebuild, and I have a few questions: |
5 |
> |
6 |
> 1) The ebuild creates 2 empty directories. When I do a reinstall of the |
7 |
> ebuild, the safe unmerge of the already-installed instance removes these |
8 |
> 2 directories. Is this the correct operation, and if so how do I make |
9 |
> sure these 2 directories are not deleted when a reinstall is done? |
10 |
|
11 |
Create an empty .keep file in these directories, i.e. add |
12 |
'touch /dir/to/keep/.keep' in src_install |
13 |
(iirc there's a 'keepdir' function for that) |
14 |
|
15 |
|
16 |
> 3) Finally, my ebuild creates a kernel module, thus it depends on kernel |
17 |
> source being installed. Obviously, only one kernel source needs to be |
18 |
> installed, but it could be any of the various kernel sources. Is it |
19 |
> possible to "or" in the DEPEND variable (i.e. to use this ebuild, you |
20 |
> need sys-kernel/gentoo-sources or sys-kernel/vanilla-sources)? |
21 |
|
22 |
Add "virtual/linux-sources" to your DEPEND var. |
23 |
|
24 |
hth, |
25 |
|
26 |
- Markus - |