summaryrefslogtreecommitdiff
path: root/mail/imap-uw/Makefile
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2003-09-13 18:31:32 +0000
committerkim <kim@pkgsrc.org>2003-09-13 18:31:32 +0000
commit8be25ece964bcca57a6e2feea35f7e35560d4f7b (patch)
tree602f9b111b35e1f0b3b3e6d96d9432c8e78a4da5 /mail/imap-uw/Makefile
parent60b39e6872d444a55f32f0b92c54757f7d55e758 (diff)
downloadpkgsrc-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.
Diffstat (limited to 'mail/imap-uw/Makefile')
-rw-r--r--mail/imap-uw/Makefile20
1 files changed, 19 insertions, 1 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: