aboutsummaryrefslogblamecommitdiffstats
path: root/community/gns3-server/APKBUILD
blob: d6695e5e02348cb9c3a9488c36236e25802ef8e7 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
            
        

                                                 
          
                          

                                              

                                                  
                                  
                                        


                                                                     
                          

                                                                                            
 
         





                                                                               
                              

 
         


                              
           
                                                               



                                                                                                       





                        
   

 
                                                                                                                                                                      
                                                                                                                                                     
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-server
pkgver=2.2.6
pkgrel=0
pkgdesc="GNS3 network simulator. Server package."
url="https://github.com/GNS3/gns3-server"
arch="all"
license="GPL-3.0-or-later"
depends="busybox dynamips python3
	py3-aiohttp-gns3 py3-aiohttp-cors-gns3
	py3-async-timeout-gns3 py3-jsonschema-gns3
	py3-pytest py3-raven
	py3-psutil-gns3 py3-jinja2
	py3-async_generator py3-aiofiles
	py3-distro
	"
makedepends="busybox-static py3-setuptools python3-dev linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/gns3-server/archive/v$pkgver.tar.gz
	requirements.patch"

build() {
	# Upstream includes busybox binary for x86_64. We want to replace it by
	# $CARCH binary
	if [ "$CARCH" != "x86_64" ] ; then
		busybox_bin=$(find . -name busybox -type f)
		cp /bin/busybox.static $busybox_bin
	fi
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	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
}

sha512sums="4eac777c2ba95a12de220c9368f1629866df0a1cc05862391a7de91c4d65716ebd0e260cc55f4549d6a1ac773e2ab3b1f4de94d4a35dc7c121eab04a531a4402  gns3-server-2.2.6.tar.gz
cdc09d596f0773ec7b842859f836c4363f50fac5cf954f435b1f50957da9355b47c9dece347c599797d1a32aa31a272810c8e6b906c9e07c470090769f510146  requirements.patch"