bug-gsrc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gsrc] No access to source files (firewalled)


From: Brandon Invergo
Subject: Re: [bug-gsrc] No access to source files (firewalled)
Date: Tue, 08 Jan 2013 16:35:05 +0100
User-agent: Notmuch/0.14 (http://notmuchmail.org) Emacs/24.2.1 (x86_64-unknown-linux-gnu)

Hi Chuck,
> Thanks for bringing this package back to life. With a bit of work, I
> believe that this may be a part of the cure for at least SOME of my
> headaches.

If said work is of general interest, I'm very open to
suggestions/requests (unless you were only referring to the problem
below)! 

> I've installed gsrc onto an OpenSuSE distribution and for the most
> part, things have gone very well.  Now for the fun part. The servers I
> support are restricted from internet downloads behind a couple of
> firewalls and a nasty corporate policy.  From the looks of the code,
> with a few simple changes to gar.master.mk, I could download all
> relevant sources to my laptop, cut a dvd and have gsrc pull the source
> files from localhost.  Could it be that simple?

That sounds like a pretty strict setup. Fortunately, you shouldn't have
to make any changes to support what you want to do. GSRC has a cache
directory at cache/garstow/archives/. Normally, a downloaded package is
copied there when it is extracted. You can skip the extraction by just
doing

    $ make -C gnu/PACKAGE garchive

for each package you want. You can then copy the whole GSRC directory to
a firewalled machine and it will automatically fetch packages from the
cache before trying to download them. 

If you really want to make sure that no attempt is made to remotely
fetch any packages, you can put the following in a file called
`gar.site.mk':

    DISTFILE_URLS = $(addprefix $(FILE_SITES),$(DISTFILES)))               
    SIGFILE_URLS = $(addprefix $(FILE_SITES),$(SIGFILES)))                  
    PATCHFILE_URLS = $(addprefix $(FILE_SITES),$(PATCHFILES))) 

(gar.site.mk, if it exists, is loaded after all the other configuration
files, and here we use it to override some variables so that *only*
local files are used)

I hope that helps,
Brandon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]