summaryrefslogtreecommitdiff
path: root/net-libs/libwebsockets
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/libwebsockets
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/libwebsockets')
-rw-r--r--net-libs/libwebsockets/Manifest9
-rw-r--r--net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch22
-rw-r--r--net-libs/libwebsockets/libwebsockets-1.7.9.ebuild47
-rw-r--r--net-libs/libwebsockets/libwebsockets-2.0.2.ebuild47
-rw-r--r--net-libs/libwebsockets/libwebsockets-2.1.1.ebuild67
-rw-r--r--net-libs/libwebsockets/metadata.xml36
6 files changed, 228 insertions, 0 deletions
diff --git a/net-libs/libwebsockets/Manifest b/net-libs/libwebsockets/Manifest
new file mode 100644
index 000000000000..c522584f4e41
--- /dev/null
+++ b/net-libs/libwebsockets/Manifest
@@ -0,0 +1,9 @@
+AUX libwebsockets-2.1.1-x86-build.patch 771 SHA256 49ae9f959394686d469f960951ece3ad1101655afe64df28ea5b1a61c1d124f0 SHA512 b4f34813309921728e9dcd88e29ae6b2bcb6ac3e55d86e489a85fe9950bc3758d03f7e639773447110c5bb82e4bceee3210569fc065e860f596053ed8c8a317c WHIRLPOOL ee0370a3f3811ee9f6e22510d426dd0e33b09b9ad07f95e606f1742ec2bff579886641e18f6c35011f484082d1ea978366d7b8e3123970be28c487f7b804e606
+DIST libwebsockets-1.7.9.tar.gz 2915358 SHA256 86a5105881ea2cb206f8795483d294e9509055decf60436bcc1e746262416438 SHA512 d5bd6171d58b5d5439af48d6cc1e92623e9bf21e059a2d25d362ef81b1bff62e759fe265261dbee0ac4ceb0d0a2490dc1e030dfee2b36eb8ac74df112da1db56 WHIRLPOOL fd4682cd941b23d79239c5351eeb129274b3d566aad5962825cfd3fbed262f69503dc0adde2eb7b65e4d446de09133595646695925c8633745c5aecd45a0af00
+DIST libwebsockets-2.0.2.tar.gz 2998585 SHA256 7ab40b7c28b25d7a3776283219447876502163d89269b3c05739cfc3753525bc SHA512 6cd0cfe14ab9aa2ce26624d41290ed3bd0ae4167e93d5db738883dbbe2db851bd75037929a417922c2ef78eae3ff00583134d42da575d961c777e4a1ad0fef4a WHIRLPOOL 576e16dd9638822056142b3c72a53ba2d3582d5c15b3f0c971abc6017d3d34d3c7df503414f33cc3b68cf8033b5ff5cb6dc9b286d1c9c5d890bc0928f61a1439
+DIST libwebsockets-2.1.1.tar.gz 3769593 SHA256 96183cbdfcd6e6a3d9465e854a924b7bfde6c8c6d3384d6159ad797c2e823b4d SHA512 429bca62feb75136d8aff1783a6024468033536356fb3501e4dcf0819d9e9a4457f2a94248fdafe6fdceb7e0ded146ff6c4c04040e069f34a9b27a4e090d2683 WHIRLPOOL 7eae91b00d0c80c7589114ff4d3544aded742babdf2ff1c0cf1091f846f844c86b20b1983709e20c429c5caa98ae808b4094723695e36fdc124ea81d4ad49747
+EBUILD libwebsockets-1.7.9.ebuild 1190 SHA256 d86c36ba7fb012ebd854919af11f8fdcb0ba2c1a4b90d4e468fb898b9cf0b271 SHA512 ae405094c922c0004a2b5f312b8a8c0c8b7674208bdb89b969643ba0444624ade3bbb5a8264c1c58c955e320ddb60ca6b06f0d6ab1a823e12bf1e8a8890c8afa WHIRLPOOL f01926a5d0942a68d3985c89246ce3cfce10a16661f7bad4081ad6ff1e1da2962484823f8ef3c82000e7bf3960f4cb0fa97a61b6589dad9d0b5b0de23631a91f
+EBUILD libwebsockets-2.0.2.ebuild 1191 SHA256 643d7184916e7b7cf6516520821a8b7c8cb46e9d4b822b149fd1883f7dd11d17 SHA512 8f4c590d1a9c72d752190dbfb8e4e9a99f940851ea52e3ef2e1959a981a03169409d71c38e3adda3284d554bf7126342984f1861844d9f762227bdd7c7611d8b WHIRLPOOL d0a2c0530efd79f9d79479dd0c5e46747e601efa1e937ea9a6640c1d07ceb996d2af3e5e079a94c494929b0dbcea479a0e7ae91be2af312b55b4cd0db53d3898
+EBUILD libwebsockets-2.1.1.ebuild 1887 SHA256 493d7c2df331ede9f4cf0c4d6d25a7bb9bcbae10c1d4814a836803cebce29f67 SHA512 20544fcb958345dab6e070980ecdc54b7b38abf967f0c9ed3704ffe7300433d7e773ab3e6d85a0500ea433de73730d97b535e9c120af3d0cbfcaeb75f7a04837 WHIRLPOOL 8f0197fbd607bd52e2842cfc4d98c74d68f535061626aee07812655e80efca214b0bba9a1637c0ef349ebff22890c9637551971e078dc4d2e30cb5c57f1b168d
+MISC ChangeLog 3051 SHA256 0eae7ed440343cdf0689c1acda40b7014907334a90a0905d271e2da7ebde126c SHA512 c042afeebb82c2d055e84799b58d91407d683561eee91d46025746726779eecf8b74dfd72bcd9522ddb89288f30f1a65ceff47120ce42ddf3048cfdd23ee4a30 WHIRLPOOL 6b26abc246d912caaf5b00978ac705f3d93dbede491ec4807b1980cb1502bc4e6428a84886c685d9367ec197e6577d3d37e1dfa839d081c9c30cd377795f01ab
+MISC metadata.xml 1524 SHA256 d2ec4b3f2b776dbf5ab1328ead2ba634d0d3fa936a65273aacae726cb4db440a SHA512 d43b3715a0387a4662aa7b3def3384a1eed5f840f4c187a74df33785efc855d4879bd1bdc4d339326787984cece87cfeafe957f6abe91d30de854199968cd406 WHIRLPOOL bc1317047e1fa3c4cf152abfa79660903db19e07da5a760bc334dc5f8f0161c991fcee7f0eeb17510f1b56decc82dca74f8aff37978f61ce6dda3cca6b56d7ee
diff --git a/net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch b/net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch
new file mode 100644
index 000000000000..9fe9489297f4
--- /dev/null
+++ b/net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch
@@ -0,0 +1,22 @@
+From f9f5a5760782b68fba190fb46d306f7c08f027c0 Mon Sep 17 00:00:00 2001
+From: Silas Parker <skyhisi@users.github.invalid>
+Date: Tue, 14 Feb 2017 17:55:13 +0800
+Subject: [PATCH] gcc-format-strings: ipv6
+
+---
+ lib/libwebsockets.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
+index 770cb24..8ee906a 100755
+--- a/lib/libwebsockets.c
++++ b/lib/libwebsockets.c
+@@ -670,7 +670,7 @@ lws_get_addresses(struct lws_vhost *vh, void *ads, char *name,
+ #ifdef LWS_USE_IPV6
+ if (LWS_IPV6_ENABLED(vh)) {
+ if (!lws_plat_inet_ntop(AF_INET6, &((struct sockaddr_in6 *)ads)->sin6_addr, rip, rip_len)) {
+- lwsl_err("inet_ntop", strerror(LWS_ERRNO));
++ lwsl_err("inet_ntop: %s", strerror(LWS_ERRNO));
+ return -1;
+ }
+
diff --git a/net-libs/libwebsockets/libwebsockets-1.7.9.ebuild b/net-libs/libwebsockets/libwebsockets-1.7.9.ebuild
new file mode 100644
index 000000000000..12fa48d815be
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-1.7.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="canonical libwebsockets.org websocket library"
+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"
+KEYWORDS="~amd64 ~x86"
+IUSE="+http2 +ssl client ipv6 libev libressl libuv static-libs"
+
+REQUIRED_USE="libressl? ( ssl )"
+
+RDEPEND="
+ sys-libs/zlib
+ libev? ( dev-libs/libev )
+ libuv? ( dev-libs/libuv )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DLWS_IPV6=$(usex ipv6 ON OFF)
+ -DLWS_LINK_TESTAPPS_DYNAMIC=$(usex !static-libs ON OFF)
+ -DLWS_WITH_HTTP2=$(usex http2 ON OFF)
+ -DLWS_WITH_STATIC=$(usex static-libs ON OFF)
+ -DLWS_WITH_LIBEV=$(usex libev ON OFF)
+ -DLWS_WITH_LIBUV=$(usex libuv ON OFF)
+ -DLWS_WITH_SSL=$(usex ssl ON OFF)
+ -DLWS_WITHOUT_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITHOUT_TEST_CLIENT=$(usex !client ON OFF)
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/net-libs/libwebsockets/libwebsockets-2.0.2.ebuild b/net-libs/libwebsockets/libwebsockets-2.0.2.ebuild
new file mode 100644
index 000000000000..47332620d0bf
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-2.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="canonical libwebsockets.org websocket library"
+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"
+KEYWORDS="~amd64 ~x86"
+IUSE="+http2 +ssl client ipv6 libev libressl libuv static-libs"
+
+REQUIRED_USE="libressl? ( ssl )"
+
+RDEPEND="
+ sys-libs/zlib
+ libev? ( dev-libs/libev )
+ libuv? ( dev-libs/libuv )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DLWS_IPV6=$(usex ipv6 ON OFF)
+ -DLWS_LINK_TESTAPPS_DYNAMIC=$(usex !static-libs ON OFF)
+ -DLWS_WITH_HTTP2=$(usex http2 ON OFF)
+ -DLWS_WITH_STATIC=$(usex static-libs ON OFF)
+ -DLWS_WITH_LIBEV=$(usex libev ON OFF)
+ -DLWS_WITH_LIBUV=$(usex libuv ON OFF)
+ -DLWS_WITH_SSL=$(usex ssl ON OFF)
+ -DLWS_WITHOUT_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITHOUT_TEST_CLIENT=$(usex !client ON OFF)
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/net-libs/libwebsockets/libwebsockets-2.1.1.ebuild b/net-libs/libwebsockets/libwebsockets-2.1.1.ebuild
new file mode 100644
index 000000000000..46a8522c0225
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-2.1.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="canonical libwebsockets.org websocket library"
+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/${PV}"
+KEYWORDS="amd64 arm x86"
+IUSE="+http2 +ssl access-log cgi client generic-sessions http-proxy ipv6 lejp libev libressl libuv server-status smtp sqlite3 static-libs"
+
+REQUIRED_USE="
+ libressl? ( ssl )
+ http-proxy? ( client )
+ generic-sessions? ( sqlite3 )
+ generic-sessions? ( smtp )
+ smtp? ( libuv )
+"
+
+RDEPEND="
+ sys-libs/zlib
+ http-proxy? ( net-libs/libhubbub )
+ libev? ( dev-libs/libev )
+ libuv? ( dev-libs/libuv )
+ sqlite3? ( dev-db/sqlite )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+"
+src_prepare() {
+ epatch "${FILESDIR}/${P}-x86-build.patch"
+ default
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLWS_IPV6=$(usex ipv6 ON OFF)
+ -DLWS_LINK_TESTAPPS_DYNAMIC=$(usex !static-libs ON OFF)
+ -DLWS_WITH_HTTP2=$(usex http2 ON OFF)
+ -DLWS_WITH_STATIC=$(usex static-libs ON OFF)
+ -DLWS_WITH_LIBEV=$(usex libev ON OFF)
+ -DLWS_WITH_LIBUV=$(usex libuv ON OFF)
+ -DLWS_WITH_SSL=$(usex ssl ON OFF)
+ -DLWS_WITHOUT_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITHOUT_TEST_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITH_CGI=$(usex cgi ON OFF)
+ -DLWS_WITH_HTTP_PROXY=$(usex http-proxy ON OFF)
+ -DLWS_WITH_ACCESS_LOG=$(usex access-log ON OFF)
+ -DLWS_WITH_SERVER_STATUS=$(usex server-status ON OFF)
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+ -DLWS_WITH_LEJP=$(usex lejp ON OFF)
+ -DLWS_WITH_GENERIC_SESSIONS=$(usex generic-sessions ON OFF)
+ -DLWS_WITH_SQLITE3=$(usex sqlite3 ON OFF)
+ -DLWS_WITH_SMTP=$(usex smtp ON OFF)
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/net-libs/libwebsockets/metadata.xml b/net-libs/libwebsockets/metadata.xml
new file mode 100644
index 000000000000..353ac742f140
--- /dev/null
+++ b/net-libs/libwebsockets/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jaco@uls.co.za</email>
+ <name>Jaco Kroon</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>yuchen.xie@live.com</email>
+ <name>Yuchen Xie</name>
+ </maintainer>
+ <maintainer type="project">
+ <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>
+ <flag name="client">The client part of the library and libwebsockets-test-client</flag>
+ <flag name="generic-sessions">With the Generic Sessions plugin</flag>
+ <flag name="http2">Support the HTTP/2 protocol</flag>
+ <flag name="http-proxy">Support for rewriting HTTP proxying</flag>
+ <flag name="lejp">With the Lightweight JSON Parser</flag>
+ <flag name="libev">Support event loops via dev-libs/libev</flag>
+ <flag name="libuv">Support asynchronous I/O via dev-libs/libuv</flag>
+ <flag name="server-status">Support json + jscript server monitoring</flag>
+ <flag name="smtp">Provide SMTP support</flag>
+ <flag name="sqlite3">Require SQLITE3 support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">warmcat/libwebsockets</remote-id>
+ </upstream>
+</pkgmetadata>