Re: git tools for building in base?

From: Ulrich Spörlein <uqs_at_freebsd.org>
Date: Thu, 17 Dec 2020 22:25:42 +0100
On Wed, 2020-11-25 at 10:05:48 -0500, Shawn Webb wrote:
>On Wed, Nov 25, 2020 at 04:00:50PM +0100, Baptiste Daroussin wrote:
>> On Tue, Nov 24, 2020 at 09:59:15PM -0700, Warner Losh wrote:
>> > On Tue, Nov 24, 2020 at 2:19 PM tech-lists <tech-lists_at_zyxst.net> wrote:
>> >
>> > > As subject - what will there be in base to interact with the new git repo?
>> > > I mean, right now, for svn there is svnlite. What for git?
>> > >
>> >
>> > 'pkg add git' is your choice now.
>>
>> pkg install not pkg add
>
>There's also fetch for a one-time download of the ports tree
>(bootstrapping ports, for example). A HardenedBSD user would do this:
>
>fetch -o ports.tar.gz \
>    https://git-01.md.hardenedbsd.org/HardenedBSD/hardenedbsd-ports/archive/master.tar.gz
>
>mkdir -p /usr/ports
>
>tar -xf ports.tar.gz --strip-components 1 -C /usr/ports
>
>Something similar could be done in FreeBSDlandia.
>

cgit supports this of course, so the troglodytes can download 
src/ports/doc from cgit, using only FreeBSD-provided tools like so:

fetch -o- https://cgit.freebsd.org/doc/snapshot/doc-main.tar.gz | tar -C /usr/doc -xf -

hth
Uli
Received on Thu Dec 17 2020 - 20:25:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC