Hi again.

After building current courier-authlib, I'm now going to o the same with 
courier package.

Here again, Gentoo patches some stuff that IMHO could be done upstream.
Attached is a patch file that replaces pam_stack.so with PAM's include 
feature. This is the way to go with current PAM versions (Don't remember the 
version it was introduced). PAM 0.99 and later does not contain pam_stack.so.

Second, there is a patch to effectively disable rwoutput() function. I did not 
find out when or why one would need this. Gentoo has a use-flag for this. If 
there's really a reason to disable this, it should be configurable within 
courier.

Third, a new configure flag for disabling FAM is added. This makes courier 
able to build even with no FAM installed.


That's all I found prior to build courier on my test machine. :)
The autoconf/automale/libtool-stuff applies to this as well.

regards,
Bernd
--- courier-0.53.2/webmail/sqwebmail-system-auth.pamconf        2007/05/10 
05:49:26     1.1
+++ courier-0.53.2/webmail/sqwebmail-system-auth.pamconf        2007/05/13 
18:19:03
@@ -5,10 +5,10 @@
 # Copyright 1998-2001 Double Precision, Inc.  See COPYING for
 # distribution information.
 #
-# This is a sample authpam configuration file that uses pam_stack
-# (circa linux-pam 0.72).
+# This is a sample authpam configuration file that uses include statements
+# (circa linux-pam 0.78).

 auth       required     pam_nologin.so
-auth       required     pam_stack.so service=system-auth
-account    required     pam_stack.so service=system-auth
-session    required     pam_stack.so service=system-auth
+auth       include     system-auth
+account    include     system-auth
+session    include     system-auth
--- courier-0.53.2/imap/system-auth.authpam     2007/05/13 19:03:10     1.1
+++ courier-0.53.2/imap/system-auth.authpam     2007/05/13 19:04:03
@@ -5,10 +5,10 @@
 # Copyright 1998-2001 Double Precision, Inc.  See COPYING for
 # distribution information.
 #
-# This is a sample authpam configuration file that uses pam_stack
-# (circa linux-pam 0.72).
+# This is a sample authpam configuration file that uses include statements
+# (circa linux-pam 0.78).

 auth       required     pam_nologin.so
-auth       required     pam_stack.so service=system-auth
-account    required     pam_stack.so service=system-auth
-session    required     pam_stack.so service=system-auth
+auth       include     system-auth
+account    include     system-auth
+session    include     system-auth
--- courier/module.esmtp/esmtp.c.orig   2004-02-03 01:08:15.679486558 -0700
+++ courier/module.esmtp/esmtp.c        2004-02-03 01:07:41.262697092 -0700
@@ -255,6 +255,10 @@ const char *me;
 struct rfc822t *tp;
 struct rfc822token at;

+#if 1
+       (*func)(info);
+       return;
+#else
        if (info->ptr == 0)
        {
                (*func)(info);
@@ -289,6 +293,7 @@ struct rfc822token at;
        (*func)(info);
        *r=0;
        rfc822t_free(tp);
+#endif
 }

 static void rw_esmtp(struct rw_info *info, void (*func)(struct rw_info *))
--- courier-imap-3.0.7-orig/maildir/configure.in        2004-06-08 
15:44:23.000000000 -0700
+++ courier-imap-3.0.7/maildir/configure.in     2004-08-14 15:28:20.525714876 
-0700
@@ -60,6 +60,12 @@
 dnl Checks for library functions.
 AC_CHECK_HEADER(fam.h, :, :)
 AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
+AC_ARG_WITH(fam, [  --with-fam              Compile with FAM support],
+       fam="$withval",
+       fam="no")
+
+if test "$fam" != "no"
+then
 AC_CHECK_LIB(fam, FAMOpen,  [
                        LIBFAM=-lfam
                        AC_DEFINE_UNQUOTED(HAVE_FAM,1,
@@ -74,6 +80,7 @@
 AC_MSG_ERROR([[FAM development libraries not found.]]) ]
                                        )
                  ])
+fi

 AC_SUBST(LIBFAM)

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to