aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2008-02-11 14:49:20 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2008-02-11 14:49:20 +0000
commita5a0c89971466c1d66ce21aa696ba2f933a7fe2e (patch)
treebc2343ac46bb0241febebdca07e60597a1e21312
parente6aee97b4ff4fb4fd5fd814af34ef640e37f7f9e (diff)
downloadports-a5a0c89971466c1d66ce21aa696ba2f933a7fe2e.tar.gz
ports-a5a0c89971466c1d66ce21aa696ba2f933a7fe2e.zip
Notes
-rw-r--r--mail/libspf2/Makefile2
-rw-r--r--mail/libspf2/files/patch-RFC4408-DOS49
2 files changed, 50 insertions, 1 deletions
diff --git a/mail/libspf2/Makefile b/mail/libspf2/Makefile
index 8e2c5eefe68d..91f24d2c2697 100644
--- a/mail/libspf2/Makefile
+++ b/mail/libspf2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libspf2
PORTVERSION= 1.2.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://www.libspf2.org/%SUBDIR%/
MASTER_SITE_SUBDIR= spf
diff --git a/mail/libspf2/files/patch-RFC4408-DOS b/mail/libspf2/files/patch-RFC4408-DOS
new file mode 100644
index 000000000000..1da468387473
--- /dev/null
+++ b/mail/libspf2/files/patch-RFC4408-DOS
@@ -0,0 +1,49 @@
+--- src/include/spf.h.orig 2008-02-10 11:30:04.000000000 -0200
++++ src/include/spf.h 2008-02-10 11:30:20.000000000 -0200
+@@ -52,8 +52,8 @@
+
+ /* FYI only -- defaults can't be changed without recompiling the library */
+ #define SPF_DEFAULT_MAX_DNS_MECH 10 /* DoS limit on SPF mechanisms */
+-#define SPF_DEFAULT_MAX_DNS_PTR 5 /* DoS limit on PTR records */
+-#define SPF_DEFAULT_MAX_DNS_MX 5 /* DoS limit on MX records */
++#define SPF_DEFAULT_MAX_DNS_PTR 10 /* DoS limit on PTR records */
++#define SPF_DEFAULT_MAX_DNS_MX 10 /* DoS limit on MX records */
+ #define SPF_DEFAULT_SANITIZE 1
+ #define SPF_DEFAULT_WHITELIST "include:spf.trusted-forwarder.org"
+ #define SPF_EXP_MOD_NAME "exp-text"
+--- src/include/spf_internal.h.orig 2008-02-10 11:30:28.000000000 -0200
++++ src/include/spf_internal.h 2008-02-10 11:31:26.000000000 -0200
+@@ -57,13 +57,13 @@
+ /* It is a bad idea to change this for the same reasons as mentioned
+ * above for SPF_MAX_DNS_MECH
+ */
+-#define SPF_MAX_DNS_PTR 5
++#define SPF_MAX_DNS_PTR 10
+ #endif
+ #ifndef SPF_MAX_DNS_MX
+ /* It is a bad idea to change this for the same reasons as mentioned
+ * above for SPF_MAX_DNS_MECH
+ */
+-#define SPF_MAX_DNS_MX 5
++#define SPF_MAX_DNS_MX 10
+ #endif
+
+ #if 1
+--- src/include/spf_server.h.orig 2008-02-10 11:31:38.000000000 -0200
++++ src/include/spf_server.h 2008-02-10 11:31:55.000000000 -0200
+@@ -43,13 +43,13 @@
+ /* It is a bad idea to change this for the same reasons as mentioned
+ * above for SPF_MAX_DNS_MECH
+ */
+-#define SPF_MAX_DNS_PTR 5
++#define SPF_MAX_DNS_PTR 10
+ #endif
+ #ifndef SPF_MAX_DNS_MX
+ /* It is a bad idea to change this for the same reasons as mentioned
+ * above for SPF_MAX_DNS_MECH
+ */
+-#define SPF_MAX_DNS_MX 5
++#define SPF_MAX_DNS_MX 10
+ #endif
+
+ struct SPF_server_struct {