Date: Sun, 12 Aug 2012 23:56:08 GMT From: Artis Caune <Artis.Caune@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/170577: [PATCH] mail/opensmtpd: fix rc.subr REQUIRE keyword, update to latest version Message-ID: <201208122356.q7CNu8PA017450@red.freebsd.org> Resent-Message-ID: <201208130000.q7D00750002568@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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=<artis.caune@gmail.com>, 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208122356.q7CNu8PA017450>