9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] hget'ing from a cdn
@ 2022-07-08 19:51 tlaronde
  2022-07-09  3:55 ` Skip Tavakkolian
  0 siblings, 1 reply; 4+ messages in thread
From: tlaronde @ 2022-07-08 19:51 UTC (permalink / raw)
  To: 9fans

Hello,

Pkg in kerTeX are created by processing and first retrieving files using
hget(1) for http served files.

The main TeX repository is CTAN. Now, there is an address:
mirrors.ctan.org (http/https), that is in fact redirecting dynamically
to various mirrors (this changes almost on any invocation).

There is a difference in implementation between Plan9 legacy and 9front,
hget(1) being, if I'm not mistaken, a binary in Plan9 legacy, and a rc
script in 9front.

The problem is that the redirection is not handled at least by one of
these and I have to keep a static cache on my website server to mirror
the files so that users can use the downloads.kergis.com/kertex/
(http/https) address instead to circumvent the problem.

Is there a way to make it work ideally on both flavors, so that the
pkg/recipes are indeed "live" taking whatever is current on CTAN using
whatever mirror?

TIA,
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
                       http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T58bb6b462ff52532-Mc948b2a7249c2e203a3c7aa7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

* Re: [9fans] hget'ing from a cdn
  2022-07-08 19:51 [9fans] hget'ing from a cdn tlaronde
@ 2022-07-09  3:55 ` Skip Tavakkolian
  2022-07-09  5:07   ` Skip Tavakkolian
  0 siblings, 1 reply; 4+ messages in thread
From: Skip Tavakkolian @ 2022-07-09  3:55 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]

Use a client written in Go?

On Fri, Jul 8, 2022, 12:53 PM <tlaronde@polynum.com> wrote:

> Hello,
> 
> Pkg in kerTeX are created by processing and first retrieving files using
> hget(1) for http served files.
> 
> The main TeX repository is CTAN. Now, there is an address:
> mirrors.ctan.org (http/https), that is in fact redirecting dynamically
> to various mirrors (this changes almost on any invocation).
> 
> There is a difference in implementation between Plan9 legacy and 9front,
> hget(1) being, if I'm not mistaken, a binary in Plan9 legacy, and a rc
> script in 9front.
> 
> The problem is that the redirection is not handled at least by one of
> these and I have to keep a static cache on my website server to mirror
> the files so that users can use the downloads.kergis.com/kertex/
> (http/https) address instead to circumvent the problem.
> 
> Is there a way to make it work ideally on both flavors, so that the
> pkg/recipes are indeed "live" taking whatever is current on CTAN using
> whatever mirror?
> 
> TIA,
> --
> Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
>              http://www.kergis.com/
>             http://kertex.kergis.com/
>                http://www.sbfa.fr/
> Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T58bb6b462ff52532-M7b20bd28c4745193c7c3cdcd
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 3515 bytes --]

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

* Re: [9fans] hget'ing from a cdn
  2022-07-09  3:55 ` Skip Tavakkolian
@ 2022-07-09  5:07   ` Skip Tavakkolian
  2022-07-09  6:17     ` tlaronde
  0 siblings, 1 reply; 4+ messages in thread
From: Skip Tavakkolian @ 2022-07-09  5:07 UTC (permalink / raw)
  To: 9fans

i use hurl:

% hurl https://mirror.ctan.org/tds/packages.zip > xyz.zip

https://go.dev/play/p/v6Ludjnzyg_L

On Fri, Jul 8, 2022 at 8:55 PM Skip Tavakkolian
<skip.tavakkolian@gmail.com> wrote:
>
> Use a client written in Go?
>
> On Fri, Jul 8, 2022, 12:53 PM <tlaronde@polynum.com> wrote:
>> 
>> Hello,
>> 
>> Pkg in kerTeX are created by processing and first retrieving files using
>> hget(1) for http served files.
>> 
>> The main TeX repository is CTAN. Now, there is an address:
>> mirrors.ctan.org (http/https), that is in fact redirecting dynamically
>> to various mirrors (this changes almost on any invocation).
>> 
>> There is a difference in implementation between Plan9 legacy and 9front,
>> hget(1) being, if I'm not mistaken, a binary in Plan9 legacy, and a rc
>> script in 9front.
>> 
>> The problem is that the redirection is not handled at least by one of
>> these and I have to keep a static cache on my website server to mirror
>> the files so that users can use the downloads.kergis.com/kertex/
>> (http/https) address instead to circumvent the problem.
>> 
>> Is there a way to make it work ideally on both flavors, so that the
>> pkg/recipes are indeed "live" taking whatever is current on CTAN using
>> whatever mirror?
>> 
>> TIA,
>> --
>> Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
>>              http://www.kergis.com/
>>             http://kertex.kergis.com/
>>                http://www.sbfa.fr/
>> Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T58bb6b462ff52532-Mef7f5724714eb818e82e0bb4
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

* Re: [9fans] hget'ing from a cdn
  2022-07-09  5:07   ` Skip Tavakkolian
@ 2022-07-09  6:17     ` tlaronde
  0 siblings, 0 replies; 4+ messages in thread
From: tlaronde @ 2022-07-09  6:17 UTC (permalink / raw)
  To: 9fans

Hello,

Le Fri, Jul 08, 2022 at 10:07:21PM -0700, Skip Tavakkolian a écrit :
> i use hurl:
> 
> % hurl https://mirror.ctan.org/tds/packages.zip > xyz.zip
> 
> https://go.dev/play/p/v6Ludjnzyg_L
> 

I will then simply add the utility in the list of recognized retrievers
and add the choice in the get_mk_install.rc script.

Thanks!

> On Fri, Jul 8, 2022 at 8:55 PM Skip Tavakkolian
> <skip.tavakkolian@gmail.com> wrote:
> >
> > Use a client written in Go?
> >
> > On Fri, Jul 8, 2022, 12:53 PM <tlaronde@polynum.com> wrote:
> >> 
> >> Hello,
> >> 
> >> Pkg in kerTeX are created by processing and first retrieving files using
> >> hget(1) for http served files.
> >> 
> >> The main TeX repository is CTAN. Now, there is an address:
> >> mirrors.ctan.org (http/https), that is in fact redirecting dynamically
> >> to various mirrors (this changes almost on any invocation).
> >> 
> >> There is a difference in implementation between Plan9 legacy and 9front,
> >> hget(1) being, if I'm not mistaken, a binary in Plan9 legacy, and a rc
> >> script in 9front.
> >> 
> >> The problem is that the redirection is not handled at least by one of
> >> these and I have to keep a static cache on my website server to mirror
> >> the files so that users can use the downloads.kergis.com/kertex/
> >> (http/https) address instead to circumvent the problem.
> >> 
> >> Is there a way to make it work ideally on both flavors, so that the
> >> pkg/recipes are indeed "live" taking whatever is current on CTAN using
> >> whatever mirror?
> >> 
> >> TIA,
> >> --
> >> Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
> >>              http://www.kergis.com/
> >>             http://kertex.kergis.com/
> >>                http://www.sbfa.fr/
> >> Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
                       http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T58bb6b462ff52532-Mc2a31270a1345c5e71664439
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

end of thread, other threads:[~2022-07-09  6:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08 19:51 [9fans] hget'ing from a cdn tlaronde
2022-07-09  3:55 ` Skip Tavakkolian
2022-07-09  5:07   ` Skip Tavakkolian
2022-07-09  6:17     ` tlaronde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).