28 lines
1.3 KiB
Bash
28 lines
1.3 KiB
Bash
# Template file for 'gns3-server'
|
|
pkgname=gns3-server
|
|
version=2.2.44.1
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
makedepends="busybox-static" # Pulls distro busybox static to embed
|
|
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
|
|
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles python3-platformdirs
|
|
python3-py-cpuinfo python3-distro python3-async-timeout dynamips ubridge"
|
|
checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp"
|
|
short_desc="Graphical Network Simulator 3 - Server"
|
|
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://gns3.com"
|
|
changelog="https://raw.githubusercontent.com/GNS3/gns3-server/master/CHANGELOG"
|
|
distfiles="https://github.com/GNS3/gns3-server/archive/v${version}.tar.gz"
|
|
checksum=96a85d73db795282b3b732e1b6a5f592145c4a1cf93fa23f966dbe34d5d91a67
|
|
|
|
post_patch() {
|
|
# comment out requirements since versions are usually out of sync with Void packages
|
|
vsed -e 's|^|#|' -i requirements.txt
|
|
# pre-populate docker resource directory with static busybox binary
|
|
if [ "$CROSS_BUILD" ]; then
|
|
cp ${XBPS_CROSS_BASE}/bin/busybox.static gns3server/compute/docker/resources/bin/busybox
|
|
fi
|
|
}
|