summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD33
-rw-r--r--gns3-server.install13
-rw-r--r--gns3-server@.service10
4 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..26f11dfbd9d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = gns3-server-git
+ pkgdesc = GNS3 network simulator. Server package.
+ pkgver = 2.0.3
+ pkgrel = 1
+ url = https://github.com/GNS3/gns3-server
+ install = gns3-server.install
+ arch = any
+ groups = gns3
+ license = GPL3
+ makedepends = python-setuptools
+ depends = python-jsonschema>=2.4.0
+ depends = python-jinja>=2.7.3
+ depends = python-raven>=5.23.0
+ depends = python-psutil>=3.0.0
+ depends = python-zipstream-gns3
+ depends = python-typing-gns3
+ depends = python-yarl-gns3
+ depends = python-aiohttp-gns3
+ depends = python-aiohttp-cors-gns3
+ optdepends = dynamips: Cisco router emulator.
+ optdepends = qemu: Used by GNS3 to run Cisco ASA, PIX and IDS.
+ optdepends = vpcs: Simple PC emulation for basic network operations.
+ optdepends = ubridge: Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces.
+ optdepends = gns3-gui: graphical user interface for GNS3 server.
+ provides = gns3-server
+ conflicts = gns3-server
+ replaces = gns3-server
+ source = gns3-server-2.0.3.tar.gz::https://github.com/GNS3/gns3-server/archive/v2.0.3.tar.gz
+ source = gns3-server@.service
+ md5sums = 63ae2f4c276aa5f6bf07f38b46372f0f
+ md5sums = 3dcc54e56818a62859d0e7614e2aaa18
+
+pkgname = gns3-server-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a953c455b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Joseph Brains <jnbrains@gmail.com>
+_pkgname=gns3-server
+pkgname=${_pkgname}-git
+pkgver=2.0.3
+pkgrel=1
+pkgdesc='GNS3 network simulator. Server package.'
+arch=('any')
+url="https://github.com/GNS3/${_pkgname}"
+license=('GPL3')
+groups=('gns3')
+replaces=('gns3-server')
+provides=('gns3-server')
+conflicts=('gns3-server')
+makedepends=('python-setuptools')
+depends=('python-jsonschema>=2.4.0' 'python-jinja>=2.7.3' 'python-raven>=5.23.0' 'python-psutil>=3.0.0' 'python-zipstream-gns3' 'python-typing-gns3' 'python-yarl-gns3' 'python-aiohttp-gns3' 'python-aiohttp-cors-gns3')
+optdepends=('dynamips: Cisco router emulator.'
+ 'qemu: Used by GNS3 to run Cisco ASA, PIX and IDS.'
+ 'vpcs: Simple PC emulation for basic network operations.'
+ 'ubridge: Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces.'
+ 'gns3-gui: graphical user interface for GNS3 server.'
+)
+install="${_pkgname}.install"
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${_pkgname}/archive/v${pkgver}.tar.gz"
+ "${_pkgname}@.service")
+md5sums=('63ae2f4c276aa5f6bf07f38b46372f0f'
+ '3dcc54e56818a62859d0e7614e2aaa18')
+
+package() {
+ cd ${srcdir}/${_pkgname}-${pkgver}
+ python3 setup.py install --root=${pkgdir} --optimize=1
+ install -Dm644 ${srcdir}/${_pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE
+ install -Dm644 ${srcdir}/${_pkgname}@.service ${pkgdir}/usr/lib/systemd/system/${_pkgname}@.service
+}
diff --git a/gns3-server.install b/gns3-server.install
new file mode 100644
index 00000000000..0e89e97e4e4
--- /dev/null
+++ b/gns3-server.install
@@ -0,0 +1,13 @@
+post_install() {
+cat << EOF
+ To enable and start gns3-server execute the following,
+ replacing 'USER' with your username:
+
+ systemctl enable gns3-server@USER
+ systemctl start gns3-server@USER
+EOF
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/gns3-server@.service b/gns3-server@.service
new file mode 100644
index 00000000000..2626d09cfce
--- /dev/null
+++ b/gns3-server@.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=gns3 server for %i
+After=network.target
+
+[Service]
+User=%i
+ExecStart=/usr/bin/gns3server --local
+
+[Install]
+WantedBy=multi-user.target