summaryrefslogtreecommitdiff
path: root/mail/courier-imap
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2005-01-28 16:17:44 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2005-01-28 16:17:44 +0000
commit1cb58762a605ba31c954e647178ce73e243aa9e3 (patch)
tree7c9c8c3ca488ce7becab6927722e73b0361c8522 /mail/courier-imap
parentUpgrade to version 2.41. (diff)
- readd pam-configuration hints. [1]
- make portlint a bit happier Noted by: John O'Brien <boardom@gmail.com> [1]
Notes
Notes: svn path=/head/; revision=127558
Diffstat (limited to 'mail/courier-imap')
-rw-r--r--mail/courier-imap/Makefile24
1 files changed, 19 insertions, 5 deletions
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile
index 7404fe9f5f7f..f7e2f7b96a26 100644
--- a/mail/courier-imap/Makefile
+++ b/mail/courier-imap/Makefile
@@ -13,6 +13,9 @@ CATEGORIES= mail ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= courier
+MAINTAINER= oliver@FreeBSD.org
+COMMENT= IMAP (and POP3) server that provides access to Maildir mailboxes
+
BUILD_DEPENDS= ${LOCALBASE}/bin/courierauthconfig:${PORTSDIR}/mail/courier-authlib
RUN_DEPENDS= ${LOCALBASE}/bin/courierauthconfig:${PORTSDIR}/mail/courier-authlib
@@ -23,9 +26,6 @@ PATCHFILES= courier-imap-3.0.6-drac.patch
PATCH_DIST_STRIP= -p1
.endif
-MAINTAINER= oliver@FreeBSD.org
-COMMENT= IMAP (and POP3) server that provides access to Maildir mailboxes
-
USE_BZIP2= yes
USE_REINPLACE= yes
USE_PERL5= yes
@@ -115,7 +115,6 @@ EXTRA_DOCS= AUTHORS INSTALL NEWS imap/ChangeLog imap/README \
maildir/README.maildirquota.txt \
maildir/README.sharedfolders.txt tcpd/README.couriertls \
-
post-patch:
@${REINPLACE_CMD} -e 's|^case x$$lockmethod in|${TEST} \&\& &|g' \
${WRKSRC}/liblock/configure
@@ -124,6 +123,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|@LIBS@|@LIBS@ -rpath=:${LOCALBASE}/lib/courier-authlib|' \
${WRKSRC}/imap/Makefile.in
+.include <bsd.port.pre.mk>
+
post-install:
.for i in imapd pop3d
${INSTALL_DATA} ${WRKSRC}/imap/${i}.cnf ${CONFDIR}/${i}.cnf.dist
@@ -142,6 +143,19 @@ post-install:
cd ${WRKSRC} && ( ${GMAKE} install-configure ; cd - )
+ @${ECHO_MSG} "In case you use authpam, you should put the following lines"
+.if ${OSVERSION} >= 500000
+ @${ECHO_MSG} "in your /etc/pam.d/imap"
+ @${ECHO_MSG} "auth required pam_unix.so try_first_pass"
+ @${ECHO_MSG} "account required pam_unix.so try_first_pass"
+ @${ECHO_MSG} "session required pam_permit.so"
+.else
+ @${ECHO_MSG} "in your /etc/pam.conf"
+ @${ECHO_MSG} "imap auth required pam_unix.so try_first_pass"
+ @${ECHO_MSG} "imap account required pam_unix.so try_first_pass"
+ @${ECHO_MSG} "imap session required pam_permit.so"
+.endif
+
@${ECHO_MSG} ""
@${ECHO_MSG} "You will have to run ${DATADIR}/mkimapdcert to create"
@${ECHO_MSG} "a self-signed certificate if you want to use imapd-ssl."
@@ -149,4 +163,4 @@ post-install:
@${ECHO_MSG} "in ${CONFDIR}."
@${ECHO_MSG} ""
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>