Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119281 - uw-imap & heimdal ebuild proposal
Summary: uw-imap & heimdal ebuild proposal
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 05:56 UTC by M Grundman
Modified: 2011-05-06 20:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
an ebuild proposal (uw-imap-2004g-r2.ebuild,5.58 KB, text/plain)
2006-01-17 06:01 UTC, M Grundman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M Grundman 2006-01-17 05:56:28 UTC
I propose an ebuild how to compile uw-imap with heimdal. It is a quite important issue because pam_krb5afs does not work with mit-krb5 and it was impossible to use gssapi of uw-imap linked to mit-krb5 with pam_krb5afs linked to heimdal.

In order to compile we must change two files, src/osdep/unix/kerb_mit.c
and src/osdep/uniw/Makefile.gss.

cp Makefile.gss Makefile.gss.orig
    sed \
       -e "s:GSSDIR=/usr/local:GSSDIR=/usr:g" \
       -e "s:-lgssapi_krb5:-lgssapi:g" \
       -e "s:GSSCFLAGS=.*:GSSCFLAGS=-I/usr/include:g" \
        < Makefile.gss.orig > Makefile.gss

cp kerb_mit.c kerb_mit.c.orig
    sed \
        -e "s:#include <gssapi/gssapi_krb5.h>:#include <heimdal/gssapi.h>:g" \
        -e "s:#include <gssapi/gssapi_generic.h>:#include <heimdal/krb5.h>:g" \
        < kerb_mit.c.orig > kerb_mit.c
Comment 1 M Grundman 2006-01-17 06:01:18 UTC
Created attachment 77347 [details]
an ebuild proposal

This ebuild contains also another modification, private SSL keys are placed into /etc/ssl/private because some application do not like that some files in /etc/ssl/certs  cannot be read.
Comment 2 M Grundman 2006-01-17 06:32:06 UTC
a similar path is possible for pine-4.64-r1 at the end of src_unpack():

cd ${S}/imap/src/osdep/unix/
 cp Makefile.gss Makefile.gss.orig
 chmod u+w Makefile.gss
    sed \
       -e "s:GSSDIR=/usr/local:GSSDIR=/usr:g" \
       -e "s:-lgssapi_krb5:-lgssapi:g" \
       -e "s:GSSCFLAGS=.*:GSSCFLAGS=-I/usr/include:g" \
        < Makefile.gss.orig > Makefile.gss

  cp kerb_mit.c kerb_mit.c.orig
  chmod u+w kerb_mit.c
    sed \
        -e "s:#include <gssapi/gssapi_krb5.h>:#include <heimdal/gssapi.h>:g" \
        -e "s:#include <gssapi/gssapi_generic.h>:#include <heimdal/krb5.h>:g" \
        < kerb_mit.c.orig > kerb_mit.c
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2006-01-17 10:38:43 UTC
Hm, a diff to current ebuild would be appreciated. I'll have a look at this ASAP, hopefully on thursday evening.
Comment 4 Martin von Gagern 2007-02-06 15:49:23 UTC
Just encountered similar heimdal include problems with nss_ldap in bug 165638.
Notice that /usr/include/gssapi is a symlink to heimdal (at least on my setup), so maybe you don't want to change the path but only the base name of the headers.
Comment 5 Eray Aslan gentoo-dev 2011-05-06 20:16:51 UTC
Please reopen if this is still a problem.  Thanks.