svn commit: r453061 - in head/www/lighttpd: . files
Guido Falsi
madpilot at FreeBSD.org
Sat Oct 28 16:00:58 UTC 2017
Author: madpilot
Date: Sat Oct 28 16:00:56 2017
New Revision: 453061
URL: https://svnweb.freebsd.org/changeset/ports/453061
Log:
Fix runtime problem when lighttpd is built with IPV6 option turned
on.
PR: 223288
Submitted by: Piotr Kubaj <pkubaj at anongoth.pl> (maintainer)
Obtained from: https://redmine.lighttpd.net/issues/2832
Added:
head/www/lighttpd/files/patch-patch-src__network.c (contents, props changed)
Modified:
head/www/lighttpd/Makefile
Modified: head/www/lighttpd/Makefile
==============================================================================
--- head/www/lighttpd/Makefile Sat Oct 28 15:56:49 2017 (r453060)
+++ head/www/lighttpd/Makefile Sat Oct 28 16:00:56 2017 (r453061)
@@ -3,6 +3,7 @@
PORTNAME?= lighttpd
PORTVERSION= 1.4.47
+PORTREVISION= 1
CATEGORIES?= www
MASTER_SITES?= http://download.lighttpd.net/lighttpd/releases-1.4.x/
Added: head/www/lighttpd/files/patch-patch-src__network.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/lighttpd/files/patch-patch-src__network.c Sat Oct 28 16:00:56 2017 (r453061)
@@ -0,0 +1,19 @@
+--- patch-src_network.c.orig 2017-10-28 15:54:22 UTC
++++ patch-src_network.c
+@@ -0,0 +1,16 @@
++--- src/network.c.orig 2017-10-28 14:00:17 UTC
+++++ src/network.c
++@@ -77,9 +77,13 @@ static void network_host_normalize_addr_
++ if (addr->plain.sa_family == AF_INET6)
++ buffer_append_string_len(host, CONST_STR_LEN("]"));
++ if (addr->plain.sa_family != AF_UNIX) {
+++#ifdef HAVE_IPV6
++ unsigned short port = (addr->plain.sa_family == AF_INET)
++ ? ntohs(addr->ipv4.sin_port)
++ : ntohs(addr->ipv6.sin6_port);
+++#elif
+++ unsigned short port = ntohs(addr->ipv6.sin6_port);
+++#endif
++ buffer_append_string_len(host, CONST_STR_LEN(":"));
++ buffer_append_int(host, (int)port);
++ }
More information about the svn-ports-head
mailing list