summaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd22/pkg-install
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-12-21 08:25:50 +0000
committerwill <will@FreeBSD.org>2000-12-21 08:25:50 +0000
commiteba6ed11eba651e997ef137654e406a4fd8d144f (patch)
tree201c712a70a274eae2788b651584bded57579d88 /mail/cyrus-imapd22/pkg-install
parent8b4cff46d0c49ac9d0a9b87d7aacd348c99d55cd (diff)
downloadFreeBSD-ports-eba6ed11eba651e997ef137654e406a4fd8d144f.zip
FreeBSD-ports-eba6ed11eba651e997ef137654e406a4fd8d144f.tar.gz
Update to 1.6.24. Fix /var/pwcheck handling since that's moved to the
security/cyrus-sasl port. Fix deliver.c so it uses the correct location of sendmail (/usr/sbin/sendmail vs. /usr/lib/sendmail). Open the port up to the world after previous maintainer showed no interest in the port for nearly 2 years. PR: 22791, 22465 Submitted by: Martti Kuparinen <martti.kuparinen@piuha.net> Scot W. Hetzel <hetzels@westbend.net>
Diffstat (limited to 'mail/cyrus-imapd22/pkg-install')
-rw-r--r--mail/cyrus-imapd22/pkg-install30
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/cyrus-imapd22/pkg-install b/mail/cyrus-imapd22/pkg-install
index 93e91eb..8f935fa 100644
--- a/mail/cyrus-imapd22/pkg-install
+++ b/mail/cyrus-imapd22/pkg-install
@@ -2,6 +2,10 @@
#set -vx
+PKG_BATCH=${BATCH:=NO}
+
+PKG_PREFIX=${PKG_PREFIX:=/usr/local}
+
#
# create 'cyrus' user and group before installing
#
@@ -76,6 +80,13 @@ checkfile() {
esac
}
+# Install timseived's Cyrus.conf file
+
+cyrus_conf() {
+ if [ ! -f ${PKG_PREFIX}/lib/sasl/Cyrus.conf ]; then
+ echo "pwcheck_method: pwcheck" > ${PKG_PREFIX}/lib/sasl/Cyrus.conf
+ fi
+}
case $2 in
PRE-INSTALL)
@@ -84,6 +95,7 @@ case $2 in
POST-INSTALL)
cd ${PKG_PREFIX}
+ cyrus_conf
checkfile ${PKG_PREFIX}/etc/imapd.conf
if grep '^imap4' /etc/inetd.conf; then
echo "** Please check that your /etc/inetd.conf entry for \`imap4'"
@@ -91,6 +103,24 @@ case $2 in
else
echo "** Please add an entry for the imap4 protocol to /etc/inetd.conf."
fi
+ echo
+ if grep '^sieve' /etc/inetd.conf; then
+ echo "** Please check that your /etc/inetd.conf entry for \`sieve'"
+ echo " is suitable for the Cyrus timsieved daemon"
+ else
+ echo "** Please add an entry for timseived to /etc/inetd.conf."
+ echo " If you wish to have user's upload their sieve filter"
+ echo " scripts to the server."
+ fi
+ echo
echo " An example can be found in ${PKG_PREFIX}/etc/inetd.conf.cyrus."
+ if grep 'sieve' /etc/services; then
+ echo
+ else
+ echo
+ echo "** Please add an entry for the sieve protocol (2000/tcp)"
+ echo " to /etc/services"
+ echo
+ fi
;;
esac
OpenPOWER on IntegriCloud