diff --git a/net/x11vnc/Makefile b/net/x11vnc/Makefile index 1067d3b9349d..92606363ca6c 100644 --- a/net/x11vnc/Makefile +++ b/net/x11vnc/Makefile @@ -1,41 +1,41 @@ PORTNAME= x11vnc PORTVERSION= 0.9.16 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= net MAINTAINER= dinoex@FreeBSD.org COMMENT= VNC server for use with real X displays WWW= https://github.com/LibVNC/x11vnc LICENSE= GPLv2 LIB_DEPENDS= libvncserver.so:net/libvncserver USES= cpe iconv pkgconfig jpeg ssl gmake autoreconf xorg USE_XORG= x11 xcb xdamage xfixes xrandr xinerama xext xtst xau xrender \ xdmcp xi xorgproto # Sets LDFLAGS and adds to CONFIGURE_ENV, therefore we set LDFLAGS LDFLAGS+= -L${LOCALBASE}/lib GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} CPPFLAGS+= -I${LOCALBASE}/include USE_GITHUB= yes GH_ACCOUNT= LibVNC CPE_VENDOR= x11vnc_project PORTDOCS= AUTHORS ChangeLog NEWS README OPTIONS_DEFINE= NLS AVAHI DOCS OPTIONS_DEFAULT=AVAHI NO_OPTIONS_SORT=yes NLS_USES= gettext AVAHI_LIB_DEPENDS= libavahi-common.so:net/avahi-app AVAHI_CONFIGURE_OFF= --without-avahi post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ .include diff --git a/net/x11vnc/files/patch-src_scan.c b/net/x11vnc/files/patch-src_scan.c new file mode 100644 index 000000000000..8c711d1c2c2c --- /dev/null +++ b/net/x11vnc/files/patch-src_scan.c @@ -0,0 +1,11 @@ +--- src/scan.c.orig 2019-01-05 13:22:11 UTC ++++ src/scan.c +@@ -320,7 +320,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **x + + #if HAVE_XSHM + shm->shmid = shmget(IPC_PRIVATE, +- xim->bytes_per_line * xim->height, IPC_CREAT | 0777); ++ xim->bytes_per_line * xim->height, IPC_CREAT | 0600); + + if (shm->shmid == -1) { + rfbErr("shmget(%s) failed.\n", name);