| @@ -1,38 +1,43 @@ | | | @@ -1,38 +1,43 @@ |
1 | # $NetBSD: Makefile,v 1.1 2019/11/03 01:31:38 markd Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2019/12/19 21:19:43 markd Exp $ |
2 | | | 2 | |
3 | DISTNAME= gns3-server-2.2.1 | | 3 | DISTNAME= gns3-server-2.2.1 |
4 | CATEGORIES= emulators | | 4 | CATEGORIES= emulators |
5 | MASTER_SITES= ${MASTER_SITE_PYPI:=g/gns3-server/} | | 5 | MASTER_SITES= ${MASTER_SITE_PYPI:=g/gns3-server/} |
6 | | | 6 | |
7 | MAINTAINER= markd@NetBSD.org | | 7 | MAINTAINER= markd@NetBSD.org |
8 | HOMEPAGE= https://github.com/GNS3/gns3-server | | 8 | HOMEPAGE= https://github.com/GNS3/gns3-server |
9 | COMMENT= GNS3 network simulator - Server package | | 9 | COMMENT= GNS3 network simulator - Server package |
10 | LICENSE= gnu-gpl-v3 | | 10 | LICENSE= gnu-gpl-v3 |
11 | | | 11 | |
12 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 12 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
13 | | | 13 | |
14 | DEPENDS+= ${PYPKGPREFIX}-aiohttp>=2.2.0:../../www/py-aiohttp | | 14 | DEPENDS+= ${PYPKGPREFIX}-aiohttp>=2.2.0:../../www/py-aiohttp |
15 | DEPENDS+= ${PYPKGPREFIX}-aiohttp-cors>=0.7.0:../../www/py-aiohttp-cors | | 15 | DEPENDS+= ${PYPKGPREFIX}-aiohttp-cors>=0.7.0:../../www/py-aiohttp-cors |
16 | DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.4.0:../../devel/py-aiofiles | | 16 | DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.4.0:../../devel/py-aiofiles |
17 | DEPENDS+= ${PYPKGPREFIX}-async_generator>=1.10:../../devel/py-async_generator | | 17 | DEPENDS+= ${PYPKGPREFIX}-async_generator>=1.10:../../devel/py-async_generator |
18 | DEPENDS+= ${PYPKGPREFIX}-distro>=1.3.0:../../devel/py-distro | | 18 | DEPENDS+= ${PYPKGPREFIX}-distro>=1.3.0:../../devel/py-distro |
19 | DEPENDS+= ${PYPKGPREFIX}-jsonschema>=2.6.0:../../textproc/py-jsonschema | | 19 | DEPENDS+= ${PYPKGPREFIX}-jsonschema>=2.6.0:../../textproc/py-jsonschema |
20 | DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.7.3:../../textproc/py-jinja2 | | 20 | DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.7.3:../../textproc/py-jinja2 |
21 | DEPENDS+= ${PYPKGPREFIX}-raven>=5.23.0:../../www/py-raven | | 21 | DEPENDS+= ${PYPKGPREFIX}-raven>=5.23.0:../../www/py-raven |
22 | DEPENDS+= ${PYPKGPREFIX}-psutil>=3.0.0:../../sysutils/py-psutil | | 22 | DEPENDS+= ${PYPKGPREFIX}-psutil>=3.0.0:../../sysutils/py-psutil |
23 | DEPENDS+= ${PYPKGPREFIX}-async-timeout>=3.0.1:../../devel/py-async-timeout | | 23 | DEPENDS+= ${PYPKGPREFIX}-async-timeout>=3.0.1:../../devel/py-async-timeout |
24 | DEPENDS+= ${PYPKGPREFIX}-zipstream>=1.1.4:../../archivers/py-zipstream | | 24 | DEPENDS+= ${PYPKGPREFIX}-zipstream>=1.1.4:../../archivers/py-zipstream |
25 | | | 25 | |
26 | CHECK_INTERPRETER_SKIP+= lib/python3.7/site-packages/gns3server/compute/docker/resources/init.sh | | 26 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/gns3server/compute/docker/resources/init.sh |
27 | CHECK_INTERPRETER_SKIP+= lib/python3.7/site-packages/gns3server/compute/docker/resources/etc/udhcpc/default.script | | 27 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/gns3server/compute/docker/resources/etc/udhcpc/default.script |
28 | | | 28 | |
29 | # we have newer jsonschema and it seems fine | | 29 | # we have newer jsonschema and it seems fine |
30 | SUBST_CLASSES+= inst | | 30 | SUBST_CLASSES+= inst |
31 | SUBST_STAGE.inst= pre-configure | | 31 | SUBST_STAGE.inst= pre-configure |
32 | SUBST_FILES.inst= requirements.txt | | 32 | SUBST_FILES.inst= requirements.txt |
33 | SUBST_SED.inst= -e "s:jsonschema==2.6.0:jsonschema:" | | 33 | SUBST_SED.inst= -e "s:jsonschema==2.6.0:jsonschema:" |
34 | | | 34 | |
| | | 35 | post-install: |
| | | 36 | chmod go-w ${DESTDIR}${PREFIX}/${PYSITELIB}/gns3server/compute/docker/resources/init.sh |
| | | 37 | chmod go-w ${DESTDIR}${PREFIX}/${PYSITELIB}/gns3server/compute/docker/resources/etc/udhcpc/default.script |
| | | 38 | chmod go-w ${DESTDIR}${PREFIX}/${PYSITELIB}/gns3server/compute/docker/resources/bin/busybox |
| | | 39 | |
35 | .include "../../lang/python/application.mk" | | 40 | .include "../../lang/python/application.mk" |
36 | .include "../../lang/python/egg.mk" | | 41 | .include "../../lang/python/egg.mk" |
37 | | | 42 | |
38 | .include "../../mk/bsd.pkg.mk" | | 43 | .include "../../mk/bsd.pkg.mk" |