# ChangeLog for net-ftp/gftp
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/gftp/ChangeLog,v 1.56 2006/08/28 16:44:40 compnerd Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/gftp/ChangeLog,v 1.57 2007/01/14 20:05:42 leio Exp $
+
+*gftp-2.0.18-r5 (14 Jan 2007)
+
+ 14 Jan 2007; Mart Raudsepp <leio@gentoo.org>
+ +files/gftp-2.0.18-ipv6.patch, +files/gftp-2.0.18-ssl-wildcardcert.patch,
+ +gftp-2.0.18-r5.ebuild:
+ Fix bug 100187 and bug 137257, thanks to Kai Blaschke and Konstantin
28 Aug 2006; Saleem Abdulrasool <compnerd@gentoo.org>
-files/gftp-2.0.15-64bit_fixes.patch, -files/gftp-2.0.16-ipv6_fix.patch,
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX gftp-2.0.18-ipv6.patch 1227 RMD160 b6a88043177ecc3535249fc6527a8716c4c76fee SHA1 c758a847c3d794955ad802e5634b9f25ced8add1 SHA256 97d047539828f9a6512c920a24915978bfa003daeb8046e49c6a380b403ab307
+MD5 7977530d87ccfe32b023776c4050dedd files/gftp-2.0.18-ipv6.patch 1227
+RMD160 b6a88043177ecc3535249fc6527a8716c4c76fee files/gftp-2.0.18-ipv6.patch 1227
+SHA256 97d047539828f9a6512c920a24915978bfa003daeb8046e49c6a380b403ab307 files/gftp-2.0.18-ipv6.patch 1227
AUX gftp-2.0.18-ssh2-read.patch 326 RMD160 512c6ffb7b31588a63c8efa48c15f70c33854862 SHA1 78d2d8e1a7921a8cfb456f8e414b11a6a04d11f3 SHA256 3ae9e62999aef08911dcc374433fa1797d277494cb86fdbb54e969098230582d
MD5 327a4df792013f011340fe5f90dbb6c1 files/gftp-2.0.18-ssh2-read.patch 326
RMD160 512c6ffb7b31588a63c8efa48c15f70c33854862 files/gftp-2.0.18-ssh2-read.patch 326
SHA256 3ae9e62999aef08911dcc374433fa1797d277494cb86fdbb54e969098230582d files/gftp-2.0.18-ssh2-read.patch 326
+AUX gftp-2.0.18-ssl-wildcardcert.patch 1004 RMD160 10a192946d56d6c830e7afc1172892f544c44fad SHA1 838669715273a265c3207b825386b281c41b2d4a SHA256 9f7c483ad83f7e12b492c9227ba548e089a4af455af3e8ea2ceff2b8e515e0c9
+MD5 176e12e22f99ad3696f92dec776530ba files/gftp-2.0.18-ssl-wildcardcert.patch 1004
+RMD160 10a192946d56d6c830e7afc1172892f544c44fad files/gftp-2.0.18-ssl-wildcardcert.patch 1004
+SHA256 9f7c483ad83f7e12b492c9227ba548e089a4af455af3e8ea2ceff2b8e515e0c9 files/gftp-2.0.18-ssl-wildcardcert.patch 1004
DIST gftp-2.0.18.tar.bz2 1374850 RMD160 0e0daea8543ae822b25635647360193362a2648d SHA1 c2468f1ff1fe978a5fab3a198e513558f3b48f5a SHA256 8145e18d1edf13e8cb6cd7a69bb69de5c46307086997755654488fb8282d38a2
EBUILD gftp-2.0.18-r4.ebuild 1057 RMD160 1faa32784169aecec834998454d4cc0f0feb05bd SHA1 461cd17d7bc0bdbe519f5918796112f8a59520b7 SHA256 a30cc7a8186fa9c812d5f66d9534bda7d57470c74ef6e145e13c8a55ad1cd2b2
MD5 1ada6d0e81b53edf279b5b3808026692 gftp-2.0.18-r4.ebuild 1057
RMD160 1faa32784169aecec834998454d4cc0f0feb05bd gftp-2.0.18-r4.ebuild 1057
SHA256 a30cc7a8186fa9c812d5f66d9534bda7d57470c74ef6e145e13c8a55ad1cd2b2 gftp-2.0.18-r4.ebuild 1057
-MISC ChangeLog 7706 RMD160 5a5f7bce4e9322edb57c9467aa505d98df2aa7ec SHA1 50144f76db78d24ac8b6b2b898d8be3037fdddd9 SHA256 824e383382061a6b3def71411a9bcd20ebb8dcc55209490385907544fcff5b55
-MD5 cf6744edc187302518f37629f91a0580 ChangeLog 7706
-RMD160 5a5f7bce4e9322edb57c9467aa505d98df2aa7ec ChangeLog 7706
-SHA256 824e383382061a6b3def71411a9bcd20ebb8dcc55209490385907544fcff5b55 ChangeLog 7706
+EBUILD gftp-2.0.18-r5.ebuild 1301 RMD160 003d0bccfdeb611dbc2b22c9ef34d70c0cd13885 SHA1 5fe058b0dc66b6dad5d8d8413903d8daffdc9e43 SHA256 cece6998a686b6ea86519b33f6153632b390a4d75b9f299e1341029ba339672b
+MD5 80f73ccb41e932aebbf279df4daeb4cc gftp-2.0.18-r5.ebuild 1301
+RMD160 003d0bccfdeb611dbc2b22c9ef34d70c0cd13885 gftp-2.0.18-r5.ebuild 1301
+SHA256 cece6998a686b6ea86519b33f6153632b390a4d75b9f299e1341029ba339672b gftp-2.0.18-r5.ebuild 1301
+MISC ChangeLog 7954 RMD160 a54091fcf9fd699604c1a1538fd76249cfd0c532 SHA1 5ae0599b52881f6a18e7e91fd9b88509497251a7 SHA256 ca5bea66cd2409b15975772577178fe6dd6593e687c5ffc3b3535c9875a5dea1
+MD5 d5cf9bd2d2d0cee7cc14083fb4e41ac6 ChangeLog 7954
+RMD160 a54091fcf9fd699604c1a1538fd76249cfd0c532 ChangeLog 7954
+SHA256 ca5bea66cd2409b15975772577178fe6dd6593e687c5ffc3b3535c9875a5dea1 ChangeLog 7954
MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1
MD5 03ad2e6c4ab41244af1015a8bbb0b39f metadata.xml 158
RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e metadata.xml 158
MD5 4e32cb8ee1e0ef76ba34db43896f5cfc files/digest-gftp-2.0.18-r4 241
RMD160 a2507ad1c36cd4ac08bbfd6d3ecea87d0f6c2958 files/digest-gftp-2.0.18-r4 241
SHA256 4e1cf658c5915e1add1219ac8f1c03911008aea592dc06d53cff9ef99239f4dc files/digest-gftp-2.0.18-r4 241
+MD5 4e32cb8ee1e0ef76ba34db43896f5cfc files/digest-gftp-2.0.18-r5 241
+RMD160 a2507ad1c36cd4ac08bbfd6d3ecea87d0f6c2958 files/digest-gftp-2.0.18-r5 241
+SHA256 4e1cf658c5915e1add1219ac8f1c03911008aea592dc06d53cff9ef99239f4dc files/digest-gftp-2.0.18-r5 241
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFFqo0RkeYb6olFHJcRAlzfAJ99uV3Z0As5iwoI9p6N83t5TNwdXQCgr93r
+uXwkdxRuG5pzvFNQX+/tZxk=
+=eEPW
+-----END PGP SIGNATURE-----
--- /dev/null
+MD5 44b19442d06f6dc68c7211d66029d826 gftp-2.0.18.tar.bz2 1374850
+RMD160 0e0daea8543ae822b25635647360193362a2648d gftp-2.0.18.tar.bz2 1374850
+SHA256 8145e18d1edf13e8cb6cd7a69bb69de5c46307086997755654488fb8282d38a2 gftp-2.0.18.tar.bz2 1374850
--- /dev/null
+2006-7-19 Brian Masney <masneyb@gftp.org>
+ * lib/misc.c (gftp_copy_request) - fixes when doing an IPv6 transfer or
+ using ignore PASV address (from (from Aurelien Jarno) (closes GNOME bugzilla #169671)
+
+--- /trunk/lib/misc.c 2006/07/20 02:32:58 784
++++ trunk/lib/misc.c 2006/07/20 02:37:45 785
+@@ -568,8 +568,24 @@
+ newreq->use_proxy = req->use_proxy;
+ newreq->logging_function = req->logging_function;
+ newreq->ai_family = req->ai_family;
+- newreq->free_hostp = 0;
+- newreq->hostp = NULL;
++
++ if (req->hostp)
++ {
++#if defined (HAVE_GETADDRINFO) && defined (HAVE_GAI_STRERROR)
++ newreq->hostp = g_malloc (sizeof(struct addrinfo));
++ memcpy(newreq->hostp, req->hostp, sizeof(struct addrinfo));
++ if (req->current_hostp)
++ newreq->current_hostp = newreq->hostp + (req->current_hostp - req->hostp);
++#else
++ newreq->hostp = g_malloc (sizeof(struct hostent));
++ memcpy(newreq->hostp, req->hostp, sizeof(struct hostent));
++ newreq->host = req->host;
++ newreq->curhost = req->curhost;
++#endif
++ }
++ else
++ newreq->hostp = NULL;
++ newreq->free_hostp = 1;
+
+ gftp_copy_local_options (&newreq->local_options_vars,
+ &newreq->local_options_hash,
--- /dev/null
+--- lib/sslcommon.c 2005-01-04 14:32:11.000000000 +0100
++++ lib/sslcommon.c 2006-06-19 15:23:13.000000000 +0200
+@@ -182,7 +182,18 @@
+ X509_NAME_get_text_by_NID (subj, NID_commonName, data, 256) > 0)
+ {
+ data[sizeof (data) - 1] = '\0';
+- if (strcasecmp (data, request->hostname) != 0)
++ /* Check for wildcard CN (must begin with *.) */
++ if (strncmp(data, "*.", 2) == 0)
++ {
++ int hostname_len = strlen(data) - 1;
++ if (strlen(request->hostname) > hostname_len &&
++ strcasecmp (&(data[1]), &(request->hostname[strlen(request->hostname) - hostname_len])) == 0)
++ ok = 1;
++ }
++ else if (strcasecmp (data, request->hostname) == 0)
++ ok = 1;
++
++ if (!ok)
+ {
+ request->logging_function (gftp_logging_error, request,
+ _("ERROR: The host in the SSL certificate (%s) does not match the host that we connected to (%s). Aborting connection.\n"),
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/gftp/gftp-2.0.18-r5.ebuild,v 1.1 2007/01/14 20:05:42 leio Exp $
+
+inherit eutils
+
+DESCRIPTION="Gnome based FTP Client"
+SRC_URI="http://www.gftp.org/${P}.tar.bz2"
+HOMEPAGE="http://www.gftp.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="gtk ssl"
+
+RDEPEND=">=dev-libs/glib-2
+ sys-devel/gettext
+ sys-libs/ncurses
+ sys-libs/readline
+ gtk? ( >=x11-libs/gtk+-2 )
+ ssl? ( dev-libs/openssl )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # patch to allow fetching of ssh2 files
+ # that are read-only, see bug #91269 and upstream link.
+ epatch "${FILESDIR}/${P}-ssh2-read.patch"
+ # patch to allow for wildcard SSL certificates
+ epatch "${FILESDIR}/${P}-ssl-wildcardcert.patch"
+ # patch to not crash on IPv6 enabled hosts or on IPv4 transfer with the "ignore PASV address" function
+ epatch "${FILESDIR}/${P}-ipv6.patch"
+
+}
+
+src_compile() {
+ econf $(use_enable gtk gtkport) $(use_enable ssl) || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "install failed"
+ dodoc ChangeLog* README* THANKS TODO docs/USERS-GUIDE
+}