summaryrefslogtreecommitdiff
path: root/mail/courier-maildir/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2004-07-14 20:05:50 +0000
committerjlam <jlam>2004-07-14 20:05:50 +0000
commit81c74efb7deb363cf6b570b139fd9572cc766bf5 (patch)
tree34d50d57566e5374510d6eee824c49121c1648cc /mail/courier-maildir/Makefile
parent301607b0b0bfeb8a76d0b51e6f1f42f6f7f05ca5 (diff)
downloadpkgsrc-81c74efb7deb363cf6b570b139fd9572cc766bf5.tar.gz
Re-add "courier-maildirmake" as "courier-maildir" and update to utilities
from courier-0.45.6. Changes from version 0.44.2 include: * Renamed maildir* programs and manpages to be courier-maildir* to avoid conflicts with other maildir packages (notably, qmail). * New utilities to handle maildirs with ACLs to support ACL IMAP in courier-imap and sqwebmail. * Added scripts to build indices of shared maildirs on the system for courier-imap and sqwebmail.
Diffstat (limited to 'mail/courier-maildir/Makefile')
-rw-r--r--mail/courier-maildir/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/mail/courier-maildir/Makefile b/mail/courier-maildir/Makefile
new file mode 100644
index 00000000000..e691f138eb6
--- /dev/null
+++ b/mail/courier-maildir/Makefile
@@ -0,0 +1,59 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/14 20:05:50 jlam Exp $
+
+PKGNAME= courier-maildir-${BASE_VERS}
+COMMENT= Courier maildir utilities
+
+CONFLICTS= courier-maildirmake-[0-9]*
+
+USE_BUILDLINK3= yes
+USE_LANGUAGES= c c++
+USE_PKGINSTALL= yes
+USE_PERL5= yes
+PERL5_REQD+= 5.8.0
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
+
+.include "../courier-auth/Makefile.common"
+
+# WRKSRC_FILES is copied from ../courier-auth/Makefile.authdaemond.
+WRKSRC_FILES= config.guess config.sub configure \
+ install-sh mkinstalldirs \
+ depcomp missing sysconftool
+WRKSRC_FILES+= Makefile.in courier.spec.in courier.sysvinit.in \
+ dbobj.h.in dbobj.config.in courier/courier.c
+
+# These are subdirectories of courier that build auxiliary libraries
+# used by courier-maildirmake.
+#
+WRKSRC_SUBDIRS= bdbobj gdbmobj numlib liblock unicode rfc822
+
+# These are the parts of courier that we will be building and installing.
+WRKSRC_SUBDIRS+= maildir
+
+EXTRACT_ELEMENTS= ${WRKSRC_FILES:S/^/${DISTNAME}\//}
+EXTRACT_ELEMENTS+= ${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//}
+
+BUILD_DIRS= ${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}
+INSTALL_DIRS= ${WRKSRC}/maildir
+
+OWN_DIRS= ${PKG_SYSCONFDIR}/shared
+OWN_DIRS+= ${PKG_SYSCONFDIR}/shared.tmp
+CONF_FILES= ${EGDIR}/quotawarnmsg ${PKG_SYSCONFDIR}/quotawarnmsg
+
+.include "../../mk/bdb.buildlink3.mk"
+
+post-build:
+ ${SED} ${FILES_SUBST_SED} ${FILESDIR}/sharedindexupdate.sh \
+ > ${WRKDIR}/sharedindexupdate.sh
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/sharedindexupdate.sh \
+ ${DATADIR}/sharedindexupdate
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/maildir/quotawarnmsg ${EGDIR}/quotawarnmsg
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/maildir/README.maildirquota.txt \
+ ${DOCDIR}/README.maildirquota.txt
+ ${INSTALL_DATA} ${WRKSRC}/maildir/README.sharedfolders.txt \
+ ${DOCDIR}/README.sharedfolders.txt
+
+.include "../../mk/bsd.pkg.mk"