From owner-freebsd-ports@FreeBSD.ORG Fri Jun 5 04:25:03 2009 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DADDD106564A; Fri, 5 Jun 2009 04:25:03 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from aegis.hamla.org (aegis.hamla.org [206.251.255.39]) by mx1.freebsd.org (Postfix) with ESMTP id AE9498FC13; Fri, 5 Jun 2009 04:25:03 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from localhost (localhost [127.0.0.1]) by aegis.hamla.org (Postfix) with ESMTP id 2F56B5C4E; Fri, 5 Jun 2009 00:26:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tandon.net; h= user-agent:in-reply-to:content-disposition:content-type :mime-version:references:reply-to:message-id:subject:from:date :received:received:received:x-virus-scanned; s=aegis; t= 1244175992; bh=07LSBN8aeea5LutTd/Lvl1rAglOIjmIfdkR5O/BZRRY=; b=Y 1DhulpFmTpVJ7r8r1IZ0iWzxigRpL/wzm7cKfPHSKBXLOxX99SMcy51IeK9ZJR8+ NTNvD9b90QY3jfBa4DN+rsdCWAjI7s3vUBm7FhgarlK0xm3LI/NRABa+MygqNPg2 cMxWJYkUxxgHYgxJqA7h1bBqHTDyiznWqy0GIVPVeQ= X-Virus-Scanned: by ClamAV at aegis.hamla.org Received: from aegis.hamla.org ([127.0.0.1]) by localhost (aegis.hamla.org [127.0.0.1]) (amavisd-new, port 10027) with LMTP id usTCCJR1LkJ8; Fri, 5 Jun 2009 00:26:32 -0400 (EDT) Received: from shepherd.hamla.org (shepherd.hamla.org [66.108.70.184]) by aegis.hamla.org (Postfix) with ESMTPSA id 9062E5C4C; Fri, 5 Jun 2009 00:26:32 -0400 (EDT) Received: by shepherd.hamla.org (Postfix, from userid 501) id 4225B19C5ED4; Fri, 5 Jun 2009 00:25:01 -0400 (EDT) Date: Fri, 5 Jun 2009 00:25:01 -0400 From: Sahil Tandon To: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <20090605042500.GA7167@tandon.net> References: <4A279C92.4020305@quip.cz> <20090604135318.0178eb66@it.buh.tecnik93.com> <20090604130638.17461dkh10lqyhgk@webmail.leidinger.net> <4A27B1FC.6030904@quip.cz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <4A27B1FC.6030904@quip.cz> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Ion-Mihai Tetcu , Alexander Leidinger , freebsd-ports@FreeBSD.org Subject: Re: has Postfix new location of aliases.db? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 04:25:04 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, 04 Jun 2009, Miroslav Lachman wrote: [...] > As you can see, file /etc/mail/aliases was modified (target of symlink) > and then aliases.db was generated by `newaliases` command as > /etc/aliases.db > > Above is with postfix-2.5.6,1 on FreeBSD 7.2-RELEASE #0: Fri May 1 > 08:49:13 UTC 2009 GENERIC i386 > > This is with new postfix-2.6.1,1: > # postconf -d | grep aliases > alias_database = hash:/etc/mail/aliases > alias_maps = hash:/etc/mail/aliases This was introduced with ports/134728, in which ALIAS_DB_MAP is compiled in as hash:/etc/mail/aliases. I've rolled this back to the default value, which is system-dependent and chosen by ${WRKSRC}/src/util/sys_defs.h, which in turn relies on the ${WRKSRC}/makedefs script. > newaliases_path = /usr/local/bin/newaliases This is intentional and a good thing. In mail/postfix prior to 2.6.x, the change was made in main.cf instead of being compiled in as a default; this is why you do not see it when viewing the *default* postconf output in 2.5.x; try postconf newaliases_path (i.e. without the -d flag). > And this is with older postfix-2.5.6,1: > # postconf -d | grep aliases > alias_database = hash:/etc/aliases > alias_maps = hash:/etc/aliases > > There is definitely incompatible change in defaults :o( Indeed. The attached patch (also filed as ports/135273) updates Postfix to 2.6.2 and makes the aforementioned changes. As a result, I don't think we need to touch ports/UPDATING. -- Sahil Tandon --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="postfix.txt" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/mail/postfix/Makefile,v retrieving revision 1.146 diff -u -r1.146 Makefile --- Makefile 4 Jun 2009 07:45:27 -0000 1.146 +++ Makefile 5 Jun 2009 03:51:28 -0000 @@ -6,8 +6,7 @@ # PORTNAME= postfix -PORTVERSION= 2.6.1 -PORTREVISION= 1 +PORTVERSION= 2.6.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -99,7 +98,6 @@ -DDEF_DATA_DIR=\\\"/var/db/postfix\\\" \ -DDEF_MAIL_OWNER=\\\"postfix\\\" \ -DDEF_SGID_GROUP=\\\"maildrop\\\" \ - -DALIAS_DB_MAP=\\\"hash:/etc/mail/aliases\\\" # Default requirement for postfix rc script _REQUIRE= LOGIN cleanvar @@ -194,6 +192,7 @@ .endif .if defined(WITH_VDA) +IGNORE= wait for a new VDA patch that works with ${PORTVERSION} PATCH_SITES+= http://vda.sourceforge.net/VDA/ PATCHFILES+= postfix-${PORTVERSION}-vda-ng.patch.gz PATCH_DIST_STRIP= -p1 @@ -232,7 +231,6 @@ s!^(manpage_directory =)!\1 ${PREFIX}/man!g;\ s!^((html|readme)_directory =)!\1 ${READMEDIR}!g;\ \!^\#alias_database = dbm:/etc/mail/aliases$$!d;\ - s!/etc/aliases!/etc/mail/aliases!g;\ s!(:|= )/etc/postfix!\1$$config_directory!g;\ s!/etc/postfix!${ETCDIR}!g;\ s!^(sample_directory =)!\1 ${ETCDIR}!g;\ Index: distinfo =================================================================== RCS file: /home/ncvs/ports/mail/postfix/distinfo,v retrieving revision 1.100 diff -u -r1.100 distinfo --- distinfo 26 May 2009 13:36:08 -0000 1.100 +++ distinfo 5 Jun 2009 03:51:28 -0000 @@ -1,6 +1,3 @@ -MD5 (postfix/postfix-2.6.1.tar.gz) = 737bbc245da9c72c174893397f70ae86 -SHA256 (postfix/postfix-2.6.1.tar.gz) = ccad7fb855e31c57f3551244b76be5906fcdcde09d5a6ccd144ae144e1df203c -SIZE (postfix/postfix-2.6.1.tar.gz) = 3324194 -MD5 (postfix/postfix-2.6.1-vda-ng.patch.gz) = 33d62623badc3f754ac9620e3ed2c3b8 -SHA256 (postfix/postfix-2.6.1-vda-ng.patch.gz) = cbc924891385b1ca7ca82b5bce89b9eadac53eca772c1291db1307b8a2eef720 -SIZE (postfix/postfix-2.6.1-vda-ng.patch.gz) = 12662 +MD5 (postfix/postfix-2.6.2.tar.gz) = 1f0edbd521d2b0473626f4d61e8bb4eb +SHA256 (postfix/postfix-2.6.2.tar.gz) = 025acf080bbe279cbc6e8e6806ecd0f99af41c8ca384fcb2f7631988f73d5f7c +SIZE (postfix/postfix-2.6.2.tar.gz) = 3323255 --YZ5djTAD1cGYuMQK--