Re: [sword-devel] SFTP Support

2013-01-22 Thread Andrew Thule
Some versions of Ubuntu don't come with SFTP support included in CURL (because of --without-libssh2 being set). If this is the case, instructions to ensure SFTP is available in curl and libcurl can be found here: https://bugs.launchpad.net/ubuntu/+source/curl/+bug/311029 ~A On Fri, Dec 28, 20

Re: [sword-devel] SFTP Support

2013-01-19 Thread Greg Hellings
On Tue, Jan 8, 2013 at 2:39 PM, Greg Hellings wrote: > Thanks! I updated CMake as we talked about. > > The current SVN HEAD of Xiphos now has support for adding SFTP sources > through its module manager. Shout-out to Karl (or whoever wrote that > dialog) for making the code there very straightforw

Re: [sword-devel] SFTP Support

2013-01-08 Thread Greg Hellings
Thanks! I updated CMake as we talked about. The current SVN HEAD of Xiphos now has support for adding SFTP sources through its module manager. Shout-out to Karl (or whoever wrote that dialog) for making the code there very straightforward. Just adding a source with type "SFTP" in Xiphos' module ma

Re: [sword-devel] SFTP Support

2013-01-07 Thread Andrew Thule
Is there a URL that oultines what this patch does? I agree this is going to be very useful change, but confess - I don't yet understand what this patch is doing . (Also, thanks indeed Greg for your efforts) ~A On Sun, Jan 6, 2013 at 2:29 PM, Troy A. Griffitts wrote: > Applied. Thanks Greg,

Re: [sword-devel] SFTP Support

2013-01-06 Thread Troy A. Griffitts
Applied. Thanks Greg, for the original contribution and for taking the time to work through the details. On 12/31/2012 03:53 PM, Greg Hellings wrote: Here is the updated patch adding CURLSFTPAVAILABLE support to CMake as well as to the library code. It defaults to assuming no SFTP support if e

Re: [sword-devel] SFTP Support

2012-12-31 Thread Greg Hellings
Also note, I didn't test building this with autotools, only with CMake. The library silently ignores any SFTP sources listed in the InstallMgr.conf file if it is compiled without SFTP support. --Greg On Mon, Dec 31, 2012 at 8:53 AM, Greg Hellings wrote: > Here is the updated patch adding CURLSFT

Re: [sword-devel] SFTP Support

2012-12-31 Thread Greg Hellings
Here is the updated patch adding CURLSFTPAVAILABLE support to CMake as well as to the library code. It defaults to assuming no SFTP support if either the curl-config executable cannot be found or if it returns a value other than "1" from the quick detection process we have settled on. Users of Win

Re: [sword-devel] SFTP Support

2012-12-30 Thread Troy A. Griffitts
OK Greg, I've hacked detection of CURL SFTP into the autotools build (hopefully-- it works for me). I've added a new compile time define with -DCURLSFTPAVAILABLE to go along with the existing -DCURLAVAILABLE If you'd like to update the sftp patch to conditionally compile support in based o

Re: [sword-devel] SFTP Support

2012-12-28 Thread Greg Hellings
Further digging with help from our friends has revealed this nugget: $ curl-config --protocols produces a newline-delimited list of protocols that the particular build of libcurl supports. curl-config is a shell script which can be run on the build system and should satisfy both the requirements

Re: [sword-devel] SFTP Support

2012-12-24 Thread Greg Hellings
Troy, On Sun, Dec 23, 2012 at 10:39 PM, Troy A. Griffitts wrote: > Dear Greg, > > Looking to apply this SFTP patch, could you give me some background as to > why the check to ignore across all transports for '.' and '..'? Our downloading method runs recursively from the given directory until it

Re: [sword-devel] SFTP Support

2012-12-23 Thread Troy A. Griffitts
Dear Greg, Looking to apply this SFTP patch, could you give me some background as to why the check to ignore across all transports for '.' and '..'? Thanks, Troy On 12/03/2012 04:06 PM, Greg Hellings wrote: The attached patch will introduce support for SFTPSource transports in the SWORD e

Re: [sword-devel] SFTP Support

2012-12-22 Thread Greg Hellings
Troy, I've trawled through the curl header files and have found no mechanism to determine if SSH is enabled for a build with it already enabled. The libcurl docs I've read have said, regarding the ambiguous message Peter received (stating that support is "either" disabled or unavailable) that ther

Re: [sword-devel] SFTP Support

2012-12-22 Thread Troy A. Griffitts
So guys. What's the status on this one? Last I heard, we might want to add libcurl ssh detection to prevent a flurry of support emails. Should I commit as-is, or would you like more time to experiment with and add detection? Troy On 12/19/2012 05:07 AM, Greg Hellings wrote: If this gets

Re: [sword-devel] SFTP Support

2012-12-19 Thread Andrew Thule
With respect to using username/password combinations in InstallMgr.conf can it not be made such that InstallMgr.con uses an environment variable (which can be set and unset to use password), an ssh key (such as a public key as in key exchange based logins), or some other method such as having the .

Re: [sword-devel] SFTP Support

2012-12-19 Thread Greg Hellings
If this gets approved and submitted, then yes. Otherwise, there is no point. --Greg On Dec 19, 2012 4:12 AM, "David Haslam" wrote: > A summary of SFTP module installation would be a useful addition to the > wiki. > > Please would one of you condense the details and post a suitable section > the

Re: [sword-devel] SFTP Support

2012-12-19 Thread David Haslam
A summary of SFTP module installation would be a useful addition to the wiki. Please would one of you condense the details and post a suitable section the most relevant wiki page. /Thanks/. David -- View this message in context: http://sword-dev.350566.n4.nabble.com/SFTP-Support-tp4651358p46

Re: [sword-devel] SFTP Support

2012-12-18 Thread Peter von Kaehne
On Tue, 2012-12-18 at 10:40 -0600, Greg Hellings wrote: > SFTPSource=Home|domain.com|/home/username/.sword|username|password|20121203172011 Ok, this works perfectly I also tried downloading a module via Xiphos - which works fine too. So, in summary - if Debian and Ubuntu would allow ssh on libc

Re: [sword-devel] SFTP Support

2012-12-18 Thread Greg Hellings
On Tue, Dec 18, 2012 at 10:31 AM, Peter von Kaehne wrote: > Hi Greg, > > On Tue, 2012-12-18 at 07:47 -0600, Greg Hellings wrote: >> From the other thread, Troy writes: >> "I have been following the discussion on the SFTP patch and hadn't >> seen it come to a conclusion yet regarding what might be

Re: [sword-devel] SFTP Support

2012-12-18 Thread Peter von Kaehne
Hi Greg, On Tue, 2012-12-18 at 07:47 -0600, Greg Hellings wrote: > From the other thread, Troy writes: > "I have been following the discussion on the SFTP patch and hadn't > seen it come to a conclusion yet regarding what might be necessary to > detect SSL support in cURL. I don't feel I've been

Re: [sword-devel] SFTP Support

2012-12-18 Thread Greg Hellings
>From the other thread, Troy writes: "I have been following the discussion on the SFTP patch and hadn't seen it come to a conclusion yet regarding what might be necessary to detect SSL support in cURL. I don't feel I've been negligent with this." I guess we had a chicken/egg type problem because I

Re: [sword-devel] SFTP Support

2012-12-04 Thread Greg Hellings
You shouldn't need to compile anything more than libcurl, which I thought to be a relatively small library. --Greg On Dec 4, 2012 1:29 PM, "Peter von Kaehne" wrote: > On 04/12/12 17:04, Peter von Kaehne wrote: > > In essence it does not work on Ubuntu (and maybe Debian) and it will > > not work

Re: [sword-devel] SFTP Support

2012-12-04 Thread Peter von Kaehne
On 04/12/12 17:04, Peter von Kaehne wrote: > In essence it does not work on Ubuntu (and maybe Debian) and it will > not work in future - unless one builts their own libcurl. Peter I am trying this right now out. But it is a major undertaking to build - takes a long time so far on a perfectly well

Re: [sword-devel] SFTP Support

2012-12-04 Thread Greg Hellings
I would still call that a bug. :) Alternatively, have you installed the libcurl-ssl-dev package? That might have what you need. But I wouldn't hold my breath. --Greg On Dec 4, 2012 11:06 AM, "Peter von Kaehne" wrote: > On 04/12/12 16:43, Greg Hellings wrote: > > or your distro does not include

Re: [sword-devel] SFTP Support

2012-12-04 Thread Peter von Kaehne
On 04/12/12 16:43, Greg Hellings wrote: > or your distro does not include those as > build-time dependencies and you should file a packaging bug with your > distribution. Indeed. But not a bug, but a conscious decision! https://bugs.launchpad.net/ubuntu/+source/curl/+bug/175891 This is so annoy

Re: [sword-devel] SFTP Support

2012-12-04 Thread Greg Hellings
Peter, I see two problems: 1) You need to specify Username and Password in your InstallMgr.conf file. This is clearly NOT ideal, as the values are stored in plain text. Alternatively, you can have key-based authentication and just include the username - but you have to have your keys stored in ~/

Re: [sword-devel] SFTP Support

2012-12-04 Thread Peter von Kaehne
On 04/12/12 05:28, David "Judah's Shadow" Blue wrote: > Greg Hellings wrote: > > The attached patch will introduce support for SFTPSource transports in > the SWORD engine, allowing a user to access remote repositories over > SFTP (which is enabled by default when a user enables SSH). >

Re: [sword-devel] SFTP Support

2012-12-04 Thread David Haslam
Once the patch has been applied, please would you write this up in the developers' wiki. /Thanks/. David -- View this message in context: http://sword-dev.350566.n4.nabble.com/SFTP-Support-tp4651358p4651361.html Sent from the SWORD Dev mailing list archive at Nabble.com.

Re: [sword-devel] SFTP Support

2012-12-04 Thread Greg Hellings
It also has the added benefit of being one of the easiest ways for people to expose their personal repositories to their other devices - e.g. mobile or simply other remote systems. For myself, I know, SFTP is the easiest type of remote file access to expose. Safety of users is what initially promp

Re: [sword-devel] SFTP Support

2012-12-04 Thread David "Judah's Shadow" Blue
Greg Hellings wrote: >The attached patch will introduce support for SFTPSource transports in >the SWORD engine, allowing a user to access remote repositories over >SFTP (which is enabled by default when a user enables SSH). > >--Greg > > >--

[sword-devel] SFTP Support

2012-12-03 Thread Greg Hellings
The attached patch will introduce support for SFTPSource transports in the SWORD engine, allowing a user to access remote repositories over SFTP (which is enabled by default when a user enables SSH). --Greg sftp_sword_support.patch Description: Binary data ___