Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2017 04:56:37 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r450315 - in head/www/novnc: . files
Message-ID:  <201709220456.v8M4ub1p039452@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Fri Sep 22 04:56:37 2017
New Revision: 450315
URL: https://svnweb.freebsd.org/changeset/ports/450315

Log:
  - Fix stage and fix netstat invocation in launch.sh.
  
  PR:		ports/222176
  Submitted by:	John Hein <z7dr6ut7gs@snkmail.com>

Added:
  head/www/novnc/files/
  head/www/novnc/files/patch-utils_launch.sh   (contents, props changed)
Modified:
  head/www/novnc/Makefile

Modified: head/www/novnc/Makefile
==============================================================================
--- head/www/novnc/Makefile	Fri Sep 22 00:51:01 2017	(r450314)
+++ head/www/novnc/Makefile	Fri Sep 22 04:56:37 2017	(r450315)
@@ -2,6 +2,7 @@
 
 PORTNAME=	novnc
 PORTVERSION=	0.6.2
+PORTREVISION=	1
 CATEGORIES=	www
 
 MAINTAINER=	araujo@FreeBSD.org
@@ -20,7 +21,7 @@ NO_ARCH=	yes
 TARGET_DIR=	${PREFIX}/libexec/novnc
 
 do-install:
-	${MKDIR} ${TARGET_DIR}
+	${MKDIR} ${STAGEDIR}${TARGET_DIR}
 	cd ${WRKSRC} && ${RM} .gitignore .gitmodules .travis.yml
 	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${TARGET_DIR}
 	

Added: head/www/novnc/files/patch-utils_launch.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/novnc/files/patch-utils_launch.sh	Fri Sep 22 04:56:37 2017	(r450315)
@@ -0,0 +1,11 @@
+--- utils/launch.sh.orig	2017-01-12 19:36:42 UTC
++++ utils/launch.sh
+@@ -69,7 +69,7 @@ done
+ which netstat >/dev/null 2>&1 \
+     || die "Must have netstat installed"
+ 
+-netstat -ltn | grep -qs "${PORT} .*LISTEN" \
++netstat -a -p tcp -n | grep -qs "${PORT} .*LISTEN" \
+     && die "Port ${PORT} in use. Try --listen PORT"
+ 
+ trap "cleanup" TERM QUIT INT EXIT



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709220456.v8M4ub1p039452>