61 lines
1.7 KiB
Ruby
61 lines
1.7 KiB
Ruby
class Rdesktop < Formula
|
|
desc "UNIX client for connecting to Windows Remote Desktop Services"
|
|
homepage "https://www.rdesktop.org/"
|
|
url "https://github.com/rdesktop/rdesktop/releases/download/v1.8.5/rdesktop-1.8.5.tar.gz"
|
|
sha256 "f0211077c3685ff79ba0396d31d5cd3587c6dd0febcbb20be364b7890f6eca95"
|
|
|
|
bottle do
|
|
sha256 "8fae9c9a25c022dc0d6c492cc7bbfa3c8c18995a44444a00403d51e3d9c17091" => :mojave
|
|
sha256 "f933732e9aef0271521e58660517761b7e779d57778d6f7c08650b442ad6696c" => :high_sierra
|
|
sha256 "08fdffc987de78fdd690ed72669754088bf9a1e25ffb919c1cdbb48e9b486d8f" => :sierra
|
|
end
|
|
|
|
depends_on "openssl"
|
|
depends_on :x11
|
|
|
|
# Note: The patch below is meant to remove the reference to the
|
|
# undefined symbol SCARD_CTL_CODE.
|
|
# upstream bug report: https://sourceforge.net/p/rdesktop/bugs/352/
|
|
patch :DATA
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--disable-credssp
|
|
--enable-smartcard
|
|
--with-openssl=#{Formula["openssl"].opt_prefix}
|
|
--x-includes=#{MacOS::X11.include}
|
|
--x-libraries=#{MacOS::X11.lib}
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/rdesktop -help 2>&1", 64)
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/scard.c b/scard.c
|
|
index caa0745..5521ee9 100644
|
|
--- a/scard.c
|
|
+++ b/scard.c
|
|
@@ -2152,7 +2152,6 @@ TS_SCardControl(STREAM in, STREAM out)
|
|
{
|
|
/* Translate to local encoding */
|
|
dwControlCode = (dwControlCode & 0x3ffc) >> 2;
|
|
- dwControlCode = SCARD_CTL_CODE(dwControlCode);
|
|
}
|
|
else
|
|
{
|
|
@@ -2198,7 +2197,7 @@ TS_SCardControl(STREAM in, STREAM out)
|
|
}
|
|
|
|
#ifdef PCSCLITE_VERSION_NUMBER
|
|
- if (dwControlCode == SCARD_CTL_CODE(3400))
|
|
+ if (0)
|
|
{
|
|
int i;
|
|
SERVER_DWORD cc;
|