pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/gns3-server gns3-server: fix install for pyt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e9f10ff75eb0
branches:  trunk
changeset: 345835:e9f10ff75eb0
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Dec 19 21:19:43 2019 +0000

description:
gns3-server: fix install for python != 3.7.
Also fix permissions of installed files

diffstat:

 emulators/gns3-server/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 84e794617e30 -r e9f10ff75eb0 emulators/gns3-server/Makefile
--- a/emulators/gns3-server/Makefile    Thu Dec 19 21:15:39 2019 +0000
+++ b/emulators/gns3-server/Makefile    Thu Dec 19 21:19:43 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2019/11/03 01:31:38 markd Exp $
+# $NetBSD: Makefile,v 1.2 2019/12/19 21:19:43 markd Exp $
 
 DISTNAME=      gns3-server-2.2.1
 CATEGORIES=    emulators
@@ -23,8 +23,8 @@
 DEPENDS+=      ${PYPKGPREFIX}-async-timeout>=3.0.1:../../devel/py-async-timeout
 DEPENDS+=      ${PYPKGPREFIX}-zipstream>=1.1.4:../../archivers/py-zipstream
 
-CHECK_INTERPRETER_SKIP+=       lib/python3.7/site-packages/gns3server/compute/docker/resources/init.sh
-CHECK_INTERPRETER_SKIP+=       lib/python3.7/site-packages/gns3server/compute/docker/resources/etc/udhcpc/default.script
+CHECK_INTERPRETER_SKIP+=       ${PYSITELIB}/gns3server/compute/docker/resources/init.sh
+CHECK_INTERPRETER_SKIP+=       ${PYSITELIB}/gns3server/compute/docker/resources/etc/udhcpc/default.script
 
 # we have newer jsonschema and it seems fine
 SUBST_CLASSES+=                inst
@@ -32,6 +32,11 @@
 SUBST_FILES.inst=      requirements.txt
 SUBST_SED.inst=                -e "s:jsonschema==2.6.0:jsonschema:"
 
+post-install:
+       chmod go-w ${DESTDIR}${PREFIX}/${PYSITELIB}/gns3server/compute/docker/resources/init.sh
+       chmod go-w ${DESTDIR}${PREFIX}/${PYSITELIB}/gns3server/compute/docker/resources/etc/udhcpc/default.script
+       chmod go-w ${DESTDIR}${PREFIX}/${PYSITELIB}/gns3server/compute/docker/resources/bin/busybox
+
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
 



Home | Main Index | Thread Index | Old Index