Bug 105571 - [MAINTAINER] mail/spamass-milter: add patch to bypass authenticated users
Summary: [MAINTAINER] mail/spamass-milter: add patch to bypass authenticated users
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-15 14:10 UTC by Thomas Abthorpe
Modified: 2006-11-15 19:50 UTC (History)
0 users

See Also:


Attachments
file.shar (3.51 KB, text/plain)
2006-11-15 14:10 UTC, Thomas Abthorpe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Abthorpe 2006-11-15 14:10:12 UTC
- add patch to skip spam checks on SMTP authenticated users by setting WITH_ADDAUTH_PATCH environment variable at build time
- thanks to Steve Watt <steve_AT_watt.com> for providing the patch
- bump PORTREVISION

Fix: Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/spamass-milter/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile	9 Jun 2006 21:16:02 -0000	1.22
+++ Makefile	15 Nov 2006 13:46:26 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	spamass-milter
 PORTVERSION=	0.3.1
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	${MASTER_SITE_SAVANNAH}
 MASTER_SITE_SUBDIR=	spamass-milt
@@ -15,7 +16,7 @@
 COMMENT=	Sendmail Milter (mail filter) plugin for SpamAssassin
 
 BUILD_DEPENDS=	spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
-RUN_DEPENDS=	spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
+RUN_DEPENDS=	${BUILD_DEPENDS}
 
 ##
 # Use the following quirks to choose which sendmail to use (ports or system):
@@ -30,6 +31,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_ADDAUTH_PATCH)
+EXTRA_PATCHES=	${FILESDIR}/extra-patch-addauth
+.endif
+
 .if exists(${LOCALBASE}/lib/libldap.so)
 WITH_LDAP=yes
 .endif
@@ -76,6 +81,12 @@
 
 MAN1=		spamass-milter.1
 
+pre-fetch:
+	@${ECHO_CMD} ""
+	@${ECHO_CMD} "You may set environment variable WITH_ADDAUTH_PATCH to bypass"
+	@${ECHO_CMD} "checks if a connection authenticated via SMTP."
+	@${ECHO_CMD} ""
+
 post-patch:
 	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
 		${FILESDIR}/spamass-milter.in > ${WRKDIR}/spamass-milter


Patch attached with submission follows:
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2006-11-15 14:27:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2006-11-15 19:40:21 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-11-15 19:40:29 UTC
miwi        2006-11-15 19:40:10 UTC

  FreeBSD ports repository

  Added files:
    mail/spamass-milter/files extra-patch-addauth 
  Log:
  - add patch to skip spam checks on SMTP authenticated users by setting
          WITH_ADDAUTH_PATCH environment variable at build time
  - thanks to Steve Watt <steve_AT_watt.com> for providing the patch
  - bump PORTREVISION
  
  PR:             ports/105571
  Submitted by:   Thomas Abthorpe<thomas@goodking.ca> (maintainer)
  
  Revision  Changes    Path
  1.1       +77 -0     ports/mail/spamass-milter/files/extra-patch-addauth (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"