aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd2/pkg-install
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-12-21 08:25:50 +0000
committerWill Andrews <will@FreeBSD.org>2000-12-21 08:25:50 +0000
commitfae99bfc40c855836ae4873ab9e589a5b57ac1aa (patch)
tree229f5942465474689326694238f4b4ed036c56d8 /mail/cyrus-imapd2/pkg-install
parent64a29c4fcd8e60a228b42a0341395d55421e5bed (diff)
downloadports-fae99bfc40c855836ae4873ab9e589a5b57ac1aa.tar.gz
ports-fae99bfc40c855836ae4873ab9e589a5b57ac1aa.zip
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>
Notes
Notes: svn path=/head/; revision=36178
Diffstat (limited to 'mail/cyrus-imapd2/pkg-install')
-rw-r--r--mail/cyrus-imapd2/pkg-install30
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/cyrus-imapd2/pkg-install b/mail/cyrus-imapd2/pkg-install
index 93e91ebc4dae..8f935faef8de 100644
--- a/mail/cyrus-imapd2/pkg-install
+++ b/mail/cyrus-imapd2/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