diff options
author | runnytu | 2015-06-09 20:22:47 +0200 |
---|---|---|
committer | runnytu | 2015-06-09 20:22:47 +0200 |
commit | 60461d5490d798cda2a5412a989e0f5930dff49d (patch) | |
tree | e364ab0586bd5bf247a5e9233bc2e9da8002aca6 | |
download | aur-60461d5490d798cda2a5412a989e0f5930dff49d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 81 | ||||
-rwxr-xr-x | linguist | 10 | ||||
-rwxr-xr-x | packettracer | 12 | ||||
-rw-r--r-- | pt.install | 20 |
5 files changed, 146 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8a910692fb6f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by makepkg 4.2.1 +# Sat May 30 10:15:24 UTC 2015 +pkgbase = packettracer + pkgdesc = Network design and emulation software for Cisco's Networking Academy instructors and students. + pkgver = 6.2 + pkgrel = 1 + url = http://www.netacad.com/about-networking-academy/packet-tracer + install = pt.install + arch = i686 + arch = x86_64 + license = custom + depends = qtwebkit + depends = libpng + options = !strip + source = http://Cisco \Packet \Tracer \6.2 \for \Linux \- \Ubuntu \installation \- \Student \version.tar.gz + source = packettracer + source = linguist + md5sums = 403fa8f9b1f974935587bf8b8227653a + md5sums = e0bdbe6ca4d693f4dde2eab81bb97a74 + md5sums = fd2f166d9b2cfbae0bd4cff792a9a270 + +pkgname = packettracer + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a10a764cefbd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,81 @@ +# Maintainer: Runnytu < runnytu at gmail dot com > +# OldMaintainer: Alexey Kharlamov <der@2-47.ru> +# Contributor: David Dufberg Tøttrup <david at dufberg dot se> +# Contributor: Jordi De Groof <jordi(dot)degroof(at)gmail(dot)com> +# Contributor: pyther <pyther@pyther.net> + +pkgname=packettracer +pkgver=6.2 +pkgrel=1 +pkgdesc="Network design and emulation software for Cisco's Networking Academy instructors and students." +arch=( 'i686' 'x86_64' ) +url="http://www.netacad.com/about-networking-academy/packet-tracer" +license=('custom') + +# Untested +[ "$CARCH" = "x86_64" ] && depends=('lib32-openssl' 'lib32-qt4' 'lib32-libpng') && makedepends=('gcc-multilib') +[ "$CARCH" = "i686" ] && depends=('qtwebkit' 'libpng') + +# Requires Netacad Username/Password to download +source=( 'http://Cisco \Packet \Tracer \6.2 \for \Linux \- \Ubuntu \installation \- \Student \version.tar.gz' 'packettracer' 'linguist' ) +md5sums=('403fa8f9b1f974935587bf8b8227653a' + 'e0bdbe6ca4d693f4dde2eab81bb97a74' + 'fd2f166d9b2cfbae0bd4cff792a9a270') + +# We don't want to strip anything from the static libraries +# We want to keep all binaries orginal (Cisco is goofy) +options=(!strip) +install=pt.install + +package() { + cd ${srcdir}/PacketTracer62Student + + mkdir -p ${pkgdir}/opt/pt/{art,backgrounds,bin,extensions,help,LANGUAGES,lib,saves,sounds,templates} + + cp -r ./art/* ${pkgdir}/opt/pt/art + cp -r ./backgrounds/* ${pkgdir}/opt/pt/backgrounds + cp -r ./bin/* ${pkgdir}/opt/pt/bin + cp -r ./extensions/* ${pkgdir}/opt/pt/extensions + cp -r ./LANGUAGES/* ${pkgdir}/opt/pt/LANGUAGES + cp -r ./saves/* ${pkgdir}/opt/pt/saves + cp -r ./sounds/* ${pkgdir}/opt/pt/sounds + cp -r ./templates/* ${pkgdir}/opt/pt/templates + cp -r ./lib/* ${pkgdir}/opt/pt/lib + + # Help Files that are optinal uncomment to include them (55 MB) + # cp -r ./help/* ${pkgdir}/opt/pt/help + + # Mime Info for PKA, PKT, PKZ + install -D -m644 ./bin/Cisco-pka.xml ${pkgdir}/usr/share/mime/packages/Cisco-pka.xml + install -D -m644 ./bin/Cisco-pkt.xml ${pkgdir}/usr/share/mime/packages/Cisco-pkt.xml + install -D -m644 ./bin/Cisco-pkz.xml ${pkgdir}/usr/share/mime/packages/Cisco-pkz.xml + + rm ${pkgdir}/opt/pt/bin/Cisco-pka.xml + rm ${pkgdir}/opt/pt/bin/Cisco-pkt.xml + rm ${pkgdir}/opt/pt/bin/Cisco-pkz.xml + + # Install Mimetype Icons + install -D -m644 ./art/pka.png ${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pka.png + install -D -m644 ./art/pkt.png ${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pkt.png + install -D -m644 ./art/pkz.png ${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pkz.png + + # EULA + install -D -m644 eula.txt ${pkgdir}/usr/share/licenses/$pkgname/eula.txt + + # Shell script to start PT and tell it to use included qt files + # Arch's QT causes PT to crash when saving! + install -D -m755 ${srcdir}/packettracer ${pkgdir}/opt/pt/packettracer + + # Symlink to /usr/bin + mkdir -p ${pkgdir}/usr/bin/ + ln -s /opt/pt/packettracer ${pkgdir}/usr/bin/pt + + # Improved version of Cisco's linguist script + install -D -m755 ${srcdir}/linguist ${pkgdir}/opt/pt/linguist + + # Desktop File + install -D -m644 ./bin/Cisco-PacketTracer.desktop ${pkgdir}/usr/share/applications/Cisco-PacketTracer.desktop + sed 's/\/usr\/local\/PacketTracer6/\/opt\/pt/' -i ${pkgdir}/usr/share/applications/Cisco-PacketTracer.desktop + rm ${pkgdir}/opt/pt/bin/Cisco-PacketTracer.desktop +} + diff --git a/linguist b/linguist new file mode 100755 index 000000000000..bd17840a713c --- /dev/null +++ b/linguist @@ -0,0 +1,10 @@ +#!/bin/sh + +# As for now, PacketTracer works with built-in arch libraries +# If you exprerience any troubles, try to uncomment +# the following line + +# export LD_LIBRARY_PATH="/opt/pt/lib" + +/opt/pt/bin/linguist "$@" + diff --git a/packettracer b/packettracer new file mode 100755 index 000000000000..9b0299d158eb --- /dev/null +++ b/packettracer @@ -0,0 +1,12 @@ +#!/bin/sh + +# Modified and improved version of Cisco's Script + +# As for now, PacketTracer works with built-in arch libraries +# If you exprerience any troubles, try to uncomment +# the following line + +# export LD_LIBRARY_PATH="/opt/pt/lib" + +exec /opt/pt/bin/PacketTracer6 "$@" + diff --git a/pt.install b/pt.install new file mode 100644 index 000000000000..73eda9704808 --- /dev/null +++ b/pt.install @@ -0,0 +1,20 @@ +packtracer_update_cache_database() { + gtk-update-icon-cache -f -q /usr/share/icons/hicolor + update-desktop-database -q + update-mime-database /usr/share/mime +} + +post_install() { + packtracer_update_cache_database + echo "### NOTICE ###" + echo "Please read the EULA at /usr/share/licenses/packettracer/eula.txt and uninstall if you do not agree." +} + +post_upgrade() { + packtracer_update_cache_database +} + +post_remove() { + packtracer_update_cache_database +} + |