diff options
Diffstat (limited to 'net-misc/gns3-server')
-rw-r--r-- | net-misc/gns3-server/Manifest | 1 | ||||
-rw-r--r-- | net-misc/gns3-server/gns3-server-2.2.31.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/net-misc/gns3-server/Manifest b/net-misc/gns3-server/Manifest index 059be6103840..25a29c87f0b1 100644 --- a/net-misc/gns3-server/Manifest +++ b/net-misc/gns3-server/Manifest @@ -1,2 +1,3 @@ DIST gns3-server-2.2.28.tar.gz 10240577 BLAKE2B 760f4f534ef6c4c94a62bb89a19fa2f300ac3f613b69eb6b6d3cfd5d08a13673f8133a7fb4e66e4fd3cf79b8c2988157038855d523af444a434865f40a8a0e38 SHA512 d75a510050dcb9bdf9f6bb2336c797768c6f6451a49a87143e977a2ba1a39f5a062702bbd0fd2cd750fdc24092a3d4e3defa3d4a2411e7b6a0df3e284c6fd512 DIST gns3-server-2.2.29.tar.gz 10241179 BLAKE2B ae9df1414d679c49f3b0da84f6b07789a0343ee74cf1c744c7b8dc55ab5395a92cc223cddc0d04516f315d5483d4cc3260c0f815c81992a12127fc6694fbaa2a SHA512 1e5eaeb127efddd6f21e167de4b56a2713c8a4dbc470e2595f807d8283f4b9208564f910dc3ac4602049ee4b1267eaffb9c5787b2d556c4d27176d153c67fc05 +DIST gns3-server-2.2.31.tar.gz 10245461 BLAKE2B 488a91305408704accd4c7df936dde13e9a64404ac6a7e4ed7bdb94f996bb1bbd418d38523318603a8e93a7095c9fb8e30795c6b0dece70a45ed4758569b6711 SHA512 e8bf9357bc5a69e38dc27bc649af88c6ed39e6b5c63e2a1d374ec2a0784c7a6eadae3de0f4300a268fbf91ab55ad342e476573ca9a4bac609158d7d371a7a834 diff --git a/net-misc/gns3-server/gns3-server-2.2.31.ebuild b/net-misc/gns3-server/gns3-server-2.2.31.ebuild new file mode 100644 index 000000000000..8b5af5922125 --- /dev/null +++ b/net-misc/gns3-server/gns3-server-2.2.31.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 optfeature systemd + +DESCRIPTION="GNS3 server to asynchronously manage emulators" +HOMEPAGE="https://www.gns3.com/ https://github.com/GNS3/gns3-server" +SRC_URI="https://github.com/GNS3/gns3-server/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + app-emulation/dynamips + >=dev-python/aiofiles-0.7.0[${PYTHON_USEDEP}] + >=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}] + >=dev-python/aiohttp-cors-0.7.0[${PYTHON_USEDEP}] + >=dev-python/async_timeout-3.0.1[${PYTHON_USEDEP}] + >=dev-python/distro-1.6.0[${PYTHON_USEDEP}] + >=dev-python/jinja-3.0.3[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] + >=dev-python/psutil-5.9.0[${PYTHON_USEDEP}] + >=dev-python/py-cpuinfo-8.0.0[${PYTHON_USEDEP}] + >=dev-python/sentry-sdk-1.5.4[${PYTHON_USEDEP}] + net-misc/ubridge + sys-apps/busybox +" +BDEPEND=" + test? ( + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + default + + # newer python packages are fine + sed -i -e 's/[<>=].*//' requirements.txt || die + + # Remove Pre-built busybox binary + rm gns3server/compute/docker/resources/bin/busybox || die +} + +python_install() { + distutils-r1_python_install + + systemd_dounit init/gns3.service.systemd + + mkdir -p "${D}$(python_get_sitedir)/gns3server/compute/docker/resources/bin" || die + ln -s /bin/busybox "${D}$(python_get_sitedir)/gns3server/compute/docker/resources/bin/busybox" || die +} + +pkg_postinst() { + elog "net-misc/gns3-server has several optional packages that must be merged manually for additional functionality." + elog "" + optfeature "QEMU Support" "app-emulation/qemu" + optfeature "Virtualbox Support" "app-emulation/virtualbox" + optfeature "Docker Support" "app-containers/docker" + optfeature "Wireshark Support" "net-analyzer/wireshark" + elog "" + elog "The following packages are currently unsupported:" + elog "iouyap and vpcs" +} |