FreeBSD Bugzilla – Attachment 220547 Details for
Bug 251835
net/libwebsockets: Update to 4.1.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for libwebsockets (w/ tests)
libwebsockets416-w-test.patch (text/plain), 13.79 KB, created by
Daniel Engberg
on 2020-12-14 11:09:36 UTC
(
hide
)
Description:
Patch for libwebsockets (w/ tests)
Filename:
MIME Type:
Creator:
Daniel Engberg
Created:
2020-12-14 11:09:36 UTC
Size:
13.79 KB
patch
obsolete
>diff --git a/net/libwebsockets/Makefile b/net/libwebsockets/Makefile >index a38680283769..82aa317d12d3 100644 >--- a/net/libwebsockets/Makefile >+++ b/net/libwebsockets/Makefile >@@ -3,8 +3,9 @@ > > PORTNAME= libwebsockets > DISTVERSIONPREFIX= v >-DISTVERSION= 4.0.21 >+DISTVERSION= 4.1.6 > CATEGORIES= net devel >+MASTER_SITES= https://libwebsockets.org/git/libwebsockets/snapshot/ > > MAINTAINER= iblis@hs.ntnu.edu.tw > COMMENT= C library for lightweight websocket clients and servers >@@ -12,63 +13,81 @@ COMMENT= C library for lightweight websocket clients and servers > LICENSE= MIT > LICENSE_FILE= ${WRKSRC}/LICENSE > >-USES= cmake pkgconfig ssl >-USE_LDCONFIG= yes >+# TEST_DEPENDS= bash:shells/bash >+ >+# USES= cmake localbase pkgconfig shebangfix tar:xz >+# SHEBANG_FILES= scripts/*.sh >+USES= cmake localbase pkgconfig tar:xz > >-PORTSCOUT= limit:^v\d+\.* >+USE_LDCONFIG= yes > >-USE_GITHUB= yes >-GH_ACCOUNT= warmcat >+CMAKE_ON= LWS_IPV6 LWS_WITH_SSL LWS_WITH_ZLIB \ >+ LWS_WITHOUT_TESTAPPS LWS_WITHOUT_TEST_SERVER \ >+ LWS_WITHOUT_TEST_SERVER_EXTPOLL \ >+ LWS_WITHOUT_TEST_PING LWS_WITHOUT_TEST_CLIENT > >-CMAKE_ARGS= -DLWS_WITHOUT_TESTAPPS=ON \ >- -DLWS_WITHOUT_TEST_SERVER=ON \ >- -DLWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \ >- -DLWS_WITHOUT_TEST_PING=ON \ >- -DLWS_WITHOUT_TEST_CLIENT=ON >+OPTIONS_DEFINE= HTTP_PROXY HTTP2 MQTT PEERLIMITS PLUGINS \ >+ SECURE_STREAMS SOCKS SQLITE WEBSERVER >+OPTIONS_DEFAULT= HTTP2 OPENSSL LIBUV >+OPTIONS_SUB= yes > >-OPTIONS_DEFINE= HTTP2 HTTP_PROXY IPV6 LIBEV LIBUV UNIX_SOCK WEBSERVER PLUGINS \ >- SOCKS5 MQTT SECURE_STREAMS >-OPTIONS_DEFAULT=HTTP2 LIBUV >-OPTIONS_SUB= yes >+OPTIONS_SINGLE= SSL >+OPTIONS_SINGLE_SSL= MBEDTLS OPENSSL >+OPTIONS_GROUP= EVLOOP >+OPTIONS_GROUP_EVLOOP= GLIB LIBEV LIBEVENT LIBUV > >-HTTP2_DESC= Compile with server support for HTTP/2 > HTTP_PROXY_DESC= HTTP proxy support >-LIBUV_DESC= Asynchronous I/O support via libuv >-UNIX_SOCK_DESC= Unix domain socket support >-SOCKS5_DESC= Allow use of SOCKS5 proxy on client connections > MQTT_DESC= MQTT client support >-SECURE_STREAMS_DESC= Secure Streams API support >- >-HTTP2_CMAKE_ON= -DLWS_WITH_HTTP2=ON >- >-HTTP_PROXY_CMAKE_ON= -DLWS_WITH_HTTP_PROXY=ON \ >- -DLIBHUBBUB_LIBRARIES=${LOCALBASE}/lib/libhubbub.so >-HTTP_PROXY_LIB_DEPENDS= libhubbub.so:www/libhubbub >- >-IPV6_CMAKE_ON= -DLWS_IPV6=ON >- >-LIBEV_CMAKE_ON= -DLWS_WITH_LIBEV=ON >+PEERLIMITS_DESC= Tracking and limiting of resources of peer(s) >+PLUGINS_DESC= Plugins support >+SECURE_STREAMS_DESC= Secure streams protocol API support >+SOCKS_DESC= Allow use of SOCKS5 proxy on client connections >+EVLOOP_DESC= Event loop support >+GLIB_DESC= Events support via Glib >+LIBEVENT_DESC= Asynchronous event notification via libevent >+LIBUV_DESC= Asynchronous I/O support via libuv >+ >+HTTP_PROXY_CMAKE_BOOL= LWS_WITH_HTTP_PROXY >+HTTP2_CMAKE_BOOL= LWS_WITH_HTTP2 >+MQTT_CMAKE_BOOL= LWS_ROLE_MQTT >+PEERLIMITS_CMAKE_BOOL= LWS_WITH_PEER_LIMITS >+PLUGINS_CMAKE_BOOL= LWS_WITH_PLUGINS \ >+ LWS_WITH_PLUGINS_API >+SECURE_STREAMS_CMAKE_BOOL= LWS_WITH_SECURE_STREAMS \ >+ LWS_WITH_SECURE_STREAMS_PROXY_API >+SOCKS_CMAKE_BOOL= LWS_WITH_SOCKS5 >+SQLITE_LIB_DEPENDS= libsqlite3.so:databases/sqlite3 >+SQLITE_CMAKE_BOOL= LWS_WITH_SQLITE3 >+# Tests depends on bash at minimum, help needed to fix test suite >+# TEST_CMAKE_BOOL= LWS_WITH_MINIMAL_EXAMPLES >+# TEST_CMAKE_ON= -DLWS_CTEST_INTERNET_AVAILABLE:BOOL=OFF \ >+# -DLWS_LINK_TESTAPPS_DYNAMIC:BOOL=ON >+# TEST_CMAKE_OFF= -DLWS_WITHOUT_TESTAPPS:BOOL=ON \ >+# -DLWS_WITHOUT_TEST_SERVER:BOOL=ON \ >+# -DLWS_WITHOUT_TEST_SERVER_EXTPOLL:BOOL=ON \ >+# -DLWS_WITHOUT_TEST_PING:BOOL=ON \ >+# -DLWS_WITHOUT_TEST_CLIENT:BOOL=ON >+WEBSERVER_CMAKE_BOOL= LWS_WITH_LWSWS >+WEBSERVER_IMPLIES= PEERLIMITS PLUGINS LIBUV >+ >+MBEDTLS_LIB_DEPENDS= libmbedtls.so:security/mbedtls >+MBEDTLS_CMAKE_BOOL= LWS_WITH_MBEDTLS >+OPENSSL_USES= ssl >+OPENSSL_CMAKE_BOOL= LWS_WITHOUT_BUILTIN_SHA1 >+# WolfSSL need to be compiled with --enable-libwebsockets to be compatible >+# WOLFSSL_LIB_DEPENDS= libwolfssl.so:security/wolfssl >+# WOLFSSL_CMAKE_BOOL= LWS_WITH_SSL LWS_WITH_WOLFSSL >+# WOLFSSL_CMAKE_ON= -DLWS_WOLFSSL_INCLUDE_DIRS=${LOCALBASE}/include \ >+# -DLWS_WOLFSSL_LIBRARIES=${LOCALBASE}/lib/libwolfssl.so >+ >+GLIB_USES= gnome >+GLIB_USE= GNOME=glib20 >+GLIB_CMAKE_BOOL= LWS_WITH_GLIB > LIBEV_LIB_DEPENDS= libev.so:devel/libev >- >-LIBUV_CMAKE_ON= -DLWS_WITH_LIBUV=ON >+LIBEV_CMAKE_BOOL= LWS_WITH_LIBEV >+LIBEVENT_LIB_DEPENDS= libevent.so:devel/libevent >+LIBEVENT_CMAKE_BOOL= LWS_WITH_LIBEVENT > LIBUV_LIB_DEPENDS= libuv.so:devel/libuv >- >-UNIX_SOCK_CMAKE_ON= -DLWS_UNIX_SOCK=ON >- >-WEBSERVER_CMAKE_ON= -DLWS_WITH_LWSWS=ON >-WEBSERVER_IMPLIES= LIBUV >- >-PLUGINS_CMAKE_ON= -DLWS_WITH_PLUGINS=ON \ >- -DLWS_WITH_SERVER_STATUS=ON \ >- -DLWS_WITH_GENERIC_SESSIONS=ON >-PLUGINS_LIB_DEPENDS= libsqlite3.so:databases/sqlite3 >- >-SOCKS5_CMAKE_ON= -DLWS_WITH_SOCKS5=ON >- >-MQTT_CMAKE_ON= -DLWS_ROLE_MQTT=ON >- >-SECURE_STREAMS_CMAKE_ON=-DLWS_WITH_SECURE_STREAMS=ON \ >- -DLWS_WITH_SECURE_STREAMS_PROXY_API=ON \ >- -DLWS_WITH_SECURE_STREAMS_SYS_AUTH_API_AMAZON_COM=ON >+LIBUV_CMAKE_BOOL= LWS_WITH_LIBUV > > .include <bsd.port.mk> >diff --git a/net/libwebsockets/distinfo b/net/libwebsockets/distinfo >index 42c2aa3035cd..5b26cf42e526 100644 >--- a/net/libwebsockets/distinfo >+++ b/net/libwebsockets/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1603959557 >-SHA256 (warmcat-libwebsockets-v4.0.21_GH0.tar.gz) = 6ece1f422c6d38aabedec2476f2ac12e9aede8691b08137068ad85545ce3ff78 >-SIZE (warmcat-libwebsockets-v4.0.21_GH0.tar.gz) = 12342078 >+TIMESTAMP = 1607873825 >+SHA256 (libwebsockets-v4.1.6.tar.xz) = d24b644bb1686c6dd6e3499b9407bb7e22f08f43da22ae7be435c74433a2641f >+SIZE (libwebsockets-v4.1.6.tar.xz) = 8570880 >diff --git a/net/libwebsockets/files/patch-CMakeLists.txt b/net/libwebsockets/files/patch-CMakeLists.txt >deleted file mode 100644 >index 0592f26fc7e2..000000000000 >--- a/net/libwebsockets/files/patch-CMakeLists.txt >+++ /dev/null >@@ -1,20 +0,0 @@ >---- CMakeLists.txt.orig 2018-03-08 10:28:37 UTC >-+++ CMakeLists.txt >-@@ -1739,7 +1739,7 @@ Cflags: -I\${includedir}" >- ) >- >- install(FILES "${PROJECT_BINARY_DIR}/libwebsockets.pc" >-- DESTINATION lib${LIB_SUFFIX}/pkgconfig) >-+ DESTINATION libdata/pkgconfig) >- >- file(WRITE "${PROJECT_BINARY_DIR}/libwebsockets_static.pc" >- "prefix=\"${CMAKE_INSTALL_PREFIX}\" >-@@ -1757,7 +1757,7 @@ Cflags: -I\${includedir}" >- ) >- >- install(FILES "${PROJECT_BINARY_DIR}/libwebsockets_static.pc" >-- DESTINATION lib${LIB_SUFFIX}/pkgconfig) >-+ DESTINATION libdata/pkgconfig) >- >- >- endif(UNIX) >diff --git a/net/libwebsockets/pkg-plist b/net/libwebsockets/pkg-plist >index a55eef96f3d1..f04d1ea58d70 100644 >--- a/net/libwebsockets/pkg-plist >+++ b/net/libwebsockets/pkg-plist >@@ -1,3 +1,7 @@ >+@comment %%TEST%%bin/libwebsockets-test-client >+@comment %%TEST%%bin/libwebsockets-test-lejp >+@comment %%TEST%%bin/libwebsockets-test-server >+@comment %%TEST%%bin/libwebsockets-test-server-extpoll > %%WEBSERVER%%bin/lwsws > include/libwebsockets.h > include/libwebsockets/abstract/abstract.h >@@ -8,6 +12,9 @@ include/libwebsockets/abstract/transports/raw-skt.h > include/libwebsockets/abstract/transports/unit-test.h > include/libwebsockets/lws-adopt.h > include/libwebsockets/lws-async-dns.h >+include/libwebsockets/lws-bb-i2c.h >+include/libwebsockets/lws-bb-spi.h >+include/libwebsockets/lws-button.h > include/libwebsockets/lws-callbacks.h > include/libwebsockets/lws-cgi.h > include/libwebsockets/lws-client.h >@@ -15,9 +22,10 @@ include/libwebsockets/lws-context-vhost.h > include/libwebsockets/lws-dbus.h > include/libwebsockets/lws-detailed-latency.h > include/libwebsockets/lws-diskcache.h >+include/libwebsockets/lws-display.h > include/libwebsockets/lws-dll2.h > include/libwebsockets/lws-dsh.h >-include/libwebsockets/lws-esp32.h >+include/libwebsockets/lws-eventlib-exports.h > include/libwebsockets/lws-freertos.h > include/libwebsockets/lws-fts.h > include/libwebsockets/lws-genaes.h >@@ -25,21 +33,26 @@ include/libwebsockets/lws-gencrypto.h > include/libwebsockets/lws-genec.h > include/libwebsockets/lws-genhash.h > include/libwebsockets/lws-genrsa.h >+include/libwebsockets/lws-gpio.h > include/libwebsockets/lws-http.h >+include/libwebsockets/lws-i2c.h >+include/libwebsockets/lws-ili9341-spi.h > include/libwebsockets/lws-jose.h > include/libwebsockets/lws-jwe.h > include/libwebsockets/lws-jwk.h > include/libwebsockets/lws-jws.h >+include/libwebsockets/lws-led.h > include/libwebsockets/lws-lejp.h > include/libwebsockets/lws-logs.h > include/libwebsockets/lws-lwsac.h > include/libwebsockets/lws-misc.h > include/libwebsockets/lws-mqtt.h >+include/libwebsockets/lws-netdev.h > include/libwebsockets/lws-network-helper.h > include/libwebsockets/lws-optee.h >-include/libwebsockets/lws-plugin-generic-sessions.h > include/libwebsockets/lws-protocols-plugins.h > include/libwebsockets/lws-purify.h >+include/libwebsockets/lws-pwm.h > include/libwebsockets/lws-retry.h > include/libwebsockets/lws-ring.h > include/libwebsockets/lws-secure-streams-client.h >@@ -47,8 +60,12 @@ include/libwebsockets/lws-secure-streams-policy.h > include/libwebsockets/lws-secure-streams.h > include/libwebsockets/lws-sequencer.h > include/libwebsockets/lws-service.h >+include/libwebsockets/lws-settings.h > include/libwebsockets/lws-sha1-base64.h >+include/libwebsockets/lws-smd.h > include/libwebsockets/lws-spa.h >+include/libwebsockets/lws-spi.h >+include/libwebsockets/lws-ssd1306-i2c.h > include/libwebsockets/lws-state.h > include/libwebsockets/lws-stats.h > include/libwebsockets/lws-struct.h >@@ -64,40 +81,52 @@ include/libwebsockets/lws-ws-close.h > include/libwebsockets/lws-ws-ext.h > include/libwebsockets/lws-ws-state.h > include/libwebsockets/lws-x509.h >-include/lws-plugin-ssh.h > include/lws_config.h >-lib/cmake/libwebsockets/LibwebsocketsConfig.cmake >-lib/cmake/libwebsockets/LibwebsocketsConfigVersion.cmake > lib/cmake/libwebsockets/LibwebsocketsTargets-%%CMAKE_BUILD_TYPE%%.cmake > lib/cmake/libwebsockets/LibwebsocketsTargets.cmake >+lib/cmake/libwebsockets/LwsCheckRequirements.cmake >+lib/cmake/libwebsockets/libwebsockets-config-version.cmake >+lib/cmake/libwebsockets/libwebsockets-config.cmake >+%%GLIB%%lib/libwebsockets-evlib_glib.so >+%%LIBEV%%lib/libwebsockets-evlib_ev.so >+%%LIBEVENT%%lib/libwebsockets-evlib_event.so >+%%LIBUV%%lib/libwebsockets-evlib_uv.so > lib/libwebsockets.a > lib/libwebsockets.so >-lib/libwebsockets.so.16 >+lib/libwebsockets.so.17 > libdata/pkgconfig/libwebsockets.pc > libdata/pkgconfig/libwebsockets_static.pc >+@comment %%TEST%%%%DATADIR%%-test-server/candide.zip >+@comment %%TEST%%%%DATADIR%%-test-server/favicon.ico >+@comment %%TEST%%%%DATADIR%%-test-server/http2.png >+@comment %%TEST%%%%DATADIR%%-test-server/leaf.jpg >+@comment %%TEST%%%%DATADIR%%-test-server/libwebsockets-test-server.key.pem >+@comment %%TEST%%%%DATADIR%%-test-server/libwebsockets-test-server.pem >+@comment %%TEST%%%%DATADIR%%-test-server/libwebsockets.org-logo.svg >+@comment %%TEST%%%%DATADIR%%-test-server/lws-common.js >+@comment %%TEST%%%%DATADIR%%-test-server/lws-ssh-test-keys >+@comment %%TEST%%%%DATADIR%%-test-server/lws-ssh-test-keys.pub >+@comment %%TEST%%%%DATADIR%%-test-server/test.css >+@comment %%TEST%%%%DATADIR%%-test-server/test.html >+@comment %%TEST%%%%DATADIR%%-test-server/test.js >+@comment %%TEST%%%%DATADIR%%-test-server/wss-over-h2.png > %%PLUGINS%%%%DATADIR%%-test-server/deaddrop/deaddrop.css > %%PLUGINS%%%%DATADIR%%-test-server/deaddrop/deaddrop.js > %%PLUGINS%%%%DATADIR%%-test-server/deaddrop/drop.svg > %%PLUGINS%%%%DATADIR%%-test-server/deaddrop/index.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/failed-login.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/index.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/lwsgs-logo.png >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/lwsgs.css >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/lwsgs.js >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/needadmin/admin-login.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/needauth/successful-login.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/post-forgot-fail.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/post-forgot-ok.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/post-register-fail.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/post-register-ok.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/post-verify-fail.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/post-verify-ok.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/seats.jpg >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/sent-forgot-fail.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-sessions/sent-forgot-ok.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-table/index.html >-%%PLUGINS%%%%DATADIR%%-test-server/generic-table/lwsgt.js >-%%PLUGINS%%%%DATADIR%%-test-server/server-status/lwsws-logo.png >-%%PLUGINS%%%%DATADIR%%-test-server/server-status/server-status.css >-%%PLUGINS%%%%DATADIR%%-test-server/server-status/server-status.html >-%%PLUGINS%%%%DATADIR%%-test-server/server-status/server-status.js >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_client_loopback_test.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_deaddrop.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_dumb_increment.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_lws_mirror.so >+%%WEBSERVER%%%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_lws_raw_proxy.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_lws_raw_test.so >+%%WEBSERVER%%%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_lws_server_status.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_lws_ssh_base.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_lws_sshd_demo.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_lws_status.so >+%%PLUGINS%%%%DATADIR%%-test-server/plugins/libprotocol_post_demo.so >+@comment %%TEST%%%%DATADIR%%-test-server/private/index.html >+%%WEBSERVER%%%%PLUGINS%%%%DATADIR%%-test-server/server-status/lwsws-logo.png >+%%WEBSERVER%%%%PLUGINS%%%%DATADIR%%-test-server/server-status/server-status.css >+%%WEBSERVER%%%%PLUGINS%%%%DATADIR%%-test-server/server-status/server-status.html >+%%WEBSERVER%%%%PLUGINS%%%%DATADIR%%-test-server/server-status/server-status.js
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
koobs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 251835
:
220546
| 220547