From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 29 21:30:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C56FE1065672 for ; Fri, 29 Feb 2008 21:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A44A18FC25 for ; Fri, 29 Feb 2008 21:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1TLU1Mt088403 for ; Fri, 29 Feb 2008 21:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1TLU1fv088402; Fri, 29 Feb 2008 21:30:01 GMT (envelope-from gnats) Resent-Date: Fri, 29 Feb 2008 21:30:01 GMT Resent-Message-Id: <200802292130.m1TLU1fv088402@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Artis Caune Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45296106566B for ; Fri, 29 Feb 2008 21:23:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 367458FC1F for ; Fri, 29 Feb 2008 21:23:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1TLKm5S062000 for ; Fri, 29 Feb 2008 21:20:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m1TLKmZq061960; Fri, 29 Feb 2008 21:20:48 GMT (envelope-from nobody) Message-Id: <200802292120.m1TLKmZq061960@www.freebsd.org> Date: Fri, 29 Feb 2008 21:20:48 GMT From: Artis Caune To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/121236: [PATCH] mail/postfix: fix package data_directory creation X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 21:30:01 -0000 >Number: 121236 >Category: ports >Synopsis: [PATCH] mail/postfix: fix package data_directory creation >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 29 21:30:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Artis Caune >Release: 7.0 >Organization: >Environment: >Description: When adding postfix package, make install is not run and new postfix parameter 'data_directory=/var/lib/postfix' is not created. Change /var/lib to /var/db >How-To-Repeat: # make package # pkg_delete postfix-2.5.1,1 # rmdir /var/lib/postfix # pkg_add postfix-2.5.1,1.tbz >Fix: Patch attached with submission follows: --- Makefile.orig 2008-02-29 10:22:56.000000000 +0000 +++ Makefile 2008-02-29 20:16:30.000000000 +0000 @@ -260,6 +260,7 @@ do-install: cd ${WRKSRC}; ${SH} postfix-install -non-interactive install_root=/ tempdir=/tmp \ config_directory=${PREFIX}/etc/postfix \ + data_directory=/var/db/postfix \ daemon_directory=${PREFIX}/libexec/postfix \ command_directory=${PREFIX}/sbin \ queue_directory=/var/spool/postfix \ --- pkg-install.orig 2007-10-04 22:57:58.000000000 +0000 +++ pkg-install 2008-02-29 20:16:42.000000000 +0000 @@ -121,6 +121,7 @@ /bin/sh ${PKG_PREFIX}/etc/postfix/post-install tempdir=/tmp \ config_directory=${PKG_PREFIX}/etc/postfix \ + data_directory=/var/db/postfix \ daemon_directory=${PKG_PREFIX}/libexec/postfix \ command_directory=${PKG_PREFIX}/sbin \ queue_directory=/var/spool/postfix \ --- files/patch-conf::postfix-files.orig 1970-01-01 00:00:00.000000000 +0000 +++ files/patch-conf::postfix-files 2008-02-29 20:55:22.000000000 +0000 @@ -0,0 +1,11 @@ +--- conf/postfix-files.orig 2008-01-24 00:13:49.000000000 +0000 ++++ conf/postfix-files 2008-02-29 20:53:24.000000000 +0000 +@@ -42,7 +42,7 @@ + # permissions, so that running "make install" fixes any glitches. + # + $config_directory:d:root:-:755:u +-$data_directory:d:$mail_owner:-:700:u ++$data_directory:d:$mail_owner:-:700:uc + $daemon_directory:d:root:-:755:u + $queue_directory:d:root:-:755:uc + $sample_directory:d:root:-:755:o >Release-Note: >Audit-Trail: >Unformatted: