Bug 170577 - [PATCH] mail/opensmtpd: fix rc.subr REQUIRE keyword, update to latest version
Summary: [PATCH] mail/opensmtpd: fix rc.subr REQUIRE keyword, update to latest version
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ashish SHUKLA
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 01:00 UTC by Artis Caune
Modified: 2012-08-15 08:30 UTC (History)
0 users

See Also:


Attachments
file.diff (1.08 KB, patch)
2012-08-13 01:00 UTC, Artis Caune
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Artis Caune 2012-08-13 01:00:06 UTC
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.

Fix: Upgrade to newer version and fix REQUIRE keyword in smtpd.in


Patch attached with submission follows:
How-To-Repeat: - install opensmtpd
- send test message
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-13 01:00:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ashish

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Ashish SHUKLA freebsd_committer freebsd_triage 2012-08-13 01:13:22 UTC
Hi Artis,

Thanks for the diff.

I'll review it and commit within a day or two.

Thanks
-- 
Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
Sent from my Emacs
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-08-15 08:26:36 UTC
Author: ashish
Date: Wed Aug 15 07:26:24 2012
New Revision: 302567
URL: http://svn.freebsd.org/changeset/ports/302567

Log:
  - Update to latest snapshot 201207311144
  - Fix rc.d script
  
  PR:		ports/170577
  Submitted by:	Artis Caune <Artis.Caune at gmail.com>

Modified:
  head/mail/opensmtpd/Makefile
  head/mail/opensmtpd/distinfo
  head/mail/opensmtpd/files/smtpd.in

Modified: head/mail/opensmtpd/Makefile
==============================================================================
--- head/mail/opensmtpd/Makefile	Wed Aug 15 06:49:22 2012	(r302566)
+++ head/mail/opensmtpd/Makefile	Wed Aug 15 07:26:24 2012	(r302567)
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	opensmtpd
-PORTVERSION=	201207281129
+PORTVERSION=	201207311144
 CATEGORIES=	mail
 MASTER_SITES=	http://www.opensmtpd.org/archives/ \
 		http://distfiles.pirateparty.in/ashish/

Modified: head/mail/opensmtpd/distinfo
==============================================================================
--- head/mail/opensmtpd/distinfo	Wed Aug 15 06:49:22 2012	(r302566)
+++ head/mail/opensmtpd/distinfo	Wed Aug 15 07:26:24 2012	(r302567)
@@ -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

Modified: head/mail/opensmtpd/files/smtpd.in
==============================================================================
--- head/mail/opensmtpd/files/smtpd.in	Wed Aug 15 06:49:22 2012	(r302566)
+++ head/mail/opensmtpd/files/smtpd.in	Wed Aug 15 07:26:24 2012	(r302567)
@@ -3,7 +3,7 @@
 # $FreeBSD$
 #
 # PROVIDE: smtpd mail
-# REQUIRE: %%REQUIRE%%
+# REQUIRE: LOGIN
 # KEYWORD: shutdown
 #
 # Add the following lines to /etc/rc.conf to enable smtpd:
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Ashish SHUKLA freebsd_committer freebsd_triage 2012-08-15 08:27:28 UTC
State Changed
From-To: open->closed

Committed. Thanks!