aboutsummaryrefslogtreecommitdiffstats
path: root/community/gns3-server/APKBUILD
blob: 63fc9f1039703490f0c5836941adbe832081a61c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-server
pkgver=1.5.2
pkgrel=0
pkgdesc="GNS3 network simulator. Server package."
url="https://github.com/GNS3/gns3-server"
arch="all"
license="GPL3"
depends="dynamips python3 py3-psutil py3-jinja2 py3-aiohttp py3-pytest
	py3-netifaces py3-ws4py py3-zipstream py3-raven py3-jsonschema"
depends_dev=""
makedepends="$depends_dev py-setuptools python3-dev linux-headers py3-pytest"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/$pkgname/archive/v$pkgver.tar.gz
	support-newer-aiohttp-version.patch"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	python3 setup.py build || return 1
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
gns3-server has several optional packages that must be installed manually for additional functionality:

  apk add qemu
  apk add wiresark
  apk add ubridge
  apk add cpulimit
  apk add iouyap 
  apk add vpcs

EOF

}

md5sums="6205f36dc2d79db21756a9e6df61390e  gns3-server-1.5.2.tar.gz
725caa756b2a83f49151d52d1521d534  support-newer-aiohttp-version.patch"
sha256sums="8e6fa52fd9cccccb82af51651a2816b959687bcea5cd41dd6b2ae793f5dd7fed  gns3-server-1.5.2.tar.gz
1da4b7c0758095b67761da0b67c3bc3e82abacfe506e5ccb11f8f0ec3e673b8b  support-newer-aiohttp-version.patch"
sha512sums="4a8beb69b2cbd6771a68d9e2877099e2103f2ca8140806ad06ba1ad7dbac6f02fca71b660871dd5af5940ecf02f0809127a1f0ff44845962aec4b0c57f1dd329  gns3-server-1.5.2.tar.gz
b6212749460747cf83e189dbdd480e167c70f4f1fbe2df0b419f5503eb375fd0fbdea4467f8fd5e9faa9b42dee1e32b8c13302bd5c66513dca8f6199459a3cdb  support-newer-aiohttp-version.patch"