summaryrefslogtreecommitdiff
path: root/mail/anubis
diff options
context:
space:
mode:
authorSergei Kolobov <sergei@FreeBSD.org>2003-10-23 10:09:43 +0000
committerSergei Kolobov <sergei@FreeBSD.org>2003-10-23 10:09:43 +0000
commit88f43d324609a96cdb56f13ab634474bbc6a85a5 (patch)
tree5b018a8848963d54736335ede6c8928fc0e9905d /mail/anubis
parentFix installation procedure: modsecurity Inc. released a bug-fix, (diff)
- Apply vendor's security patch
- Bump PORTREVISION Submitted by: Wojciech Polak <polak@gnu.org> Approved by: krion (implicitly)
Notes
Notes: svn path=/head/; revision=91943
Diffstat (limited to 'mail/anubis')
-rw-r--r--mail/anubis/Makefile2
-rw-r--r--mail/anubis/files/patch-freebsd38
2 files changed, 40 insertions, 0 deletions
diff --git a/mail/anubis/Makefile b/mail/anubis/Makefile
index 65ab70ba5d62..65296b02106b 100644
--- a/mail/anubis/Makefile
+++ b/mail/anubis/Makefile
@@ -19,6 +19,7 @@
PORTNAME= anubis
PORTVERSION= 3.6.2
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -26,6 +27,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= sergei@FreeBSD.org
COMMENT= Outgoing SMTP mail processor
+PATCH_STRIP= -p1
USE_REINPLACE= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
diff --git a/mail/anubis/files/patch-freebsd b/mail/anubis/files/patch-freebsd
new file mode 100644
index 000000000000..42057fc495e2
--- /dev/null
+++ b/mail/anubis/files/patch-freebsd
@@ -0,0 +1,38 @@
+diff -urN anubis-3.6.2/src/net.c anubis-3.6.2-fix/src/net.c
+--- anubis-3.6.2/src/net.c Wed Dec 11 15:37:56 2002
++++ anubis-3.6.2-fix/src/net.c Thu Jun 5 23:38:49 2003
+@@ -122,6 +122,7 @@
+ int sd = 0;
+ unsigned long inaddr;
+ struct sockaddr_in addr;
++ int true = 1;
+
+ memset(&addr, 0, sizeof(addr));
+ addr.sin_family = AF_INET;
+@@ -153,6 +154,8 @@
+ else
+ addr.sin_addr.s_addr = htonl(INADDR_ANY);
+
++ setsockopt (sd, SOL_SOCKET, SO_REUSEADDR, &true, sizeof(true));
++
+ if (bind(sd, (struct sockaddr *)&addr, sizeof(addr)))
+ anubis_error(HARD, _("bind() failed: %s."), strerror(errno));
+ info(VERBOSE, _("GNU Anubis bound to %s:%u"), inet_ntoa(addr.sin_addr),
+diff -urN anubis-3.6.2/src/tunnel.c anubis-3.6.2-fix/src/tunnel.c
+--- anubis-3.6.2/src/tunnel.c Sun Dec 8 19:04:51 2002
++++ anubis-3.6.2-fix/src/tunnel.c Tue Mar 11 11:04:10 2003
+@@ -554,9 +554,11 @@
+ ptr1 = strstr(boundary_buf, "boundary=");
+ if (ptr1 == 0) {
+ plist = plist->next;
+- safe_strcpy(boundary_buf, plist->line);
+- change_to_lower(boundary_buf);
+- ptr1 = strstr(boundary_buf, "boundary=");
++ if (plist) {
++ safe_strcpy(boundary_buf, plist->line);
++ change_to_lower(boundary_buf);
++ ptr1 = strstr(boundary_buf, "boundary=");
++ }
+ }
+
+ if (ptr1) {