SLOT="0/16" # libwebsockets.so.16
KEYWORDS="~amd64 ~arm ~x86"
IUSE="access-log caps cgi client dbus generic-sessions http-proxy http2 ipv6
- +lejp libev libevent libressl libuv peer-limits server-status smtp socks5
+ +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 )
+ ssl? ( ?? ( libressl mbedtls ) )
?? ( libev libevent )
"
libuv? ( dev-libs/libuv:= )
sqlite3? ( dev-db/sqlite:= )
ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:0= )
+ !libressl? (
+ !mbedtls? ( dev-libs/openssl:0= )
+ mbedtls? ( >net-libs/mbedtls-2.0.0 )
+ )
)
"
DEPEND="${RDEPEND}"
)
src_configure() {
+ append-cflags -Wno-error
local mycmakeargs=(
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
-DLWS_HAVE_LIBCAP=$(usex caps)
-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)
<flag name="libev">Support event loops via dev-libs/libev</flag>
<flag name="libevent">Support event loops via dev-libs/libevent</flag>
<flag name="libuv">Support asynchronous I/O via dev-libs/libuv</flag>
+ <flag name="mbedtls">Use mbedTLS replacement for OpenSSL</flag>
<flag name="peer-limits">Track peers and restrict resources a single peer can allocate</flag>
<flag name="server-status">Support json + jscript server monitoring</flag>
<flag name="smtp">Provide SMTP support</flag>