1 |
Jason Stubbs wrote: |
2 |
> On Wednesday 13 April 2005 22:06, Mike Frysinger wrote: |
3 |
> |
4 |
>>On Wednesday 13 April 2005 06:44 am, Martin MOKREJ© wrote: |
5 |
>> |
6 |
>>> I'm not sure how to block the ebuild when user is running 2.6 kernel |
7 |
>>>(uname(1)?), of when the /usr/src/linux points to 2.6 kernel ... or just |
8 |
>>>to check whether gentoo-sources or vanila-sources of 2.4 version are |
9 |
>>>installed? |
10 |
>> |
11 |
>>put this into pkg_setup(): |
12 |
>>[[ ${KV:0:3} == "2.6" ]] && die "Sorry, this package doesnt support 2.6 |
13 |
>>kernels" |
14 |
> |
15 |
> |
16 |
> Better to use the kernel groups eclass of the month for this one. The defining |
17 |
> of $KV will likely be removed from portage down the track. |
18 |
|
19 |
1) |
20 |
Jason, can you give me an example. ;) I'm making my first ebuild, so that's |
21 |
why I came here. |
22 |
|
23 |
|
24 |
2) |
25 |
I have more questions hidden in the .ebuild file, but I think I shouldn't be lazy |
26 |
and paste them here. ;) |
27 |
|
28 |
src_compile() { |
29 |
econf --enable-transarc-paths --enable-namei-fileserver --enable-full-vos-listvol-switch --with-linux-kernel-headers=/usr/src/linux --enable-bitmap-later --enable-fast-restart --enable-largefile-fileserver --enable-bos-new-config || die econf |
30 |
make CC="$(gcc-getCC)" MT_CC="$(gcc-getCC)" || die make |
31 |
} |
32 |
|
33 |
The above results in: |
34 |
|
35 |
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-transarc-paths --enable-namei-fileserver --enable-full-vos-listvol-switch --with-linux-kernel-headers=/usr/src/linux --enable-bitmap-later --enable-fast-restart --enable-largefile-fileserver --enable-bos-new-config |
36 |
|
37 |
|
38 |
Why is there "--prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib"? OK, I believe that's because of general Gentoo instalation paths. But see the $subj, the point here is to install openafs into *standard* locations. In real it doesn't matter for the install process performed by the ebuild, as it installs files in "manual" way and ignores "make install" step. Still, for completeness I'd like to see this removed from this ebuild behaviour. |
39 |
|
40 |
|
41 |
3) |
42 |
The ebuild as I've said install config file into well-known location. I can imagine having symlinks from "standard Gentoo places" to them. |
43 |
Currently I have commented that out. |
44 |
|
45 |
# symlink configfiles in TransArc location to Gentoo's typical place |
46 |
# dosym /usr/vice/etc/CellServDB /etc/afs/CellServDB |
47 |
# dosym /usr/vice/etc/ThisCell /etc/afs/ThisCell |
48 |
# touch /usr/vice/etc/cacheinfo |
49 |
|
50 |
|
51 |
4) |
52 |
Could someone explain me CONFIG_PROTECT_MASK? |
53 |
|
54 |
# Hmm, what about this? |
55 |
dodir /etc/env.d |
56 |
# don't know what's this CONFIG_PROTECT_MASK usefull for |
57 |
echo 'CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws"' \ |
58 |
>> ${D}/etc/env.d/01${PN} |
59 |
echo 'PATH=/usr/afs/bin' \ |
60 |
>> ${D}/etc/env.d/01${PN} |
61 |
echo 'ROOTPATH=/usr/afs/bin' \ |
62 |
>> ${D}/etc/env.d/01${PN} |
63 |
|
64 |
|
65 |
Thanks for answer. ;) |
66 |
Martin |
67 |
-- |
68 |
gentoo-dev@g.o mailing list |