Re: CVS commit: src/share/man/man8

2020-08-16 Thread Martin Husemann
On Sat, Aug 15, 2020 at 04:12:40PM +0200, Leonardo Taccari wrote:
> Can this use cdn.NetBSD.org and made a bit more general instead of
> hardcoding version/port please?

Maybe create a distinct "manually install pkgin" landing page with
enough magic/ links to guide the user to the "best" repo on our web
site and point the man page to that static url?

Martin


re: CVS commit: src/share/man/man8

2020-08-15 Thread matthew green
> Yeah. I was hesistant to do it this way because hw.machine_arch didn't
> occur to me (uname gives the wrong thing for package sets on arm, etc)

"uname -p"?


.mrg.


Re: CVS commit: src/share/man/man8

2020-08-15 Thread Valery Ushakov
On Sat, Aug 15, 2020 at 16:12:40 +0200, Leonardo Taccari wrote:

> > +.Ic export 
> > PKG_PATH=https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/9.0/amd64/All
> > +.Ic pkg_add pkgin
> > [...]
> 
> Can this use cdn.NetBSD.org and made a bit more general instead of
> hardcoding version/port please?
> 
> Instead of 9.0/amd64 probably something like:
> 
>  $(uname -r | tr -cd '[0-9.]')/$(sysctl -n hw.machine_arch)

FWIW, that doesn't fit on the page in the PostScript output (groff -Tps
-mandoc)

-uwe


Re: CVS commit: src/share/man/man8

2020-08-15 Thread nia
On Sat, Aug 15, 2020 at 04:12:40PM +0200, Leonardo Taccari wrote:
> Hello Nia,
> 
> Nia Alarie writes:
> > [...]
> > Log Message:
> > afterboot.8: Explain how to install pkgin on a fresh system
> > [...]
> > +.Pp
> > +To install pkgin, if it was not done by the installer:
> > +.Bd -literal -offset indent
> > +.Ic export 
> > PKG_PATH=https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/9.0/amd64/All
> > +.Ic pkg_add pkgin
> > [...]
> 
> Can this use cdn.NetBSD.org and made a bit more general instead of
> hardcoding version/port please?
> 
> Instead of 9.0/amd64 probably something like:
> 
>  $(uname -r | tr -cd '[0-9.]')/$(sysctl -n hw.machine_arch)
> 
> (the `tr -cd '[0-9.]'' should get rid of possible _STABLE, _BETA and
> similar... probably there are better way to do it, in that case please
> adjust it or let me know!)
> 
> 
> Thanks!

Yeah. I was hesistant to do it this way because hw.machine_arch didn't
occur to me (uname gives the wrong thing for package sets on arm, etc)


Re: CVS commit: src/share/man/man8

2020-08-15 Thread Leonardo Taccari
Hello Nia,

Nia Alarie writes:
> [...]
> Log Message:
> afterboot.8: Explain how to install pkgin on a fresh system
> [...]
> +.Pp
> +To install pkgin, if it was not done by the installer:
> +.Bd -literal -offset indent
> +.Ic export 
> PKG_PATH=https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/9.0/amd64/All
> +.Ic pkg_add pkgin
> [...]

Can this use cdn.NetBSD.org and made a bit more general instead of
hardcoding version/port please?

Instead of 9.0/amd64 probably something like:

 $(uname -r | tr -cd '[0-9.]')/$(sysctl -n hw.machine_arch)

(the `tr -cd '[0-9.]'' should get rid of possible _STABLE, _BETA and
similar... probably there are better way to do it, in that case please
adjust it or let me know!)


Thanks!