From owner-svn-ports-all@freebsd.org Thu Feb 25 20:14:42 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 62968AB4B74; Thu, 25 Feb 2016 20:14:42 +0000 (UTC) (envelope-from ohauer@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 305A31291; Thu, 25 Feb 2016 20:14:42 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1PKEfV0070226; Thu, 25 Feb 2016 20:14:41 GMT (envelope-from ohauer@FreeBSD.org) Received: (from ohauer@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1PKEfx7070225; Thu, 25 Feb 2016 20:14:41 GMT (envelope-from ohauer@FreeBSD.org) Message-Id: <201602252014.u1PKEfx7070225@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ohauer set sender to ohauer@FreeBSD.org using -f From: Olli Hauer Date: Thu, 25 Feb 2016 20:14:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409553 - head/mail/postfix/files X-SVN-Group: ports-head 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, 25 Feb 2016 20:14:42 -0000 Author: ohauer Date: Thu Feb 25 20:14:40 2016 New Revision: 409553 URL: https://svnweb.freebsd.org/changeset/ports/409553 Log: - add missing reload part into pkg-install Modified: head/mail/postfix/files/pkg-install.in Modified: head/mail/postfix/files/pkg-install.in ============================================================================== --- head/mail/postfix/files/pkg-install.in Thu Feb 25 20:10:33 2016 (r409552) +++ head/mail/postfix/files/pkg-install.in Thu Feb 25 20:14:40 2016 (r409553) @@ -130,6 +130,20 @@ install_mailer_conf() { } # ============================================================================== +# Run postfix reload +# This is a candidate for a dedicated pkg-post-upgrade script, but it seems +# this not fully implemented in pkg :(see upstream PR 941) +# ============================================================================== +try_reload(){ + ${PREFIX}/sbin/postfix status 2>/dev/null +if [ $? -eq 0 ]; then + ${PREFIX}/sbin/postfix reload +else + echo "postfix not running" +fi +} + +# ============================================================================== # Run postfix post-install to fix permissions and new config values # ============================================================================== if [ "$2" = "POST-INSTALL" ]; then @@ -152,6 +166,7 @@ if [ -f "${MC_BASE}" ]; then if [ $? -eq 0 ]; then show_activated_msg ${MC_BASE} cmp_mailer ${MC_LOCALBASE} || install_mailer_conf ${MC_LOCALBASE} + try_reload else cmp_mailer ${MC_LOCALBASE} || install_choise ${MC_LOCALBASE} fi @@ -161,6 +176,7 @@ if [ -f "${MC_BASE}" ]; then install_choise ${MC_BASE} else show_activated_msg ${MC_BASE} + try_reload fi fi