Attached is a patch to add gssapi kerberos support to the
        mutt package.  Bet you'll never guess how I read my mail ;)

        This one was a little tricky, for some reason which I am
        unable to discern, enabling gss support causes configure to
        not find the ssl libraries correctly.  At least not without
        a minor patch to configure.in and running autoreconf on
        solaris.  Maybe others can comment on a better way of
        getting this to work.

        Cheers,
        Bryan Cardillo
        Penn Bioinformatics Core
        University of Pennsylvania
        [EMAIL PROTECTED]
 mutt-config-ssl-gss.patch |   10 ++++++++++
 mutt.spec                 |   18 +++++++++++++++++-
 2 files changed, 27 insertions(+), 1 deletion(-)
diff -Nru mutt.orig/mutt-config-ssl-gss.patch mutt/mutt-config-ssl-gss.patch
--- mutt.orig/mutt-config-ssl-gss.patch 1969-12-31 19:00:00.000000000 -0500
+++ mutt/mutt-config-ssl-gss.patch      2005-08-09 17:03:45.000000000 -0400
@@ -0,0 +1,13 @@
+--- ./configure.in.orig        2004-02-12 03:51:53.000000000 -0500
++++ ./configure.in     2005-08-09 16:58:44.576165000 -0400
+@@ -524,8 +524,8 @@
+           fi
+           saved_LIBS=""
+ 
+-          AC_CHECK_LIB(crypto, X509_new,, AC_MSG_ERROR([Unable to find SSL 
library]))
+-          AC_CHECK_LIB(ssl, SSL_new,, AC_MSG_ERROR([Unable to find SSL 
library]), -lcrypto)
++          AC_CHECK_LIB(crypto, X509_new,, AC_MSG_ERROR([Unable to find SSL 
library]), -lsocket)
++          AC_CHECK_LIB(ssl, SSL_new,, AC_MSG_ERROR([Unable to find SSL 
library]), -lcrypto -lsocket)
+ 
+           AC_CHECK_FUNCS(RAND_status RAND_egd)
+ 
diff -Nru mutt.orig/mutt.spec mutt/mutt.spec
--- mutt.orig/mutt.spec 2005-06-15 14:55:42.000000000 -0400
+++ mutt/mutt.spec      2005-08-10 09:00:29.000000000 -0400
@@ -44,6 +44,7 @@
 %option       with_initials  no
 %option       with_quote     no
 %option       with_ncurses   no
+%option       with_gss       no
 
 #   list of sources
 Source0:      ftp://ftp.mutt.org/mutt/mutt-%{V_mutt}i.tar.gz
@@ -53,6 +54,9 @@
 Patch1:       
ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.vvv.nntp.gz
 Patch2:       
ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.vvv.initials.gz
 Patch3:       
ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.vvv.quote.gz
+%if "%{with_gss}" == "yes"
+Patch4:       mutt-config-ssl-gss.patch
+%endif
 
 #   build information
 Prefix:       %{l_prefix}
@@ -68,6 +72,10 @@
 BuildPreReq:  slang
 PreReq:       slang
 %endif
+%if "%{with_gss}" == "yes"
+BuildPreReq:  kerberos, autoconf
+PreReq:       kerberos
+%endif
 AutoReq:      no
 AutoReqProv:  no
 Conflicts:    mutt15
@@ -133,8 +141,13 @@
 %if "%{with_quote}" == "yes"
     %patch -p1 -P 3
 %endif
+%if "%{with_gss}" == "yes"
+    %patch -p1 -P 4
+%endif
 
 %build
+    %{l_tool_locate autoreconf autoreconf} -W none
+
     #   configure for particular platform
     echo 'am_cv_func_iconv=no' >config.cache
     echo 'ac_cv_header_iconv_h=no' >>config.cache
@@ -169,6 +182,9 @@
 %if "%{with_nntp}" == "yes"
         --enable-nntp  %endif
+%if "%{with_gss}" == "yes"
+        --with-gss=%{l_prefix} +%endif
         --enable-buffy-size          --disable-warnings          
--disable-iconv @@ -176,7 +192,7 @@
         
 
     #   perform standard build procedure
-    %{l_make} %{l_mflags}
+    %{l_make} %{l_mflags} LDFLAGS="-Limap %{l_ldflags}"
 
 %install
     rm -rf 

Reply via email to