diff options
author | dakkar <dakkar@thenautilus.net> | 2021-01-16 11:03:05 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2021-01-16 11:03:05 +0000 |
commit | b56bab13caa26c22c11218d82e8f7d5d5786f428 (patch) | |
tree | 7e377cba99d64c023d3c53acaa0830ce0213892b /net-libs/libwebsockets | |
parent | nextcloud-spreed-signaling, probably (diff) | |
download | gentoo-overlay-b56bab13caa26c22c11218d82e8f7d5d5786f428.tar.gz gentoo-overlay-b56bab13caa26c22c11218d82e8f7d5d5786f428.tar.bz2 gentoo-overlay-b56bab13caa26c22c11218d82e8f7d5d5786f428.zip |
patched libwebsockets
Diffstat (limited to 'net-libs/libwebsockets')
-rw-r--r-- | net-libs/libwebsockets/Manifest | 2 | ||||
-rw-r--r-- | net-libs/libwebsockets/libwebsockets-4.1.6-r1.ebuild | 86 |
2 files changed, 88 insertions, 0 deletions
diff --git a/net-libs/libwebsockets/Manifest b/net-libs/libwebsockets/Manifest new file mode 100644 index 0000000..d93ed24 --- /dev/null +++ b/net-libs/libwebsockets/Manifest @@ -0,0 +1,2 @@ +DIST libwebsockets-4.1.6.tar.gz 12912895 BLAKE2B d6b8c96b8da4c177e7c730acb13bbba63996b1817bc0e0df36923c7ad3aabb6823f852c84bef865e85ed7eac1855273527ff6e92e413bbed8576388ce2ec7e3f SHA512 b83059b5405fe5c8bbfb6ef4cdfb66ce8b3fa2a660c013e64fa579f3ae09c70a6e3807d37ad4cff1d37b0c797959ba4e9c527be7e31520b3853161cfd6224a54 +EBUILD libwebsockets-4.1.6-r1.ebuild 2445 BLAKE2B 49d0f7fe87755c8100905bc8395560086659e8c04b08125fbccc29fb94dc996966d2db75fb014d98f3395fe90a471077ae4513d9fe57a45f6314b934713625c0 SHA512 45d2c3c6b82fac6f7b6f2532a81f294da615c4b52acb829f94970b14fd37ffe4762ec2127c6ad684be09ec82dffd4324cb4c534a7953243bd281df32b5cc2d7c diff --git a/net-libs/libwebsockets/libwebsockets-4.1.6-r1.ebuild b/net-libs/libwebsockets/libwebsockets-4.1.6-r1.ebuild new file mode 100644 index 0000000..b35e693 --- /dev/null +++ b/net-libs/libwebsockets/libwebsockets-4.1.6-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A flexible pure-C library for implementing network protocols (patched for janus gateway)" +HOMEPAGE="https://libwebsockets.org/" +SRC_URI="https://github.com/warmcat/libwebsockets/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/17" # libwebsockets.so.17 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" +IUSE="access-log caps cgi client dbus generic-sessions http-proxy http2 ipv6 + +lejp libev libevent libressl libuv mbedtls peer-limits server-status smtp socks5 + sqlite3 ssl static-libs threads zip" + +REQUIRED_USE=" + access-log? ( http2 ) + generic-sessions? ( smtp sqlite3 ) + http-proxy? ( client ) + smtp? ( libuv ) + socks5? ( client http-proxy ) + ssl? ( ?? ( libressl mbedtls ) ) + mbedtls? ( ssl ) + ?? ( libev libevent ) +" + +RDEPEND=" + sys-libs/zlib + caps? ( sys-libs/libcap ) + dbus? ( sys-apps/dbus ) + http-proxy? ( net-libs/libhubbub ) + libev? ( dev-libs/libev ) + libevent? ( dev-libs/libevent:= ) + libuv? ( dev-libs/libuv:= ) + sqlite3? ( dev-db/sqlite:= ) + ssl? ( + !libressl? ( + !mbedtls? ( dev-libs/openssl:0= ) + mbedtls? ( >net-libs/mbedtls-2.0.0 ) + ) + ) +" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/perl + virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON + -DDISABLE_WERROR=ON + -DLWS_HAVE_LIBCAP=$(usex caps) + -DLWS_IPV6=$(usex ipv6) + -DLWS_ROLE_DBUS=$(usex dbus) + -DLWS_WITHOUT_CLIENT=$(usex !client) + -DLWS_WITHOUT_TEST_CLIENT=$(usex !client) + -DLWS_WITH_ACCESS_LOG=$(usex access-log) + -DLWS_WITH_CGI=$(usex cgi) + -DLWS_WITH_GENERIC_SESSIONS=$(usex generic-sessions) + -DLWS_WITH_HTTP2=$(usex http2) + -DLWS_WITH_HTTP_PROXY=$(usex http-proxy) + -DLWS_WITH_HUBBUB=$(usex http-proxy) + -DLWS_WITH_LEJP=$(usex lejp) + -DLWS_WITH_LIBEV=$(usex libev) + -DLWS_WITH_LIBEVENT=$(usex libevent) + -DLWS_WITH_LIBUV=$(usex libuv) + -DLWS_WITH_MBEDTLS=$(usex mbedtls) + -DLWS_WITH_PEER_LIMITS=$(usex peer-limits) + -DLWS_WITH_SERVER_STATUS=$(usex server-status) + -DLWS_WITH_SMTP=$(usex smtp) + -DLWS_WITH_SOCKS5=$(usex socks5) + -DLWS_WITH_SQLITE3=$(usex sqlite3) + -DLWS_WITH_SSL=$(usex ssl) + -DLWS_WITH_STATIC=$(usex static-libs) + -DLWS_WITH_STRUCT_JSON=$(usex lejp) + -DLWS_WITH_THREADPOOL=$(usex threads) + -DLWS_WITH_ZIP_FOPS=$(usex zip) + -DLWS_WITHOUT_TESTAPPS=ON + -DLWS_WITHOUT_EXTENSIONS=OFF + -DLWS_MAX_SMP=1 + ) + + cmake_src_configure +} |