summaryrefslogtreecommitdiff
path: root/mail/courier-imap/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/courier-imap/Makefile')
-rw-r--r--mail/courier-imap/Makefile54
1 files changed, 26 insertions, 28 deletions
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile
index 18944470c0a..a8f8770fc27 100644
--- a/mail/courier-imap/Makefile
+++ b/mail/courier-imap/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.66 2007/10/15 15:37:20 jlam Exp $
+# $NetBSD: Makefile,v 1.67 2008/02/19 18:45:14 jlam Exp $
-DISTNAME= courier-imap-4.2.1
+DISTNAME= courier-imap-4.3.0
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
EXTRACT_SUFX= .tar.bz2
@@ -9,31 +9,28 @@ MAINTAINER= jlam@pkgsrc.org
COMMENT= IMAP server for access to maildir-style mailboxes
HOMEPAGE= http://www.courier-mta.org/imap/
-DEPENDS+= courier-maildir>=0.57.1:../../mail/courier-maildir
-DEPENDS+= couriertcpd>=0.57.1:../../net/couriertcpd
+DEPENDS+= courier-maildir>=0.58.0:../../mail/courier-maildir
+DEPENDS+= couriertcpd>=0.58.0:../../net/couriertcpd
-USE_TOOLS+= env gmake openssl:run perl
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= env gmake perl
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
-PKG_OPTIONS_VAR= PKG_OPTIONS.courier-imap
-PKG_SUPPORTED_OPTIONS= fam
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mfam)
-. include "../../mk/fam.buildlink3.mk"
-.endif
+.include "options.mk"
.include "../../mail/courier-mta/Makefile.common"
+CONFIGURE_ENV+= CERTTOOL=${COURIER_CERTTOOL:Q}
+CONFIGURE_ENV+= OPENSSL=${COURIER_OPENSSL:Q}
+
CONFIGURE_ARGS+= --datadir=${DATADIR:Q}
CONFIGURE_ARGS+= --libexecdir=${LIBEXECDIR:Q}
-CONFIGURE_ARGS+= --with-mailuser=${ROOT_USER:Q}
+CONFIGURE_ARGS+= --with-mailuser=${REAL_ROOT_USER:Q}
CONFIGURE_ARGS+= --with-piddir=${COURIER_STATEDIR:Q}/tmp
CONFIGURE_ARGS+= --program-transform-name='s/\.rc$$//'
-CONFIGURE_ENV+= OPENSSL=${TOOLS_OPENSSL:Q}
# The rfc1035 and tcpd bits are built and installed by net/couriertcpd.
# However, we still need to build in these directories because there
@@ -62,17 +59,18 @@ RCD_SCRIPTS= courierimap courierimaps courierpop courierpops
SUBST_CLASSES+= courier
SUBST_FILES.courier= imap/imapd-ssl.dist.in imap/imapd.8.in \
- imap/imapd.cnf.in imap/imapd.dist.in \
+ imap/imapd.cnf.openssl.in imap/imapd.dist.in \
imap/mkimapdcert.8.in imap/mkimapdcert.html.in \
imap/mkimapdcert.in imapd-ssl.rc.in imapd.rc.in
SUBST_FILES.courier+= imap/courierpop3d.8.in imap/mkpop3dcert.8.in \
imap/mkpop3dcert.html.in imap/mkpop3dcert.in \
- imap/pop3d-ssl.dist.in imap/pop3d.cnf.in \
+ imap/pop3d-ssl.dist.in imap/pop3d.cnf.openssl.in \
imap/pop3d.dist.in pop3d-ssl.rc.in pop3d.rc.in
SUBST_SED.courier= -e "s|^IMAPDSTART=.*|IMAPDSTART=YES|g" \
-e "s|^IMAPDSSLSTART=.*|IMAPDSSLSTART=YES|g" \
-e "s|^POP3DSTART=.*|POP3DSTART=YES|g" \
-e "s|^POP3DSSLSTART=.*|POP3DSSLSTART=YES|g" \
+ -e "s|@mydatadir@|@sysconfdir@|g" \
-e "s|@datadir@/imapd.pem|@sysconfdir@/imapd.pem|g" \
-e "s|@datadir@/imapd.rand|@sysconfdir@/imapd.rand|g" \
-e "s|@datadir@/pop3d.pem|@sysconfdir@/pop3d.pem|g" \
@@ -86,16 +84,16 @@ SUBST_STAGE.courier= pre-configure
.include "../../security/courier-authlib/buildlink3.mk"
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA_DIR} ${DOCDIR}/imap
- ${INSTALL_DATA} ${WRKSRC}/imap/BUGS.html ${DOCDIR}/imap
- ${INSTALL_DATA} ${WRKSRC}/imap/README.html ${DOCDIR}/imap
- ${INSTALL_DATA} ${WRKSRC}/imap/README.proxy.html ${DOCDIR}/imap
- ${INSTALL_DATA} ${WRKSRC}/imap/courierpop3d.html ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/imap/imapd.html ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/imap/mkimapdcert.html ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/imap/mkpop3dcert.html ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/imap/imapd.pam ${EGDIR}/imap.authpam
- ${INSTALL_DATA} ${WRKSRC}/imap/pop3d.pam ${EGDIR}/pop3.authpam
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}/imap
+ ${INSTALL_DATA} ${WRKSRC}/imap/BUGS.html ${DESTDIR}${DOCDIR}/imap
+ ${INSTALL_DATA} ${WRKSRC}/imap/README.html ${DESTDIR}${DOCDIR}/imap
+ ${INSTALL_DATA} ${WRKSRC}/imap/README.proxy.html ${DESTDIR}${DOCDIR}/imap
+ ${INSTALL_DATA} ${WRKSRC}/imap/courierpop3d.html ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/imap/imapd.html ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/imap/mkimapdcert.html ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/imap/mkpop3dcert.html ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/imap/imapd.pam ${DESTDIR}${EGDIR}/imap.authpam
+ ${INSTALL_DATA} ${WRKSRC}/imap/pop3d.pam ${DESTDIR}${EGDIR}/pop3.authpam
.include "../../mk/bsd.pkg.mk"