40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Template file for 'gns3-server'
|
|
pkgname=gns3-server
|
|
version=2.2.18
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-setuptools python3-jsonschema python3-aiohttp-cors python3-yarl
|
|
python3-Jinja2 python3-sentry python3-psutil python3-aiofiles
|
|
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
|
|
checkdepends="${depends}"
|
|
short_desc="Graphical Network Simulator 3 - Server"
|
|
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://gns3.com"
|
|
distfiles="https://github.com/GNS3/gns3-server/archive/v${version}.tar.gz"
|
|
checksum=@e8e24139964c6a87a9c133994ca13e8fa2c1c7d1cbc23bfdda0a488f5d203947
|
|
make_check=no
|
|
|
|
post_patch() {
|
|
# relax requirements
|
|
vsed -e 's|aiofiles.*|aiofiles>=0.4.0|' \
|
|
-e 's|aiohttp-cors.*|aiohttp-cors>=0.7.0|' \
|
|
-e 's|aiohttp=.*|aiohttp>=3.6.2|' \
|
|
-e 's|jsonschema.*|jsonschema>=2.6.0|' \
|
|
-e 's|psutil.*|psutil>=5.6.7|' \
|
|
-e 's|py-cpuinfo.*|py-cpuinfo>=5.0.0|' -i requirements.txt
|
|
}
|
|
post_install() {
|
|
# remove tests directory polluting site-packages
|
|
rm -rf -- ${DESTDIR}/usr/lib/python*/site-packages/tests
|
|
}
|
|
|
|
# The source archive contains statically linked artifacts for x86_64
|
|
# glibc, since this is the only architecture supported by upstream, we
|
|
# mirror that requirement here. The artifacts in questions are the C
|
|
# modules that are used to drive additional virtualization backends
|
|
# for gns3. For more information, see this ticket:
|
|
# https://github.com/GNS3/gns3-server/issues/970
|
|
archs="x86_64"
|