summaryrefslogtreecommitdiff
path: root/net-libs/libwebsockets
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /net-libs/libwebsockets
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'net-libs/libwebsockets')
-rw-r--r--net-libs/libwebsockets/Manifest4
-rw-r--r--net-libs/libwebsockets/libwebsockets-4.0.0.ebuild77
-rw-r--r--net-libs/libwebsockets/metadata.xml3
3 files changed, 80 insertions, 4 deletions
diff --git a/net-libs/libwebsockets/Manifest b/net-libs/libwebsockets/Manifest
index 393290d77f46..ea3f77c93542 100644
--- a/net-libs/libwebsockets/Manifest
+++ b/net-libs/libwebsockets/Manifest
@@ -1,5 +1,7 @@
AUX libwebsockets-3.2.0-check_chown_result.patch 706 BLAKE2B dece41b49946d138a441c389ff57b5d1814174c90f2e3aea8f269a08c84035fd6853283a47a5eb48dae36ac2c7adc1dfbb85b985a62b2158c87c43c24acf2170 SHA512 79977a3e9142ea4c295a2b3a35f9e902d36fa032ff3ae1f13e6980eb9fa260239205f1b9b5998379a4b56f53e25af72e07c9973d1c67da2cadb254296f964fc4
AUX libwebsockets-3.2.1-socks5-noclient-compilefailure.patch 943 BLAKE2B 2d5660b54633f4f1c855b0d72ec11763af5b6a550708491a837542978b0a3b2607027c2c5f85375c71ed92f4f3726e10732010bf04565feea5ce765d89cb36ef SHA512 375a5ae24f3399406628fb604ac84670e1a2fb4ae08a4525da721a589e7e06f1265c1d906a037e0e20bca5d88785125f3d831eb853b79e286495ec0e32a22e9d
DIST libwebsockets-3.2.1.tar.gz 9868342 BLAKE2B d822552c611f7cd0ee416bf9b9576c6052e196c1aa68b12c46a00865d3dcd131840218394317f191485fc61d8f3b7654d4a652a47f11d279a555522df84a2350 SHA512 a2d30a7a0416a26484743efdaa8635542480a74b0ef0f6e172dab5de4688486efb13457fc8a884d9916f76322cab0cbc9ab675f496558edd1dd9b833d087207d
+DIST libwebsockets-4.0.0.tar.gz 12330114 BLAKE2B 4c845b02793853e349df311f1772fc6988876dc21a262d952b41a1742f59c9d9d0f9a8f28ce8fa9cdc36e3342022dc46836b359b2a11dfd6ac3f39f8c3c1fc9e SHA512 9d15d708ea399ea50502c97d4689b987e28222c81c6ca499969821532490b4eb19b67bab6b431081888c34f36d41d4f74e3611bd2103eecc31d5c6a559bcdf84
EBUILD libwebsockets-3.2.1.ebuild 2227 BLAKE2B 7af189cdcf997b5c2bff16260316e8e3e9b9d003663a08e52800afa46fe0ca8a59f72e5fdf0a193ebc9b8cedfb39329fa01735382e000c2c3eefe06e9ef40d5d SHA512 947a42364b9b48d99c4d0fc8043538561ad4deaba34a5d8e1fc5154110aff5a2948e5a6e49f66064a0e2cb541d2d436d14db8163f6fc8cdee4e9d6dc73bb389f
-MISC metadata.xml 1723 BLAKE2B 561ac0a5b23081a9b351b2d516d63784c40688a399e0ff49522b4a572b32e7d4462a0062680aa6a1e39c6cc364c1b8fddafb1eb7edcdd99e19eafe557710e23e SHA512 7d259d9f7744deede3f3bde1e79f8e17351443cb8dff672f7c550206bf41064a01a43b2bb955a97144bf9319ee190c9f9ffc49a9513c22db6288b49b51c9ace4
+EBUILD libwebsockets-4.0.0.ebuild 2158 BLAKE2B b938465ea3cd827241f4cdfef782248bc7dcbe1083df9301ea8ae0229555aaa69db89cebd0de8010730e0239edca5b7ddce13f911d2583cb556769146bcb405d SHA512 cb9e3ff4ae75c6bef52cbd58c07570cf0cf75189c251fd0384fd1270a355962398c283444c8b33609741f09d4d728d94d4c7c170127276fdf6ca564b99b49cf9
+MISC metadata.xml 1606 BLAKE2B 5e364abce43549abfa07179a757c2455ee2edc3d99d37c08d6f0d6f1df87d571e8f912672f2225175969ddc228abd25b7ab3218021857759b3f2d42792db5dad SHA512 9c38e83966d1a70197c0777fc15b7788c3c65420f38131bf8ef977601855710e9288dcc19cf2f63ffa2d34234d0b9b2d10e0259489581ca947139036c53b1644
diff --git a/net-libs/libwebsockets/libwebsockets-4.0.0.ebuild b/net-libs/libwebsockets/libwebsockets-4.0.0.ebuild
new file mode 100644
index 000000000000..baeee47a7b27
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-4.0.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2020 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"
+HOMEPAGE="https://libwebsockets.org/"
+SRC_URI="https://github.com/warmcat/libwebsockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+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
+ sqlite3 ssl static-libs threads zip"
+
+REQUIRED_USE="
+ generic-sessions? ( smtp sqlite3 )
+ http-proxy? ( client )
+ smtp? ( libuv )
+ ?? ( libev libevent )
+"
+
+RDEPEND="
+ sys-libs/zlib
+ caps? ( sys-libs/libcap )
+ http-proxy? ( net-libs/libhubbub )
+ libev? ( dev-libs/libev )
+ libevent? ( dev-libs/libevent:= )
+ libuv? ( dev-libs/libuv:= )
+ sqlite3? ( dev-db/sqlite:= )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-lang/perl"
+
+PATCHES=(
+ "${FILESDIR}/libwebsockets-3.2.0-check_chown_result.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=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_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_THREADPOOL=$(usex threads)
+ -DLWS_WITH_ZIP_FOPS=$(usex zip)
+ -DLWS_WITHOUT_TESTAPPS=ON
+ )
+
+ cmake_src_configure
+}
diff --git a/net-libs/libwebsockets/metadata.xml b/net-libs/libwebsockets/metadata.xml
index 5d94cebb10db..66a43eaafee6 100644
--- a/net-libs/libwebsockets/metadata.xml
+++ b/net-libs/libwebsockets/metadata.xml
@@ -9,9 +9,6 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
- <longdescription>
- libwebsockets is a C library for lightweight websocket clients and servers.
- </longdescription>
<use>
<flag name="access-log">Support generating Apache-compatible access logs</flag>
<flag name="cgi">Include CGI (spawn process with network-connected stdin/out/err) APIs</flag>