* [gentoo-dev] New net-fs/openafs ebuild
@ 2005-04-13 10:44 Martin MOKREJŠ
2005-04-13 13:06 ` Mike Frysinger
0 siblings, 1 reply; 7+ messages in thread
From: Martin MOKREJŠ @ 2005-04-13 10:44 UTC (permalink / raw
To: gentoo-dev
Hi,
I've prepared an updated net-fs/openafs ebuild. The original reason was that
virtually all documentation is based on the style IBM/Transarc have installed it, i.e.
into /usr/afs, /usr/vice and /usr/afsws prefixes.
openafs-1.2 supports only 2.4 kernels. 2.6 kernels are supported only in 1.3. series,
at the moment 1.3.81 is reaching 1.4 release and support largefiles and 2.6 kernel.
Based on response from Ryan Phillips, I'd like to ask you to give some feedback to
the proposed ebuild. The ebuild works but have some questions (as comments in the
file itself), mostly related to the way files from sourcetree are copied/installed
into target.
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?
The original bugreport and the ubuilds are at
http://bugs.gentoo.org/show_bug.cgi?id=69649
Thanks for help!
--
Martin Mokrejs
Email: 'bW9rcmVqc21Acmlib3NvbWUubmF0dXIuY3VuaS5jeg==\n'.decode('base64')
GPG key is at http://www.natur.cuni.cz/~mmokrejs
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] New net-fs/openafs ebuild
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
0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2005-04-13 13:06 UTC (permalink / raw
To: gentoo-dev
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"
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] New net-fs/openafs ebuild
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:28 ` Martin MOKREJŠ
0 siblings, 2 replies; 7+ messages in thread
From: Jason Stubbs @ 2005-04-13 13:13 UTC (permalink / raw
To: gentoo-dev
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.
Regards,
Jason Stubbs
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] New net-fs/openafs ebuild
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Š
1 sibling, 1 reply; 7+ messages in thread
From: Georgi Georgiev @ 2005-04-13 14:17 UTC (permalink / raw
To: gentoo-dev
maillog: 13/04/2005-22:13:19(+0900): Jason Stubbs types
> 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.
You're talking about linux-info and linux-mod, right?
--
/ Georgi Georgiev / Your job is being a professor and /
\ chutz@gg3.net \ researcher: That's one hell of a good \
/ +81(90)2877-8845 / excuse for some of the brain-damages of /
\ ------------------- \ minix. (Linus Torvalds to Andrew \
/ ------------------- / Tanenbaum) /
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] New net-fs/openafs ebuild
2005-04-13 13:13 ` Jason Stubbs
2005-04-13 14:17 ` Georgi Georgiev
@ 2005-04-13 14:28 ` Martin MOKREJŠ
2005-04-13 14:38 ` Mike Frysinger
1 sibling, 1 reply; 7+ messages in thread
From: Martin MOKREJŠ @ 2005-04-13 14:28 UTC (permalink / raw
To: gentoo-dev
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] New net-fs/openafs ebuild
2005-04-13 14:17 ` Georgi Georgiev
@ 2005-04-13 14:36 ` Jason Stubbs
0 siblings, 0 replies; 7+ messages in thread
From: Jason Stubbs @ 2005-04-13 14:36 UTC (permalink / raw
To: gentoo-dev
On Wednesday 13 April 2005 23:17, Georgi Georgiev wrote:
> maillog: 13/04/2005-22:13:19(+0900): Jason Stubbs types
>
> > 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.
>
> You're talking about linux-info and linux-mod, right?
Yeah, linux-info would be the one. I don't literally mean "of the month"
above, btw. s/month/year/ would be closer ;)
Regards,
Jason Stubbs
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] New net-fs/openafs ebuild
2005-04-13 14:28 ` Martin MOKREJŠ
@ 2005-04-13 14:38 ` Mike Frysinger
0 siblings, 0 replies; 7+ messages in thread
From: Mike Frysinger @ 2005-04-13 14:38 UTC (permalink / raw
To: gentoo-dev
On Wednesday 13 April 2005 10:28 am, Martin MOKREJŠ wrote:
> 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.
dont use `econf` if you dont want the standard parameters, run `./configure`
yourself :P
> 4)
> Could someone explain me CONFIG_PROTECT_MASK?
`man make.conf` and read about the variable
> # Hmm, what about this?
> <snip>
no, the proper way is:
echo 'CONFIG_PROTECT_MASK=/blahblah' > somefile
newenvd somefile 59openafs
or even better, if your env.d entry is always going to be the same, just
create it in $FILESDIR/ and then run `doevnd "${FILESDIR}"/50openafs`
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-04-13 14:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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Š
2005-04-13 14:38 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox