All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How  automate source download from  a google drive?
@ 2015-02-19  1:55 Steve Kenton
  2015-02-19 22:12 ` Bryce Schober
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Kenton @ 2015-02-19  1:55 UTC (permalink / raw
  To: buildroot

This is a bit off the wall. I'm working with a package called tovid
which you download from a google drive by clicking on a link on the wiki
Darn if I can figure out how to put that into the .mk file to automate it.
Look through packages directory and did not see anything obviously like it

Any thoughts would be appreciated

Steve Kenton

################################################################################
#
# tovid
#
################################################################################

TOVID_VERSION = 0.35
# I don't see how to automate downloads from a google drive http://goo.gl/o8IWR7
# The file which is downloaded has the expected name tovid-0.35.tar.gz
TOVID_SITE = http://tovid.wikia.com/wiki/Installing_tovid
TOVID_LICENSE = GPLv2.0
TOVID_LICENSE_FILES = COPYING

# Must be run in source directory to avoid "error: package directory 'libtovid' does not exist"
define TOVID_INSTALL_TARGET_CMDS
	bash -c "cd $(@D); ./setup.py install --root=$(TARGET_DIR) --prefix=/usr"
endef

$(eval $(generic-package))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How automate source download from a google drive?
  2015-02-19  1:55 [Buildroot] How automate source download from a google drive? Steve Kenton
@ 2015-02-19 22:12 ` Bryce Schober
  2015-02-19 22:55   ` Steve Kenton
  2015-02-20  6:33   ` Baruch Siach
  0 siblings, 2 replies; 4+ messages in thread
From: Bryce Schober @ 2015-02-19 22:12 UTC (permalink / raw
  To: buildroot

On Wed, Feb 18, 2015 at 5:55 PM, Steve Kenton <skenton@ou.edu> wrote:

> This is a bit off the wall. I'm working with a package called tovid
> which you download from a google drive by clicking on a link on the wiki
> Darn if I can figure out how to put that into the .mk file to automate it.
> Look through packages directory and did not see anything obviously like it
>
> Any thoughts would be appreciated
>


This worked:
wget --no-check-certificate '
https://docs.google.com/uc?export=download&id=0B7aAfFRdwkUmeGZTT2pua0d1Z2c'
-O ~/Downloads/tovid.tar.gz

Based on this SO answer:
http://unix.stackexchange.com/a/148674/22389

You'll need to specify the full download name of the file because the wget
redirect apparently doesn't get it.

<><  <><  <><
Bryce Schober
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150219/d5aae0d6/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How automate source download from a google drive?
  2015-02-19 22:12 ` Bryce Schober
@ 2015-02-19 22:55   ` Steve Kenton
  2015-02-20  6:33   ` Baruch Siach
  1 sibling, 0 replies; 4+ messages in thread
From: Steve Kenton @ 2015-02-19 22:55 UTC (permalink / raw
  To: buildroot

On 02/19/2015 04:12 PM, Bryce Schober wrote:
> On Wed, Feb 18, 2015 at 5:55 PM, Steve Kenton <skenton@ou.edu> wrote:
> 
>> This is a bit off the wall. I'm working with a package called tovid
>> which you download from a google drive by clicking on a link on the wiki
>> Darn if I can figure out how to put that into the .mk file to automate it.
>> Look through packages directory and did not see anything obviously like it
>>
>> Any thoughts would be appreciated
>>
> 
> 
> This worked:
> wget --no-check-certificate '
> https://docs.google.com/uc?export=download&id=0B7aAfFRdwkUmeGZTT2pua0d1Z2c'
> -O ~/Downloads/tovid.tar.gz
> 
> Based on this SO answer:
> http://unix.stackexchange.com/a/148674/22389
> 
> You'll need to specify the full download name of the file because the wget
> redirect apparently doesn't get it.
> 
> <><  <><  <><
> Bryce Schober
> 
Wow, thank you very much. Your Google-fu is clearly superior to mine!

Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How automate source download from a google drive?
  2015-02-19 22:12 ` Bryce Schober
  2015-02-19 22:55   ` Steve Kenton
@ 2015-02-20  6:33   ` Baruch Siach
  1 sibling, 0 replies; 4+ messages in thread
From: Baruch Siach @ 2015-02-20  6:33 UTC (permalink / raw
  To: buildroot

Hi Bryce,

On Thu, Feb 19, 2015 at 02:12:58PM -0800, Bryce Schober wrote:
> On Wed, Feb 18, 2015 at 5:55 PM, Steve Kenton <skenton@ou.edu> wrote:
> > This is a bit off the wall. I'm working with a package called tovid
> > which you download from a google drive by clicking on a link on the wiki
> > Darn if I can figure out how to put that into the .mk file to automate it.
> > Look through packages directory and did not see anything obviously like it
> >
> > Any thoughts would be appreciated
> 
> This worked:
> wget --no-check-certificate '
> https://docs.google.com/uc?export=download&id=0B7aAfFRdwkUmeGZTT2pua0d1Z2c'
> -O ~/Downloads/tovid.tar.gz
> 
> Based on this SO answer:
> http://unix.stackexchange.com/a/148674/22389
> 
> You'll need to specify the full download name of the file because the wget
> redirect apparently doesn't get it.

wget --content-disposition works for me, almost. I get 
'tovid-0.35.tar.gztovid-0.35.tar.gz'.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-20  6:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19  1:55 [Buildroot] How automate source download from a google drive? Steve Kenton
2015-02-19 22:12 ` Bryce Schober
2015-02-19 22:55   ` Steve Kenton
2015-02-20  6:33   ` Baruch Siach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.