summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXorg2018-10-19 12:11:20 +0200
committerXorg2018-10-19 12:11:20 +0200
commite086fe98ea29ee168dad720e8710e7f92393044b (patch)
treed47b9daa30fbb9822fb43699591c17f07eb582a2
downloadaur-e086fe98ea29ee168dad720e8710e7f92393044b.tar.gz
gns3-legacy: Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD37
-rw-r--r--gns3.desktop11
4 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..a4f22ec2f395
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = gns3-legacy
+ pkgdesc = GNS3 network simulator: code before v1.0
+ pkgver = 0.8.7
+ pkgrel = 1
+ url = https://github.com/GNS3/gns3-legacy
+ arch = any
+ license = GPL2
+ makedepends = python-setuptools
+ depends = qt4>=4.5.1
+ depends = python2>=2.6
+ depends = sip>=4.5
+ depends = python2-sip>=4.5
+ depends = python2-pyqt4>=4.5
+ optdepends = dynamips: Cisco router emulator.
+ optdepends = wireshark-gtk: Live packet capture.
+ source = gns3-legacy-0.8.7.tar.gz::https://github.com/GNS3/gns3-legacy/archive/GNS3-0.8.7.tar.gz
+ source = gns3.desktop
+ sha512sums = 7c4372845017b7472a85b95407fe845366e857955b2e658999a6ba0e38ae5d97ccc4a4271fe45b5601267efce3e3a4602305613a365078710343068e3699391f
+ sha512sums = 999a5091c8b789c53f04fa071be8753fb8609d2a4282ca5b3f9a5329dfaf4dfa54eb739f543133d89c85a0dd9159e4bc846f7f7657a9c8b8b2b5953dfb445771
+
+pkgname = gns3-legacy
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..33f7249a3559
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+!gns3.desktop
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..c8a845ff1c1b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: X0rg
+
+pkgname=gns3-legacy
+pkgver=0.8.7
+_pkgver="GNS3-$pkgver"
+pkgrel=1
+pkgdesc='GNS3 network simulator: code before v1.0'
+arch=('any')
+url='https://github.com/GNS3/gns3-legacy'
+license=('GPL2')
+makedepends=('python-setuptools')
+depends=('qt4>=4.5.1' 'python2>=2.6' 'sip>=4.5' 'python2-sip>=4.5' 'python2-pyqt4>=4.5')
+optdepends=('dynamips: Cisco router emulator.'
+ 'wireshark-gtk: Live packet capture.')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/GNS3/$pkgname/archive/$_pkgver.tar.gz"
+ 'gns3.desktop')
+sha512sums=('7c4372845017b7472a85b95407fe845366e857955b2e658999a6ba0e38ae5d97ccc4a4271fe45b5601267efce3e3a4602305613a365078710343068e3699391f'
+ '999a5091c8b789c53f04fa071be8753fb8609d2a4282ca5b3f9a5329dfaf4dfa54eb739f543133d89c85a0dd9159e4bc846f7f7657a9c8b8b2b5953dfb445771')
+
+prepare() {
+ cd "$srcdir/$pkgname-$_pkgver"
+ sed -i 's|/usr/local/share|/usr/share|g' setup.py
+ sed -i 's|/usr/share/examples/gns3/|/usr/share/gns3/|' setup.py
+}
+
+build() {
+ cd "$srcdir/$pkgname-$_pkgver"
+ python2.7 setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$_pkgver"
+ python2.7 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 "gns3.icns" "$pkgdir/usr/share/pixmaps/gns3.png"
+ install -Dm644 "$srcdir/gns3.desktop" "$pkgdir/usr/share/applications/gns3.desktop"
+ rm -rf "$pkgdir/usr/share/doc"
+}
diff --git a/gns3.desktop b/gns3.desktop
new file mode 100644
index 000000000000..98458160ea83
--- /dev/null
+++ b/gns3.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=GNS3
+Comment=GNS3 network simulator
+Exec=gns3 %f
+Icon=gns3
+Terminal=false
+Categories=Education;
+MimeType=application/x-gns3;
+Keywords=simulator;network;netsim;