aboutsummaryrefslogtreecommitdiff
path: root/sysutils/ucspi-tcp
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-06-08 23:41:52 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-06-08 23:41:52 +0000
commitf2934b48593cca08ba34f8086c3b19e674780190 (patch)
treec76034f8ea0617258e11815588de1f0e5b06b367 /sysutils/ucspi-tcp
parent1cab02aecdd794698be7af5adf6889554c1491ea (diff)
downloadports-f2934b48593cca08ba34f8086c3b19e674780190.tar.gz
ports-f2934b48593cca08ba34f8086c3b19e674780190.zip
As qmail ports' maintainer, I recieved a lot of emails reporting a "problem". If
you have a good client using an IP listed on a RBL, this person cannot have a chance to auth on qmail server if server uses rblsmtpd because connection is dropped before call qmail-smtpd. This patch fix this problem, changing rblsmtpd to doesn't drop the connection, just set a var, that will be checked by patched qmail-smtpd, and if person is authenticated, it ignores rbl check. PR: ports/98390 Approved by: maintainer
Notes
Notes: svn path=/head/; revision=164859
Diffstat (limited to 'sysutils/ucspi-tcp')
-rw-r--r--sysutils/ucspi-tcp/Makefile9
-rw-r--r--sysutils/ucspi-tcp/distinfo3
2 files changed, 11 insertions, 1 deletions
diff --git a/sysutils/ucspi-tcp/Makefile b/sysutils/ucspi-tcp/Makefile
index 5aa7e337750d..0e25d3c31953 100644
--- a/sysutils/ucspi-tcp/Makefile
+++ b/sysutils/ucspi-tcp/Makefile
@@ -17,7 +17,8 @@ COMMENT= Command-line tools for building TCP client-server applications
OPTIONS= MAN "Install man(1) pages" on \
RSS_DIFF "Patch rblsmtpd for qmail users" off \
- SSL "Adds support for SSL (Secure Socket Layer)" off
+ SSL "Adds support for SSL (Secure Socket Layer)" off \
+ RBL2SMTPD "Don't drop connection, pass envvar to smtpd" off
NO_PACKAGE= Unsure of djb's license
@@ -49,6 +50,12 @@ PATCH_SITES+= http://www.nrg4u.com/qmail/
PATCHFILES+= ucspi-tcp-ssl-20050405.patch.gz
PATCH_DIST_STRIP= -p1
+.if defined(WITH_RBL2SMTPD)
+PATCH_SITES+= ${MASTER_SITE_LOCAL:S/$/garga\/ucspi-tcp\/:rbl2smtpd/}
+PATCHFILES+= ucspi-tcp_rbl2smtpd.diff:rbl2smtpd
+PATCH_DIST_STRIP= -p1
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|#INCS=-I/usr/local/include|INCS=-I${OPENSSLBASE}/include|g; \
s|-lcrypto|-L${OPENSSLBASE}/lib |g' ${WRKSRC}/Makefile
diff --git a/sysutils/ucspi-tcp/distinfo b/sysutils/ucspi-tcp/distinfo
index 9e88e20a2621..3326faf614e1 100644
--- a/sysutils/ucspi-tcp/distinfo
+++ b/sysutils/ucspi-tcp/distinfo
@@ -10,3 +10,6 @@ SIZE (ucspi-rss.diff) = 1828
MD5 (ucspi-tcp-ssl-20050405.patch.gz) = cbe2443539d5289ffb5ae2a036e0ba3d
SHA256 (ucspi-tcp-ssl-20050405.patch.gz) = 931ebeb9ca3ceb9394464aca0c4585048d04fc194fc5a9d4bb49bdd8ac249467
SIZE (ucspi-tcp-ssl-20050405.patch.gz) = 13173
+MD5 (ucspi-tcp_rbl2smtpd.diff) = 3515b80cb3c50ad9990785704798020f
+SHA256 (ucspi-tcp_rbl2smtpd.diff) = b31092bad79912c4cdaebf65863e249f0f8136d64d9cf486fafeb5561dbc2b88
+SIZE (ucspi-tcp_rbl2smtpd.diff) = 570