From 338b2ba008ed42b9635eab90aaf1370faf38e09c Mon Sep 17 00:00:00 2001 From: VNAT Date: Fri, 6 Sep 2024 12:23:10 +0200 Subject: [PATCH] gui-apps/packettracer: add 8.2.2 Signed-off-by: VNAT Closes: https://github.com/gentoo/guru/pull/236 Signed-off-by: David Roman --- gui-apps/packettracer/Manifest | 1 + .../files/packettracer-8.2.2.desktop | 9 ++++ .../packettracer/packettracer-8.2.2.ebuild | 44 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 gui-apps/packettracer/files/packettracer-8.2.2.desktop create mode 100644 gui-apps/packettracer/packettracer-8.2.2.ebuild diff --git a/gui-apps/packettracer/Manifest b/gui-apps/packettracer/Manifest index f08f1abdca..5d20714964 100644 --- a/gui-apps/packettracer/Manifest +++ b/gui-apps/packettracer/Manifest @@ -1 +1,2 @@ DIST CiscoPacketTracer_820_Ubuntu_64bit.deb 320679542 BLAKE2B a2cc1e6c54f8d37282c38db2afee66664be613528d0f51fb3396a770946e2ace97e4947509ccdfc648c8e6b3b78b1a2a402848a1ff457ba703456141806e9025 SHA512 7e1c64af03d3bd99ed627d66e221094f80a28a87229ddb9ae5b98a5e38e28f45dfdd7ecc31e7253b17c11b7124c183125063c2a8e13bfb139cae6dd184b49226 +DIST Packet_Tracer822_amd64_signed.deb 282817852 BLAKE2B a198716db54fe2b763fe71e15a5e891f758d5a4f37dfb07a904eccd47de0d9cf563a6ba70693058b81c3c7df51697315b8358746af7038c60fcf058e79ac02b1 SHA512 55835357b01449150f5c962d852f2921d4e39f697297cb34471b8cc83a91bced6c31703cc28a90e61db7a9a32e5534de4f11e5c4f6735f400456d25a013fadde diff --git a/gui-apps/packettracer/files/packettracer-8.2.2.desktop b/gui-apps/packettracer/files/packettracer-8.2.2.desktop new file mode 100644 index 0000000000..9b72cc6018 --- /dev/null +++ b/gui-apps/packettracer/files/packettracer-8.2.2.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Exec=/opt/pt/packettracer %f +Name=Packet Tracer 8.2.2 +Icon=/opt/pt/art/app.png +Terminal=false +StartupNotify=true +MimeType=application/x-pkt;application/x-pka;application/x-pkz;application/x-pks;application/x-pksz; + diff --git a/gui-apps/packettracer/packettracer-8.2.2.ebuild b/gui-apps/packettracer/packettracer-8.2.2.ebuild new file mode 100644 index 0000000000..83d66bcdbe --- /dev/null +++ b/gui-apps/packettracer/packettracer-8.2.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v3 + +EAPI=8 + +inherit desktop unpacker xdg + +DESCRIPTION="Cisco's packet tracer" +HOMEPAGE="https://www.netacad.com/resources/lab-downloads" +SRC_URI="Packet_Tracer822_amd64_signed.deb" + +S="${WORKDIR}" + +LICENSE="Cisco" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="fetch mirror strip" + +RDEPEND="${DEPEND} + dev-libs/icu + x11-libs/xcb-util +" + +QA_PREBUILT="opt/pt/*" + +pkg_nofetch(){ + ewarn "To fetch sources, you need a Cisco account which is" + ewarn "available if you're a web-learning student, instructor" + ewarn "or you sale Cisco hardware, etc." + ewarn "after that, go to https://www.netacad.com/resources/lab-downloads and login with" + ewarn "your account, and after that, you should download a file" + ewarn "named \"${A}\" then move it to" + ewarn "your DISTDIR directory" + ewarn "and then, you can proceed with the installation." +} + +src_install(){ + cp -r . "${ED}" || die + for icon in pka pkt pkz; do + newicon -s 48x48 -c mimetypes opt/pt/art/${icon}.png application-x-${icon}.png + done + newmenu "${FILESDIR}/${PN}-${PV}.desktop" "${PN}.desktop" + dobin opt/pt/packettracer +}