Skip to content
Permalink
Browse files

as provided by noses@noses.com

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@2043 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jean-Pierre Mouilleseaux
Jean-Pierre Mouilleseaux committed Feb 18, 2003
1 parent 2960ed5 commit f980eb71c4cce74db90f992fa6cd303c60fdfc64
Showing with 54 additions and 0 deletions.
  1. +41 −0 net/rdesktop/Portfile
  2. +13 −0 net/rdesktop/files/patch-licence.c
@@ -0,0 +1,41 @@
PortSystem 1.0
name rdesktop
version 1.2
revision 0
categories net
maintainers noses@noses.com
description Windows Terminal Server Client
long_description \
rdesktop is an RDP clietn to access Microsoft Terminal Server \
based services. \
\
The variant called w2k-license-hack is a backported patch from \
an rdesktop 1.1 patchset which wasn't integrated into the latest \
version -- it will announce the client as Windows 2000 machine \
causing the Terminal Server to provide a license for free. \
Please argue over this with your own conscience.

platforms darwin freebsd

homepage http://rdesktop.sourceforge.net/
master_sites \
http://unc.dl.sourceforge.net/sourceforge/rdesktop/ \
http://telia.dl.sourceforge.net/sourceforge/rdesktop/ \
http://easynews.dl.sourceforge.net/sourceforge/rdesktop/ \
http://umn.dl.sourceforge.net/sourceforge/rdesktop/ \
http://twtelecom.dl.sourceforge.net/sourceforge/rdesktop/ \
http://belnet.dl.sourceforge.net/sourceforge/rdesktop/ \
http://switch.dl.sourceforge.net/sourceforge/rdesktop/ \
http://cesnet.dl.sourceforge.net/sourceforge/rdesktop/
distname rdesktop-1.2beta1
extract.sufx .tar.gz

build.target rdesktop

checksums rdesktop-1.2beta1.tar.gz md5 db39ce21a03832495b75a8b338525a15

worksrcdir rdesktop

variant w2k-license-hack {
patchfiles patch-licence.c
}
@@ -0,0 +1,13 @@
--- ../rdesktop.orig/licence.c Thu Feb 13 14:04:01 2003
+++ licence.c Thu Feb 13 14:05:14 2003
@@ -113,7 +113,9 @@

out_uint32_le(s, 1);
out_uint16(s, 0);
- out_uint16_le(s, 0xff01);
+
+ /* 0xff01 == any Windows TSC, 0x0301 == Windows 2K */
+ out_uint16_le(s, 0x0301);

out_uint8p(s, client_random, SEC_RANDOM_SIZE);
out_uint16(s, 0);

0 comments on commit f980eb7

Please sign in to comment.
You can’t perform that action at this time.