Is it bad to fetch from this 3rd party site?
then using the checksum from Original Cisco Site
Git Clone URL: | https://aur.archlinux.org/packettracer.git (read-only, click to copy) |
---|---|
Package Base: | packettracer |
Description: | A cross-platform visual simulation tool designed by Cisco Systems that allows users to create network topologies and imitate modern computer network |
Upstream URL: | https://www.netacad.com/courses/packet-tracer |
Licenses: | LicenseRef-Cisco-EULA |
Submitter: | Vamp898 |
Maintainer: | runnytu |
Last Packager: | runnytu |
Votes: | 151 |
Popularity: | 0.83 |
First Submitted: | 2009-02-18 07:52 (UTC) |
Last Updated: | 2025-05-04 15:40 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 .. 49 Next › Last »
Is it bad to fetch from this 3rd party site?
then using the checksum from Original Cisco Site
@prRoumanet You are correct, you need to download the .deb manually from Cisco NetAcad or SkillsForAll (you probably need to sign in first) and place it in the same folder as the PKGBUILD. Then, as long as the SHA512 matches, the build will succeed.
Basically, the PKGBUILD was designed to use a local .deb file; it is probably illegal to distribute it, so they make people download it manually.
I can't build packettracer 8.2.2-1
==> Récupération des sources…
==> ERREUR : CiscoPacketTracer822_amd64_signed.deb n’a pas été trouvé dans le répertoire de travail et n’est pas un URL.
Erreur: Impossible de construire packettracer
If I download .deb manually, how should I modify PKGBUILD to use my local file?
Hello,
There are two problems with this packages right now. First, you are not really supposed to install binaries into /opt/
, as denoted by namcap
. Secondly, your license()
is not SPDX compliant. For this custom CISCO EULA, you would need LicenseRef-Cisco-EULA
.
Here is a patch file that changes the licenses and also makes it more compliant with a normal package:
diff --git a/PKGBUILD b/PKGBUILD
index a213397..5ff6e5c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ arch=( 'x86_64' )
depends=('openssl>=1.0' 'dbus' 'icu' 'glib2' 'libxml2' 'libjpeg-turbo' 'nss' 'libxss' 'java-runtime>=1.7.0' 'qt5-multimedia' 'qt5-webengine' 'qt5-svg' 'qt5-networkauth' 'qt5-websockets' 'qt5-script' 'qt5-speech')
options=('!strip' '!emptydirs')
url="https://www.netacad.com/courses/packet-tracer"
-license=('custom')
+license=('LicenseRef-Cisco-EULA')
source=('local://CiscoPacketTracer822_amd64_signed.deb'
'packettracer.sh'
@@ -28,7 +28,8 @@ package() {
tar xf data.tar.xz -C "${pkgdir}"
chown -R 0:0 "${pkgdir}"
- mv "${pkgdir}/opt/pt/" "${pkgdir}/opt/packettracer/"
+ mkdir -p "${pkgdir}/usr/lib/"
+ mv "${pkgdir}/opt/pt/" "${pkgdir}/usr/lib/packettracer/"
mkdir -p "${pkgdir}/usr/share/applications/"
mv "${srcdir}/cisco-pt.desktop" "${pkgdir}/usr/share/applications/cisco-pt.desktop"
mv "${srcdir}/cisco-ptsa.desktop" "${pkgdir}/usr/share/applications/cisco-ptsa.desktop"
@@ -37,21 +38,21 @@ package() {
mkdir -p "${pkgdir}/usr/bin/"
find "${pkgdir}" -type d -exec chmod 755 {} \;
- find "${pkgdir}/opt/packettracer/help/" -type d -exec chmod 777 {} \;
- find "${pkgdir}/opt/packettracer/saves/" -type d -exec chmod 555 {} \;
- find "${pkgdir}/opt/packettracer/art/html/network_controller/" -type d -exec chmod 775 {} \;
- find "${pkgdir}/opt/packettracer/art/RackView/CablePegboard/" -type d -exec chmod 775 {} \;
- find "${pkgdir}/opt/packettracer/bin/xcbglintegrations/" -type d -exec chmod 775 {} \;
- find "${pkgdir}/opt/packettracer/help/default/NetconRestAPI/" -type d -exec chmod 775 {} \;
+ find "${pkgdir}/usr/lib/packettracer/help/" -type d -exec chmod 777 {} \;
+ find "${pkgdir}/usr/lib/packettracer/saves/" -type d -exec chmod 555 {} \;
+ find "${pkgdir}/usr/lib/packettracer/art/html/network_controller/" -type d -exec chmod 775 {} \;
+ find "${pkgdir}/usr/lib/packettracer/art/RackView/CablePegboard/" -type d -exec chmod 775 {} \;
+ find "${pkgdir}/usr/lib/packettracer/bin/xcbglintegrations/" -type d -exec chmod 775 {} \;
+ find "${pkgdir}/usr/lib/packettracer/help/default/NetconRestAPI/" -type d -exec chmod 775 {} \;
- ln -s /opt/packettracer/packettracer "${pkgdir}/usr/bin/packettracer"
+ ln -s /usr/lib/packettracer/packettracer "${pkgdir}/usr/bin/packettracer"
- ln -s /usr/lib/libdouble-conversion.so "${pkgdir}/opt/packettracer/bin/libdouble-conversion.so.1"
+ ln -s /usr/lib/libdouble-conversion.so "${pkgdir}/usr/lib/packettracer/bin/libdouble-conversion.so.1"
- sed -i 's|/opt/pt|/opt/packettracer|' "${pkgdir}/opt/packettracer/linguist" "${pkgdir}/opt/packettracer/packettracer"
+ sed -i 's|/opt/pt|/usr/lib/packettracer|' "${pkgdir}/usr/lib/packettracer/linguist" "${pkgdir}/usr/lib/packettracer/packettracer"
install -D -m755 "${srcdir}/packettracer.sh" "${pkgdir}/etc/profile.d/packettracer.sh"
- install -D -m644 "${pkgdir}/opt/packettracer/help/default/copyrights.htm" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
+ install -D -m644 "${pkgdir}/usr/lib/packettracer/help/default/copyrights.htm" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
}
Hey, I've installed the package but i keep getting this error when trying to run it
❯ packettracer
Starting Packet Tracer 8.2.2
/usr/bin/packettracer: line 8: 87476 Aborted (core dumped) ./PacketTracer "$@" > /dev/null 2>&1
Please move the mime icon files, they are not detected by KDE:
mkdir -p "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes"
mv "${pkgdir}/usr/share/icons/gnome/48x48/mimetypes/pka.png" "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pka.png"
mv "${pkgdir}/usr/share/icons/gnome/48x48/mimetypes/pks.png" "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pks.png"
mv "${pkgdir}/usr/share/icons/gnome/48x48/mimetypes/pksz.png" "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pksz.png"
mv "${pkgdir}/usr/share/icons/gnome/48x48/mimetypes/pkt.png" "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pkt.png"
mv "${pkgdir}/usr/share/icons/gnome/48x48/mimetypes/pkz.png" "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pkz.png"
rmdir -p "${pkgdir}/usr/share/icons/gnome/48x48/mimetypes"
If this can help anyone to simplify the installation and the maintenance:
we usually download the deb package from the browser which saves the file in ~/Downloads
Cisco provides two places to download the package and names them in two different ways
the downloaded package should be moved to the PKGBUILD folder, but we always forget where that is
this is the link to the PKGBUILD.
Hi! Needed help on the PKGBUILD. How can I possibly install this?
https://skillsforall.com/resources/lab-downloads
The source .deb has a new package name Packet_Tracer822_amd64_signed.deb
UPDATE: Successfully built locally.
The name of the deb file provided by cisco has changed again and they've also moved the resources to a new webpage under skills for all. It would make more sense to have a fixed name in the PKGBUILD and have people rename it in the wiki instructions.
Pinned Comments
runnytu commented on 2020-01-04 16:58 (UTC) (edited on 2020-01-04 16:59 (UTC) by runnytu)
To install all versions of packettracer except 7.2.2, follow this guidelines: 1. Download the snapshot from this AUR. 2. Tar -zxf the packettracer.tar.gz snapshot (it creates the dir packettracer/ with the PKGBUILD on it). 3. Download the latest packettracer tarball from your Netacad account and copy it into the packettracer/ dir. 4. Create the package with the command makepkg (it creates a packettracer.pkg.tar.xz). 5. Install the package with either makepkg -i or sudo pacman -U packettracer.pkg.tar.xz.
Packettracer 7.2.2 are auto installable via run file, download it from netacad webpage and run it, you don't need this package.