Bug 211189 - [NEW PORT] net/libwebsockets: C library for lightweight websocket clients and servers
Summary: [NEW PORT] net/libwebsockets: C library for lightweight websocket clients and...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords: feature, needs-qa, patch
Depends on:
Blocks: 211190
  Show dependency treegraph
 
Reported: 2016-07-18 09:06 UTC by Iblis Lin
Modified: 2016-07-20 09:05 UTC (History)
3 users (show)

See Also:


Attachments
libwebsockets shar (4.30 KB, text/plain)
2016-07-18 09:06 UTC, Iblis Lin
no flags Details
libwebsockets shar v2 (4.28 KB, text/plain)
2016-07-18 10:29 UTC, Iblis Lin
no flags Details
libwebsockets shar v3 (4.33 KB, application/x-shar)
2016-07-20 01:40 UTC, Iblis Lin
no flags Details
libwebsockets shar v4 (4.34 KB, text/plain)
2016-07-20 04:14 UTC, Iblis Lin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iblis Lin 2016-07-18 09:06:58 UTC
Created attachment 172633 [details]
libwebsockets shar

Libwebsockets is a lightweight pure C library built to use minimal CPU and
memory resources, and provide fast throughput in both directions as client
or server.

WWW: https://libwebsockets.org/
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2016-07-18 10:21:18 UTC
Needs review:

MAINTAINER must be an email address
GH_PROJECT defaults to PORTNAME, can remove
Comment 2 Iblis Lin 2016-07-18 10:29:19 UTC
Created attachment 172638 [details]
libwebsockets shar v2

Ha, ok. I fixed it.
Comment 3 Olli Hauer freebsd_committer freebsd_triage 2016-07-19 20:01:30 UTC
Hm, If I try to build the port with 
HTTP2=off:
HTTP_PROXY=off:
IPV6=on:
LIBEV=off:
LIBUV=off:
UNIX_SOCK=off:
WEBSERVER=on:

I get the following error:
...
-- Looking for openssl/ecdh.h
-- Looking for openssl/ecdh.h - found
libuv include dir: LIBUV_INCLUDE_DIRS-NOTFOUND
libuv libraries: LIBUV_LIBRARIES-NOTFOUND
-- Looking for SSL_CTX_set1_param
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUV_LIBRARIES
...
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUV_INCLUDE_DIRS
   used as include directory in directory /usr/ports/net/libwebsockets/work/libwebsockets-2.0.2
...
LIBUV_LIBRARIES
    linked by target "websockets" in directory /usr/ports/net/libwebsockets/work/libwebsockets-2.0.2
    linked by target "websockets_shared" in directory /usr/ports/net/libwebsockets/work/libwebsockets-2.0.2
Comment 4 Iblis Lin 2016-07-20 01:40:28 UTC
Created attachment 172740 [details]
libwebsockets shar v3

- Added libuv as webserver dependency.

```
+ WEBSERVER_LIB_DEPENDS= libuv.so:devel/libuv
```

(I'm also curious about is there any parameter make poudriere build all the combination of options?
Comment 5 Vanilla I. Shu freebsd_committer freebsd_triage 2016-07-20 01:45:07 UTC
(In reply to Iblis Lin from comment #4)

Maybe you can use 'poudriere testport -c' to handle config options,

it will run 'make config' before test.
Comment 6 Iblis Lin 2016-07-20 03:07:36 UTC
(In reply to Vanilla I. Shu from comment #5)
(Y) tnx!
Comment 7 Iblis Lin 2016-07-20 04:14:45 UTC
Created attachment 172742 [details]
libwebsockets shar v4

I miss the `pkgconfig`

```
-USES=  cmake ssl
+USES=  cmake pkgconfig ssl
```
Comment 8 Kubilay Kocak freebsd_committer freebsd_triage 2016-07-20 08:40:18 UTC
bug 211190 is referenced in Blocks already, remove from See Also
Comment 9 commit-hook freebsd_committer freebsd_triage 2016-07-20 09:05:36 UTC
A commit references this bug:

Author: vanilla
Date: Wed Jul 20 09:04:51 UTC 2016
New revision: 418827
URL: https://svnweb.freebsd.org/changeset/ports/418827

Log:
  Add libwebsockets 2.0.2, c library for lightweight websocket clients and
  servers.

  PR:		211189
  Submitted by:	Iblis Lin <iblis@hs.ntnu.edu.tw>

Changes:
  head/net/Makefile
  head/net/libwebsockets/
  head/net/libwebsockets/Makefile
  head/net/libwebsockets/distinfo
  head/net/libwebsockets/files/
  head/net/libwebsockets/files/patch-CMakeLists.txt
  head/net/libwebsockets/pkg-descr
  head/net/libwebsockets/pkg-plist