diff options
author | kim <kim@pkgsrc.org> | 2003-09-13 18:31:32 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2003-09-13 18:31:32 +0000 |
commit | 8be25ece964bcca57a6e2feea35f7e35560d4f7b (patch) | |
tree | 602f9b111b35e1f0b3b3e6d96d9432c8e78a4da5 | |
parent | 60b39e6872d444a55f32f0b92c54757f7d55e758 (diff) | |
download | pkgsrc-8be25ece964bcca57a6e2feea35f7e35560d4f7b.tar.gz |
Add IMAP_UW_MAILSPOOLHOME (analogous to PROCMAIL_MAILSPOOLHOME). To
default user mailboxes to their home directory, specify the name of
the mailbox file.
-rw-r--r-- | mail/imap-uw/Makefile | 20 | ||||
-rw-r--r-- | mail/imap-uw/distinfo | 3 | ||||
-rw-r--r-- | mail/imap-uw/patches/patch-am | 13 |
3 files changed, 34 insertions, 2 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile index 82f593a864f..d89b0ae6a14 100644 --- a/mail/imap-uw/Makefile +++ b/mail/imap-uw/Makefile @@ -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 @@ post-extract: $${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 --git a/mail/imap-uw/distinfo b/mail/imap-uw/distinfo index 2fcdf30094f..c47896b2f8d 100644 --- a/mail/imap-uw/distinfo +++ b/mail/imap-uw/distinfo @@ -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-ai) = aaa778f60684c797cc53a109b8430fa05ec7f424 SHA1 (patch-aj) = 0a728d3b5271c048275a4d41002877e86ac275b2 SHA1 (patch-ak) = a0a1a21ec22a92d086e665b263b51532207d0e3c SHA1 (patch-al) = c8593cfbb5822efa05fb1343bbf1e8bb4d7c035f +SHA1 (patch-am) = 4537d1971ec4675889da9ef6d8c37af14ae7da75 diff --git a/mail/imap-uw/patches/patch-am b/mail/imap-uw/patches/patch-am new file mode 100644 index 00000000000..5e2f45e168a --- /dev/null +++ b/mail/imap-uw/patches/patch-am @@ -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; |