Added VMware remote console

This commit is contained in:
Torsten Kurbad
2023-11-28 17:16:48 +01:00
parent f5ee2c36dd
commit 591d02bb6a
9 changed files with 325 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
AUX pk2cmd-add-share-dir-for-dev-file-9999.patch 661 BLAKE2B 4f7457a65402021067cad2307e7caec28d4550c2596b96e75329aad4cf8cf4c0d8831e149ec1d229a8f4d3427ac68ac87f3441a7f3ae40fe8128758b1b5b46bf SHA512 2951a0bba1762c3c97a6a1c708902876f7e26428f2513be66bb0f0eb62c4409073d5a2901055781e1e9b7c073265c37986cd94e7db834ce6e44ad6c7150c7909
EBUILD pk2cmd-9999.ebuild 1490 BLAKE2B d415e2452abee07f6ed5e346e531b525a00d1d6d0fe8f4abc6a6749b80b36fc94f9542b299caf2234387c2af48e5c4d933ed088a23b5a5a1c06dbbdc4ac86fb2 SHA512 33909f2aaee7b7efe21b9956221ef89541005bd5d8db7638928d68630afad9b4180bc638605e97d4bf503d2cfe2513b1fecd1c7553b624d88f6ced0b189258ad
MISC metadata.xml 250 BLAKE2B 8a43cac0f4db66fbc1320598dc1a764f7abebcf37513543da007eb2bd61064dbb068f78eb913b4ec16214beccbcc1229ebfa17beaae09eabef985852fb8a5b11 SHA512 95796c4e480c6e6a7db492b41b97c8676fe00580079637184b03bc4105b362d6ceac8d692fc6c426d7388e08892d080cf64c8c0143b3e9fd0e7a52a8d1295c78
@@ -0,0 +1,19 @@
diff -urN pk2cmd.orig/cmd_app.cpp pk2cmd/cmd_app.cpp
--- pk2cmd.orig/cmd_app.cpp 2023-11-24 10:19:23.781309788 +0100
+++ pk2cmd/cmd_app.cpp 2023-11-24 10:20:27.795077953 +0100
@@ -88,7 +88,14 @@
_tsearchenv_s("PK2DeviceFile.dat", "PATH", tempString);
if (_tcslen(tempString) < 17)
{
- _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
+ // Try /usr/share/pk2 first
+ _tcsncpy_s(tempString, "/usr/share/pk2/PK2DeviceFile.dat", 32);
+
+ if(access(tempString, 0))
+ {
+ // Well, that didn't work, default to the current directory
+ _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
+ }
}
}
if (!PicFuncs.ReadDeviceFile(tempString))
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>embedded@gentoo.org</email>
<name>Embedded Gentoo</name>
</maintainer>
</pkgmetadata>
+59
View File
@@ -0,0 +1,59 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="An application for working with the Microchip PicKit2/3 PIC programmers - updated version"
HOMEPAGE="http://www.microchip.com/pickit2 https://github.com/martonmiklos/pk2cmd"
LICENSE="MicroChip-PK2"
SLOT="0"
if [[ "${PV}" == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/martonmiklos/${PN}.git"
EGIT_BRANCH="master"
inherit git-r3
S="${WORKDIR}/${P}/${PN}"
else
SRC_URI="https://bitbucket.org/jpcgt/flatcam/downloads/FlatCAM-${PV}.zip -> ${P}.zip"
KEYWORDS="~amd64 ppc ppc64 ~x86"
S="${WORKDIR}/${PN}v${PV}LinuxMacSource"
fi
DEPEND="virtual/libusb:0"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-add-share-dir-for-dev-file-${PV}.patch
)
src_prepare() {
default
# Fix up the Makefile
sed \
-e 's:#TARGET=linux:TARGET=linux:' \
-e 's:DBG=-O2:DBG=:' \
-e 's:^CFLAGS=:CFLAGS+=:' \
-e 's:^LDFLAGS=:LDFLAGS+=:' \
-e 's:^LIBUSB=/usr/local:LIBUSB=/usr:' \
-e 's:/lib -lusb:/'"$(get_libdir)"' -lusb:' \
-e "s:^CC=g++::" \
-i Makefile || die
}
src_compile() {
emake CC="$(tc-getCXX)"
}
src_install() {
# Copy the device files and PicKit2 OS
insinto /usr/share/pk2
doins PK2DeviceFile.dat PK2V023200.hex PK3BLV011405.hex PK3OSV020005.hex
# Install the program
dobin pk2cmd
# Install the documentation
dodoc Readme-libusb.txt ReadmeForPK2CMDLinux2-6.txt usbhotplug.txt
}