aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gns3-server/APKBUILD
blob: 99c9da2d2760dd6873bff9ce494982b290b0b1c6 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-server
pkgver=1.5.1
pkgrel=0
pkgdesc="GNS3 network simulator. Server package."
url="https://github.com/GNS3/gns3-server"
arch="all"
license="GPL3"
depends="py-psutil py-jinja2 python3 dynamips py-aiohttp pytest"
depends_dev=""
makedepends="$depends_dev py-setuptools python3-dev linux-headers 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 iouyap 
  apk add vpcs

EOF

}

md5sums="371d50e3f4e52159620249326a19d0fe  gns3-server-1.5.1.tar.gz"
sha256sums="e871ebe00f2a66876a99c9e71c65afaf74e5d5165c49984033f8599ecf49939e  gns3-server-1.5.1.tar.gz"
sha512sums="fcf5ca0a3bbf5224554c9cecd90a7aded9b658e64eccb778d47ac08c9b4dd567bd757977e8dd54c165d49b24033b99d2b95d5c4892e2b8ad2924d7d3a4c2d9d3  gns3-server-1.5.1.tar.gz"