1 |
commit: c3ac06892162d7c2a2fd43910dcf7a34abf337cb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 8 08:34:57 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 8 08:47:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ac0689 |
7 |
|
8 |
net-misc/gns3-server: Remove py3.8 due to sentry-sdk losing it |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
net-misc/gns3-server/gns3-server-2.2.31-r1.ebuild | 71 +++++++++++++++++++++++ |
13 |
1 file changed, 71 insertions(+) |
14 |
|
15 |
diff --git a/net-misc/gns3-server/gns3-server-2.2.31-r1.ebuild b/net-misc/gns3-server/gns3-server-2.2.31-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..f27244c73657 |
18 |
--- /dev/null |
19 |
+++ b/net-misc/gns3-server/gns3-server-2.2.31-r1.ebuild |
20 |
@@ -0,0 +1,71 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{9..10} ) |
27 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
28 |
+ |
29 |
+inherit distutils-r1 optfeature systemd |
30 |
+ |
31 |
+DESCRIPTION="GNS3 server to asynchronously manage emulators" |
32 |
+HOMEPAGE="https://www.gns3.com/ https://github.com/GNS3/gns3-server" |
33 |
+SRC_URI="https://github.com/GNS3/gns3-server/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-3+" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ app-emulation/dynamips |
41 |
+ >=dev-python/aiofiles-0.7.0[${PYTHON_USEDEP}] |
42 |
+ >=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}] |
43 |
+ >=dev-python/aiohttp-cors-0.7.0[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/async_timeout-3.0.1[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/distro-1.6.0[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/jinja-3.0.3[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/psutil-5.9.0[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/py-cpuinfo-8.0.0[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/sentry-sdk-1.5.4[${PYTHON_USEDEP}] |
51 |
+ net-misc/ubridge |
52 |
+ sys-apps/busybox |
53 |
+" |
54 |
+BDEPEND=" |
55 |
+ test? ( |
56 |
+ dev-python/pytest-aiohttp[${PYTHON_USEDEP}] |
57 |
+ ) |
58 |
+" |
59 |
+ |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ # newer python packages are fine |
66 |
+ sed -i -e 's/[<>=].*//' requirements.txt || die |
67 |
+ |
68 |
+ # Remove Pre-built busybox binary |
69 |
+ rm gns3server/compute/docker/resources/bin/busybox || die |
70 |
+} |
71 |
+ |
72 |
+python_install() { |
73 |
+ distutils-r1_python_install |
74 |
+ |
75 |
+ systemd_dounit init/gns3.service.systemd |
76 |
+ |
77 |
+ mkdir -p "${D}$(python_get_sitedir)/gns3server/compute/docker/resources/bin" || die |
78 |
+ ln -s /bin/busybox "${D}$(python_get_sitedir)/gns3server/compute/docker/resources/bin/busybox" || die |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ elog "net-misc/gns3-server has several optional packages that must be merged manually for additional functionality." |
83 |
+ elog "" |
84 |
+ optfeature "QEMU Support" "app-emulation/qemu" |
85 |
+ optfeature "Virtualbox Support" "app-emulation/virtualbox" |
86 |
+ optfeature "Docker Support" "app-containers/docker" |
87 |
+ optfeature "Wireshark Support" "net-analyzer/wireshark" |
88 |
+ elog "" |
89 |
+ elog "The following packages are currently unsupported:" |
90 |
+ elog "iouyap and vpcs" |
91 |
+} |