git tools for building in base?

Ulrich Spörlein uqs at freebsd.org
Thu Dec 17 21:25:52 UTC 2020


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


More information about the freebsd-current mailing list