public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-portage-dev] use of sftp/scp transfer protocol in ebuilds.
@ 2009-01-29  8:10 99% Amit Dor-Shifer
  0 siblings, 0 replies; 1+ results
From: Amit Dor-Shifer @ 2009-01-29  8:10 UTC (permalink / raw
  To: gentoo-portage-dev

Hi.

I'm trying to make a package that downloads the distfile using a secured 
transfer protocol and ssh's pubkey authentication.

I've modified /etc/make.conf:

amit0 myapp # grep SFTP /etc/make.conf
FETCHCOMMAND_SFTP="/usr/bin/sftp \${URI} \${DISTDIR}"

When I'm setting SRC_URI like this:

amit0 myapp # grep SRC_UR myapp-1.0.ebuild
SRC_URI="sftp://my.server.com:/home/public/mydistfile.tar.gz"

seems like the URL is passed as-is to the sftp-client, which can't 
handle the "sftp://" prefix:

amit0 myapp # ebuild --debug myapp-1.0.ebuild digest
<SNIP>
 >>> Downloading 'sftp://my.server.com:/home/public/mydistfile.tar.gz'
Connecting to sftp...
ssh: sftp: Name or service not known
Couldn't read packet: Connection reset by peer
No digest file available and download failed.

!!! Couldn't download 'mydistfile.tar.gz'. Aborting.
!!! File mydistfile.tar.gz doesn't exist, can't update Manifest
<SNIP>

Seems then to me I'm not on the right track. Should I be using a 
different method? Or is this method supposed to work? If not, would 
rsync be my favored approach? How is rsync transfer configured?

Thanks,
Amit





^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-01-29  8:10 99% [gentoo-portage-dev] use of sftp/scp transfer protocol in ebuilds Amit Dor-Shifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox