Index: head/net/libvncserver/Makefile =================================================================== --- head/net/libvncserver/Makefile (revision 445053) +++ head/net/libvncserver/Makefile (revision 445054) @@ -1,57 +1,58 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= libvncserver PORTVERSION= 0.9.11 +PORTREVISION= 1 DISTVERSIONPREFIX= LibVNCServer- CATEGORIES= net devel MAINTAINER= araujo@FreeBSD.org COMMENT= Provide an easy API to a custom vnc server LICENSE= GPLv2 LIB_DEPENDS= libpng.so:graphics/png USE_GITHUB= yes GH_ACCOUNT= LibVNC USES= autoreconf jpeg libtool pathfix pkgconfig USE_LDCONFIG= yes GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip OPTIONS_DEFINE= GCRYPT IPV6 VAAPI OPTIONS_SINGLE= SSL OPTIONS_SINGLE_SSL= GNUTLS OPENSSL OPTIONS_DEFAULT= OPENSSL GCRYPT_DESC= libgcrypt support GNUTLS_IMPLIES= GCRYPT GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls GNUTLS_CONFIGURE_WITH= gnutls OPENSSL_CONFIGURE_WITH= crypto ssl OPENSSL_USES= ssl GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt \ libgpg-error.so:security/libgpg-error GCRYPT_CONFIGURE_WITH= gcrypt IPV6_CONFIGURE_WITH= ipv6 VAAPI_LIB_DEPENDS= libva.so:multimedia/libva VAAPI_CONFIGURE_WITH= libva post-install: ${INSTALL_DATA} ${WRKSRC}/rfb/default8x16.h ${STAGEDIR}${PREFIX}/include/rfb .include .if ${PORT_OPTIONS:MOPENSSL} && ${SSL_DEFAULT:Mopenssl-devel} BROKEN= Does not build with openssl-devel .endif .include Index: head/net/libvncserver/files/patch-common_md5.c =================================================================== --- head/net/libvncserver/files/patch-common_md5.c (nonexistent) +++ head/net/libvncserver/files/patch-common_md5.c (revision 445054) @@ -0,0 +1,11 @@ +--- common/md5.c.orig 2017-07-05 07:48:23 UTC ++++ common/md5.c +@@ -29,7 +29,7 @@ + #include "md5.h" + + /* #ifdef _LIBC */ +-# include ++# include + # if __BYTE_ORDER == __BIG_ENDIAN + # define WORDS_BIGENDIAN 1 + # endif Property changes on: head/net/libvncserver/files/patch-common_md5.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/libvncserver/files/patch-common_md5.h =================================================================== --- head/net/libvncserver/files/patch-common_md5.h (nonexistent) +++ head/net/libvncserver/files/patch-common_md5.h (revision 445054) @@ -0,0 +1,59 @@ +--- common/md5.h.orig 2017-07-05 07:48:49 UTC ++++ common/md5.h +@@ -98,21 +98,21 @@ struct md5_ctx + + /* Initialize structure containing state of computation. + (RFC 1321, 3.3: Step 3) */ +-extern void __md5_init_ctx (struct md5_ctx *ctx) __THROW; ++extern void __md5_init_ctx (struct md5_ctx *ctx) ; + + /* Starting with the result of former calls of this function (or the + initialization function update the context for the next LEN bytes + starting at BUFFER. + It is necessary that LEN is a multiple of 64!!! */ + extern void __md5_process_block (const void *buffer, size_t len, +- struct md5_ctx *ctx) __THROW; ++ struct md5_ctx *ctx) ; + + /* Starting with the result of former calls of this function (or the + initialization function update the context for the next LEN bytes + starting at BUFFER. + It is NOT required that LEN is a multiple of 64. */ + extern void __md5_process_bytes (const void *buffer, size_t len, +- struct md5_ctx *ctx) __THROW; ++ struct md5_ctx *ctx) ; + + /* Process the remaining bytes in the buffer and put result from CTX + in first 16 bytes following RESBUF. The result is always in little +@@ -121,7 +121,7 @@ extern void __md5_process_bytes (const void *buffer, s + + IMPORTANT: On some systems it is required that RESBUF is correctly + aligned for a 32 bits value. */ +-extern void *__md5_finish_ctx (struct md5_ctx *ctx, void *resbuf) __THROW; ++extern void *__md5_finish_ctx (struct md5_ctx *ctx, void *resbuf) ; + + + /* Put result from CTX in first 16 bytes following RESBUF. The result is +@@ -130,19 +130,19 @@ extern void *__md5_finish_ctx (struct md5_ctx *ctx, vo + + IMPORTANT: On some systems it is required that RESBUF is correctly + aligned for a 32 bits value. */ +-extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) __THROW; ++extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) ; + + + /* Compute MD5 message digest for bytes read from STREAM. The + resulting message digest number will be written into the 16 bytes + beginning at RESBLOCK. */ +-extern int __md5_stream (FILE *stream, void *resblock) __THROW; ++extern int __md5_stream (FILE *stream, void *resblock) ; + + /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The + result is always in little endian byte order, so that a byte-wise + output yields to the wanted ASCII representation of the message + digest. */ + extern void *__md5_buffer (const char *buffer, size_t len, +- void *resblock) __THROW; ++ void *resblock) ; + + #endif /* md5.h */ Property changes on: head/net/libvncserver/files/patch-common_md5.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/libvncserver/files/patch-common_vncauth.c =================================================================== --- head/net/libvncserver/files/patch-common_vncauth.c (nonexistent) +++ head/net/libvncserver/files/patch-common_vncauth.c (revision 445054) @@ -0,0 +1,22 @@ +--- common/vncauth.c.orig 2017-07-05 07:43:58 UTC ++++ common/vncauth.c +@@ -42,6 +42,10 @@ + #include + #endif + ++#ifdef __FreeBSD__ ++#include ++#endif ++ + #include + + #ifdef WIN32 +@@ -196,6 +200,8 @@ rfbEncryptBytes(unsigned char *bytes, char *passwd) + rfbDes(bytes+i, bytes+i); + } + } ++ ++void rfbEncryptBytes2(unsigned char *, const int, unsigned char *); + + void + rfbEncryptBytes2(unsigned char *where, const int length, unsigned char *key) { Property changes on: head/net/libvncserver/files/patch-common_vncauth.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/libvncserver/files/patch-rfb_rfb.h =================================================================== --- head/net/libvncserver/files/patch-rfb_rfb.h (nonexistent) +++ head/net/libvncserver/files/patch-rfb_rfb.h (revision 445054) @@ -0,0 +1,20 @@ +--- rfb/rfb.h.orig 2017-07-05 07:45:47 UTC ++++ rfb/rfb.h +@@ -43,7 +43,7 @@ extern "C" + #include + #include + +-#if defined(ANDROID) || defined(LIBVNCSERVER_HAVE_ANDROID) ++#if defined(ANDROID) || defined(LIBVNCSERVER_HAVE_ANDROID) || defined(__FreeBSD__) + #include + #include + #endif +@@ -265,6 +265,8 @@ typedef struct _rfbScreenInfo + rfbBool autoPort; + int port; + SOCKET listenSock; ++ SOCKET unixSock; ++ const char *unixSockPath; + int maxSock; + int maxFd; + #ifdef WIN32 Property changes on: head/net/libvncserver/files/patch-rfb_rfb.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property