pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/imap-uw Add IMAP_UW_MAILSPOOLHOME (analogous to P...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/711cc045bfbe
branches:  trunk
changeset: 461291:711cc045bfbe
user:      kim <kim%pkgsrc.org@localhost>
date:      Sat Sep 13 18:31:32 2003 +0000

description:
Add IMAP_UW_MAILSPOOLHOME (analogous to PROCMAIL_MAILSPOOLHOME).  To
default user mailboxes to their home directory, specify the name of
the mailbox file.

diffstat:

 mail/imap-uw/Makefile         |  20 +++++++++++++++++++-
 mail/imap-uw/distinfo         |   3 ++-
 mail/imap-uw/patches/patch-am |  13 +++++++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)

diffs (72 lines):

diff -r 4dbde872a2d3 -r 711cc045bfbe mail/imap-uw/Makefile
--- a/mail/imap-uw/Makefile     Sat Sep 13 18:26:15 2003 +0000
+++ b/mail/imap-uw/Makefile     Sat Sep 13 18:31:32 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2003/09/10 11:54:41 adam Exp $
+# $NetBSD: Makefile,v 1.68 2003/09/13 18:31:32 kim Exp $
 # ATTENTION:
 # The Kerberos support in this software is known to be problematic. If you
 # upgrade this package you *must* test it on a system *without* Kerberos
@@ -6,6 +6,7 @@
 
 DISTNAME=       imap-2002e
 PKGNAME=        imap-uw-2002.5
+PKGREVISION=   1
 CATEGORIES=     mail
 MASTER_SITES=  ftp://ftp.cac.washington.edu/imap/
 EXTRACT_SUFX=  .tar.Z
@@ -110,6 +111,23 @@
                        $${file} > $${f};                               \
        done
 
+BUILD_DEFS+=   IMAP_UW_MAILSPOOLHOME
+
+post-patch:
+.if defined(IMAP_UW_MAILSPOOLHOME)
+       cd ${WRKSRC}/src/osdep/unix &&                                  \
+       ${SED}  -e 's|@SPOOLDIR@|myhomedir ()|'                         \
+               -e 's|@MAILBOX@|"${IMAP_UW_MAILSPOOLHOME}"|'            \
+               env_unix.c > env_unix.c.new &&                          \
+       ${MV} -f env_unix.c.new env_unix.c
+.else
+       cd ${WRKSRC}/src/osdep/unix &&                                  \
+       ${SED}  -e 's|@SPOOLDIR@|MAILSPOOL|'                            \
+               -e 's|@MAILBOX@|myusername ()|'                         \
+               env_unix.c > env_unix.c.new &&                          \
+       ${MV} -f env_unix.c.new env_unix.c
+.endif
+
 # Generate _pic.a library from shared objects.
 #
 post-build:
diff -r 4dbde872a2d3 -r 711cc045bfbe mail/imap-uw/distinfo
--- a/mail/imap-uw/distinfo     Sat Sep 13 18:26:15 2003 +0000
+++ b/mail/imap-uw/distinfo     Sat Sep 13 18:31:32 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2003/09/10 11:54:41 adam Exp $
+$NetBSD: distinfo,v 1.15 2003/09/13 18:31:33 kim Exp $
 
 SHA1 (imap-2002e.tar.Z) = d52749df111c31094a3a5003bb93752ea8fbeea0
 Size (imap-2002e.tar.Z) = 2157511 bytes
@@ -12,3 +12,4 @@
 SHA1 (patch-aj) = 0a728d3b5271c048275a4d41002877e86ac275b2
 SHA1 (patch-ak) = a0a1a21ec22a92d086e665b263b51532207d0e3c
 SHA1 (patch-al) = c8593cfbb5822efa05fb1343bbf1e8bb4d7c035f
+SHA1 (patch-am) = 4537d1971ec4675889da9ef6d8c37af14ae7da75
diff -r 4dbde872a2d3 -r 711cc045bfbe mail/imap-uw/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/imap-uw/patches/patch-am     Sat Sep 13 18:31:32 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-am,v 1.1 2003/09/13 18:31:34 kim Exp $
+
+--- src/osdep/unix/env_unix.c.orig     Wed Apr 16 20:14:42 2003
++++ src/osdep/unix/env_unix.c  Sat Sep 13 14:07:00 2003
+@@ -804,7 +804,7 @@
+ {
+   char tmp[MAILTMPLEN];
+   if (!sysInbox) {            /* initialize if first time */
+-    sprintf (tmp,"%s/%s",MAILSPOOL,myusername ());
++    sprintf (tmp,"%s/%s",@SPOOLDIR@,@MAILBOX@);
+     sysInbox = cpystr (tmp);  /* system inbox is from mail spool */
+   }
+   return sysInbox;



Home | Main Index | Thread Index | Old Index