aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2016-01-06 04:59:02 +0800
committeradamw <adamw@FreeBSD.org>2016-01-06 04:59:02 +0800
commit4514ffc1c74c9159b17a0b42b6b91ef1f43529d3 (patch)
tree4770b466a162ae7e646d96ad2f5920c5da5a2f13
parent5b41e606acfbfee1650b75381e2a8240208e74c6 (diff)
downloadfreebsd-ports-gnome-4514ffc1c74c9159b17a0b42b6b91ef1f43529d3.tar.gz
freebsd-ports-gnome-4514ffc1c74c9159b17a0b42b6b91ef1f43529d3.tar.zst
freebsd-ports-gnome-4514ffc1c74c9159b17a0b42b6b91ef1f43529d3.zip
Execute run_rc_command even if the config file doesn't exist. Previously,
until you followed the instructions in pkg-message, the config file didn't exist and rc.d/dovecot would just silently exit. While here, also spit out a message reminding you to create the config files if necessary. PR: 205761 Submitted by: me@cschwarz.com
-rw-r--r--mail/dovecot2/Makefile1
-rw-r--r--mail/dovecot2/files/dovecot.in7
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/dovecot2/Makefile b/mail/dovecot2/Makefile
index a386dada3a6c..be59198fde48 100644
--- a/mail/dovecot2/Makefile
+++ b/mail/dovecot2/Makefile
@@ -14,6 +14,7 @@
PORTNAME= dovecot
PORTVERSION= 2.2.21
+PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= http://www.dovecot.org/releases/${PORTVERSION:R}/
PKGNAMESUFFIX= 2
diff --git a/mail/dovecot2/files/dovecot.in b/mail/dovecot2/files/dovecot.in
index 28b820459f43..43f7a4fbcff5 100644
--- a/mail/dovecot2/files/dovecot.in
+++ b/mail/dovecot2/files/dovecot.in
@@ -55,6 +55,11 @@ for config in ${dovecot_config}; do
if [ -f ${config} ]; then
base_dir=$(${command} ${command_args} -a | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }')
pidfile="${base_dir}/master.pid"
- run_rc_command "$1"
+ else
+ echo "==Error=="
+ echo "Config file ${config} does not exist. If this is"
+ echo "a new installation, please create the config files as outlined in"
+ echo " # pkg info -D dovecot2"
fi
+ run_rc_command "$1"
done