From: "Martin MOKREJŠ" <mmokrejs@ribosome.natur.cuni.cz>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] New net-fs/openafs ebuild
Date: Wed, 13 Apr 2005 16:28:03 +0200 [thread overview]
Message-ID: <425D2C73.4020500@ribosome.natur.cuni.cz> (raw)
In-Reply-To: <200504132213.19918.jstubbs@gentoo.org>
Jason Stubbs wrote:
> On Wednesday 13 April 2005 22:06, Mike Frysinger wrote:
>
>>On Wednesday 13 April 2005 06:44 am, Martin MOKREJŠ wrote:
>>
>>> I'm not sure how to block the ebuild when user is running 2.6 kernel
>>>(uname(1)?), of when the /usr/src/linux points to 2.6 kernel ... or just
>>>to check whether gentoo-sources or vanila-sources of 2.4 version are
>>>installed?
>>
>>put this into pkg_setup():
>>[[ ${KV:0:3} == "2.6" ]] && die "Sorry, this package doesnt support 2.6
>>kernels"
>
>
> Better to use the kernel groups eclass of the month for this one. The defining
> of $KV will likely be removed from portage down the track.
1)
Jason, can you give me an example. ;) I'm making my first ebuild, so that's
why I came here.
2)
I have more questions hidden in the .ebuild file, but I think I shouldn't be lazy
and paste them here. ;)
src_compile() {
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
make CC="$(gcc-getCC)" MT_CC="$(gcc-getCC)" || die make
}
The above results in:
./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
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.
3)
The ebuild as I've said install config file into well-known location. I can imagine having symlinks from "standard Gentoo places" to them.
Currently I have commented that out.
# symlink configfiles in TransArc location to Gentoo's typical place
# dosym /usr/vice/etc/CellServDB /etc/afs/CellServDB
# dosym /usr/vice/etc/ThisCell /etc/afs/ThisCell
# touch /usr/vice/etc/cacheinfo
4)
Could someone explain me CONFIG_PROTECT_MASK?
# Hmm, what about this?
dodir /etc/env.d
# don't know what's this CONFIG_PROTECT_MASK usefull for
echo 'CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws"' \
>> ${D}/etc/env.d/01${PN}
echo 'PATH=/usr/afs/bin' \
>> ${D}/etc/env.d/01${PN}
echo 'ROOTPATH=/usr/afs/bin' \
>> ${D}/etc/env.d/01${PN}
Thanks for answer. ;)
Martin
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2005-04-13 14:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-13 10:44 [gentoo-dev] New net-fs/openafs ebuild Martin MOKREJŠ
2005-04-13 13:06 ` Mike Frysinger
2005-04-13 13:13 ` Jason Stubbs
2005-04-13 14:17 ` Georgi Georgiev
2005-04-13 14:36 ` Jason Stubbs
2005-04-13 14:28 ` Martin MOKREJŠ [this message]
2005-04-13 14:38 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=425D2C73.4020500@ribosome.natur.cuni.cz \
--to=mmokrejs@ribosome.natur.cuni.cz \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox