diff options
author | oliver <oliver@FreeBSD.org> | 2004-11-16 03:10:40 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2004-11-16 03:10:40 +0800 |
commit | 4d0f9ac7b3c78a226b71a269e4523712076f9574 (patch) | |
tree | 5f8e14b2c554487d90c75842e1bbd17f1a851d0a /mail | |
parent | b9a1198aed2adc66f2a18c24755793c5aa16e19f (diff) | |
download | freebsd-ports-gnome-4d0f9ac7b3c78a226b71a269e4523712076f9574.tar.gz freebsd-ports-gnome-4d0f9ac7b3c78a226b71a269e4523712076f9574.tar.zst freebsd-ports-gnome-4d0f9ac7b3c78a226b71a269e4523712076f9574.zip |
adjust the message what to do, to get courier-imap working with pam on FreeBSD >=5
Diffstat (limited to 'mail')
-rw-r--r-- | mail/courier-imap/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile index 043357e62858..a83ebf01dadc 100644 --- a/mail/courier-imap/Makefile +++ b/mail/courier-imap/Makefile @@ -226,10 +226,17 @@ post-install: @${ECHO_MSG} "in ${CONFDIR}." @${ECHO_MSG} "" @${ECHO_MSG} "In case you use authpam, you should put the following lines" - @${ECHO_MSG} "in your /etc/pam.conf or /etc/pam.d/imap" +.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} "In case you are upgrading an existing Installation, you need to run" @${ECHO_MSG} "'make install-configure' to update your old configuration files." |