From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 13 00:00:07 2012 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 8CC98106566C for ; Mon, 13 Aug 2012 00:00:07 +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 643548FC0A for ; Mon, 13 Aug 2012 00:00:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7D007F3002577 for ; Mon, 13 Aug 2012 00:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7D00750002568; Mon, 13 Aug 2012 00:00:07 GMT (envelope-from gnats) Resent-Date: Mon, 13 Aug 2012 00:00:07 GMT Resent-Message-Id: <201208130000.q7D00750002568@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 6B6831065672 for ; Sun, 12 Aug 2012 23:56:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 3D1448FC08 for ; Sun, 12 Aug 2012 23:56:08 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7CNu8D7017473 for ; Sun, 12 Aug 2012 23:56:08 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q7CNu8PA017450; Sun, 12 Aug 2012 23:56:08 GMT (envelope-from nobody) Message-Id: <201208122356.q7CNu8PA017450@red.freebsd.org> Date: Sun, 12 Aug 2012 23:56:08 GMT From: Artis Caune To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/170577: [PATCH] mail/opensmtpd: fix rc.subr REQUIRE keyword, update to latest version 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: Mon, 13 Aug 2012 00:00:07 -0000 >Number: 170577 >Category: ports >Synopsis: [PATCH] mail/opensmtpd: fix rc.subr REQUIRE keyword, update to latest version >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Aug 13 00:00:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Artis Caune >Release: stable/9 >Organization: >Environment: FreeBSD freebsd 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE r239148: Fri Aug 10 00:00:00 UTC 2012 root@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Current opensmtpd version has broken resolver. Mails are queued for relay, but I can not see any DNS packets and it fail with: 6a916bb35d3ef6aa: to=, delay=805, relay=(none) [], stat=LocalError (MX lookup failed temporarily) smtpd.conf: listen on 127.0.0.1 accept for all relay Upgrading to latest version fixed problem. There is error in rc.d/smtpd: REQUIRE keyword is not expanded in INSTALL script. rcorder: requirement `%%REQUIRE%%' in file `/usr/local/etc/rc.d/smtpd' has no providers. >How-To-Repeat: - install opensmtpd - send test message >Fix: Upgrade to newer version and fix REQUIRE keyword in smtpd.in Patch attached with submission follows: --- Makefile.orig 2012-08-12 23:15:52.692682349 +0000 +++ Makefile 2012-08-08 23:16:18.062692070 +0000 @@ -6,7 +6,7 @@ # PORTNAME= opensmtpd -PORTVERSION= 201207281129 +PORTVERSION= 201207311144 CATEGORIES= mail MASTER_SITES= http://www.opensmtpd.org/archives/ \ http://distfiles.pirateparty.in/ashish/ --- distinfo.orig 2012-08-12 23:16:47.512671228 +0000 +++ distinfo 2012-08-08 22:30:11.332694438 +0000 @@ -1,2 +1,2 @@ -SHA256 (opensmtpd-201207281129.tar.gz) = abadaea95eb1836c87060ae53ba4a791e8ea02e8f7a6cd022df94de8d997ed17 -SIZE (opensmtpd-201207281129.tar.gz) = 244926 +SHA256 (opensmtpd-201207311144.tar.gz) = 59259c2f51410b3faeb5f6e82fee58328c40ce4ee0f7ef7496f9ef3329c5d99e +SIZE (opensmtpd-201207311144.tar.gz) = 246356 --- files/smtpd.in.orig 2012-08-12 23:17:35.757298915 +0000 +++ files/smtpd.in 2012-08-12 23:17:58.372692040 +0000 @@ -3,7 +3,7 @@ # $FreeBSD: ports/mail/opensmtpd/files/smtpd.in,v 1.1 2012/05/14 13:12:32 ashish Exp $ # # PROVIDE: smtpd mail -# REQUIRE: %%REQUIRE%% +# REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable smtpd: >Release-Note: >Audit-Trail: >Unformatted: