aboutsummaryrefslogtreecommitdiff
path: root/www/apache2
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2004-07-13 09:32:44 +0000
committerClement Laforet <clement@FreeBSD.org>2004-07-13 09:32:44 +0000
commitbe548a19b69b36518e6dcdeb2f07c9754990b060 (patch)
tree0a26d5dbd3b6f3f955a681dc6380bbe9bafa1f9e /www/apache2
parente2ca6bea49eef37b38c7d98b702dd449492b4b8e (diff)
Notes
Diffstat (limited to 'www/apache2')
-rw-r--r--www/apache2/Makefile4
-rw-r--r--www/apache2/Makefile.doc2
-rw-r--r--www/apache2/files/patch-fix-srclib:apr:network_io:unix:sockaddr.c10
3 files changed, 15 insertions, 1 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile
index 69ceaf6db346..3e06a63f474c 100644
--- a/www/apache2/Makefile
+++ b/www/apache2/Makefile
@@ -77,7 +77,9 @@ WITH_HTTP_PORT?= 80
.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --disable-ipv6
-.elif !defined(WITH_IPV6_V6ONLY)
+.elif defined(WITH_IPV6_V6ONLY) && defined(WITHOUT_V4MAPPED)
+CONFIGURE_ARGS+= --disable-v4-mapped
+.else
CONFIGURE_ARGS+= --enable-v4-mapped
.endif
diff --git a/www/apache2/Makefile.doc b/www/apache2/Makefile.doc
index 12a65693a560..fb54f7c9f6dc 100644
--- a/www/apache2/Makefile.doc
+++ b/www/apache2/Makefile.doc
@@ -23,6 +23,8 @@
## WITHOUT_AUTH: Disable auth modules
## WITH_CUSTOM_AUTH: Let you choose which auth modules you wish
## WITHOUT_DAV: Disable DAV support
+## WITHOUT_IPV6: Disable IPv6 support
+## WITHOUT_V4MAPPED
## WITH_IPV6_V6ONLY: Don't allow IPv6 sockets to handle IPv4
## connections
## WITHOUT_SSL: Disable SSL support
diff --git a/www/apache2/files/patch-fix-srclib:apr:network_io:unix:sockaddr.c b/www/apache2/files/patch-fix-srclib:apr:network_io:unix:sockaddr.c
new file mode 100644
index 000000000000..336671027754
--- /dev/null
+++ b/www/apache2/files/patch-fix-srclib:apr:network_io:unix:sockaddr.c
@@ -0,0 +1,10 @@
+--- srclib/apr/network_io/unix/sockaddr.c.orig Tue Jul 13 09:08:03 2004
++++ srclib/apr/network_io/unix/sockaddr.c Tue Jul 13 09:08:46 2004
+@@ -612,6 +612,7 @@
+ struct sockaddr_in tmpsa;
+ tmpsa.sin_family = AF_INET;
+ tmpsa.sin_addr.s_addr = ((apr_uint32_t *)sockaddr->ipaddr_ptr)[3];
++ tmpsa.sin_len = sizeof(tmpsa);
+
+ rc = getnameinfo((const struct sockaddr *)&tmpsa, sizeof(tmpsa),
+ tmphostname, sizeof(tmphostname), NULL, 0,