aboutsummaryrefslogtreecommitdiffstats
path: root/community/gns3-server/APKBUILD
blob: 876260ee10521770bfa3fef37cc26c7a93d7b41f (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-server
pkgver=1.5.3
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"

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="547481b2b22bf98a18f376ae66e08d22  gns3-server-1.5.3.tar.gz"
sha256sums="2f42dd1bc1304bed04a83ce3e7fe158cc126a1aad4e044d541af0726ed8693fb  gns3-server-1.5.3.tar.gz"
sha512sums="274b3b690dd9abdcfda501fc9adca7cdffc1749a10d133b38e349c704f36e062c2687682ec3080fb05470d473400ae10c28bc463cbfc2870bf989da1adf3d782  gns3-server-1.5.3.tar.gz"