- Fix stage and fix netstat invocation in launch.sh.

PR:		ports/222176
Submitted by:	John Hein <z7dr6ut7gs@snkmail.com>
This commit is contained in:
Marcelo Araujo 2017-09-22 04:56:37 +00:00
parent 04be785c4e
commit f0d6b930db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=450315
2 changed files with 13 additions and 1 deletions

View file

@ -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}

View file

@ -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