From owner-svn-ports-all@freebsd.org Thu Jan 28 01:32:37 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35FC0A70A86; Thu, 28 Jan 2016 01:32:37 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1FAF13D6; Thu, 28 Jan 2016 01:32:36 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0S1WZWC074407; Thu, 28 Jan 2016 01:32:35 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0S1WZcs074405; Thu, 28 Jan 2016 01:32:35 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201601280132.u0S1WZcs074405@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Thu, 28 Jan 2016 01:32:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r407391 - in branches/2016Q1/mail/dovecot2: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2016 01:32:37 -0000 Author: adamw Date: Thu Jan 28 01:32:35 2016 New Revision: 407391 URL: https://svnweb.freebsd.org/changeset/ports/407391 Log: MFH: r405316 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 Approved by: ports-secteam (feld) Modified: branches/2016Q1/mail/dovecot2/Makefile branches/2016Q1/mail/dovecot2/files/dovecot.in Directory Properties: branches/2016Q1/ (props changed) Modified: branches/2016Q1/mail/dovecot2/Makefile ============================================================================== --- branches/2016Q1/mail/dovecot2/Makefile Wed Jan 27 23:07:08 2016 (r407390) +++ branches/2016Q1/mail/dovecot2/Makefile Thu Jan 28 01:32:35 2016 (r407391) @@ -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 Modified: branches/2016Q1/mail/dovecot2/files/dovecot.in ============================================================================== --- branches/2016Q1/mail/dovecot2/files/dovecot.in Wed Jan 27 23:07:08 2016 (r407390) +++ branches/2016Q1/mail/dovecot2/files/dovecot.in Thu Jan 28 01:32:35 2016 (r407391) @@ -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