View | Details | Raw Unified | Return to bug 51330
Collapse All | Expand All

(-)gftp/Makefile (+5 lines)
Lines 41-46 Link Here
41
CONFIGURE_ENV+=	_GTHREAD_LIBS="-lgthread12"
41
CONFIGURE_ENV+=	_GTHREAD_LIBS="-lgthread12"
42
.endif
42
.endif
43
.endif
43
.endif
44
.if defined(WITH_SSH)
45
RUN_DEPENDS+=	ssh-askpass:${PORTSDIR}/security/openssh-askpass
46
CFLAGS+=	-DWITH_SSH
47
.endif
44
48
45
.include <bsd.port.pre.mk>
49
.include <bsd.port.pre.mk>
46
50
Lines 67-72 Link Here
67
	@${ECHO} ""
71
	@${ECHO} ""
68
	@${ECHO} "	WITHOUT_X11=yes		Only build the text frontend."
72
	@${ECHO} "	WITHOUT_X11=yes		Only build the text frontend."
69
	@${ECHO} "	WITH_GTK2=yes		Use gtk 2.x instead of 1.x"
73
	@${ECHO} "	WITH_GTK2=yes		Use gtk 2.x instead of 1.x"
74
	@${ECHO} "	WITH_SSH=yes		To enable SSH2 support"
70
	@${ECHO} ""
75
	@${ECHO} ""
71
76
72
post-patch:
77
post-patch:
(-)gftp/files/patch-lib::options.h (+16 lines)
Line 0 Link Here
1
--- lib/options.h.orig	Wed Apr 23 22:50:37 2003
2
+++ lib/options.h	Wed Apr 23 22:51:13 2003
3
@@ -26,9 +26,13 @@
4
   {"FTP", 	rfc959_init, 	"ftp",		1},
5
   {"HTTP", 	rfc2068_init, 	"http",		1},
6
   {"Local", 	local_init, 	"file",		1},
7
+#ifdef WITH_SSH
8
   {"SSH2",	sshv2_init,	"ssh2", 	1},
9
+#endif
10
   {"Bookmark", 	bookmark_init, 	"bookmark", 	0},
11
+#ifdef WITH_SSH
12
   {"SSH", 	ssh_init, 	"ssh", 		1},
13
+#endif
14
   {NULL, 	NULL, 		NULL,		0}
15
 };
16
 
(-)gftp/files/patch-lib::sshv2.c (+27 lines)
Line 0 Link Here
1
--- lib/sshv2.c.orig	Wed Apr 23 22:45:50 2003
2
+++ lib/sshv2.c	Wed Apr 23 22:41:59 2003
3
@@ -523,7 +523,9 @@
4
   int version, fdm, fds, s[2];
5
   sshv2_message message;
6
   pid_t child;
7
-
8
+#ifdef __FreeBSD__
9
+  ssh_use_askpass=TRUE;
10
+#endif
11
   g_return_val_if_fail (request != NULL, -2);
12
   g_return_val_if_fail (request->protonum == GFTP_SSHV2_NUM, -2);
13
   g_return_val_if_fail (request->hostname != NULL, -2);
14
@@ -543,8 +545,13 @@
15
   if (request->sftpserv_path == NULL ||
16
       *request->sftpserv_path == '\0')
17
     {
18
+#ifdef __FreeBSD__
19
+      p1 = "/usr/libexec";
20
+      p2 = '/';
21
+#else
22
       p1 = "";
23
       p2 = ' ';
24
+#endif
25
     }
26
   else
27
     {

Return to bug 51330