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/484f6f37d5f4
branches:  trunk
changeset: 406341:484f6f37d5f4
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 d82e0751731a -r 484f6f37d5f4 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