Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 03:49:54 +0200
From:      Polytropon <freebsd@edvax.de>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
Cc:        FreeBSD Questions !!!! <freebsd-questions@freebsd.org>
Subject:   Re: Tor-project & git ....
Message-ID:  <20140924034954.442a51f9.freebsd@edvax.de>
In-Reply-To: <54220668.4030404@hiwaay.net>
References:  <5421DC35.5000402@hiwaay.net> <20140923230305.471c5dac.freebsd@edvax.de> <54220668.4030404@hiwaay.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Sep 2014 18:46:48 -0500, William A. Mahaffey III wrote:
> On 09/23/14 16:03, Polytropon wrote:
> > On Tue, 23 Sep 2014 15:46:45 -0500, William A. Mahaffey III wrote:
> >> .... I am interested in the tor project (https://www.torproject.org/)
> >> for anonymizing my browsing. Inconveniently (but not surprisingly), they
> >> don't have a prebuilt FBSD 9.3 package.
> > FreeBSD has a port of Tor in its collection, but I don't know
> > how far that can be used as an integration to web browsers...
> 
> 
> Hmmmm .... I poked around w/ pkg & found nothing .... Is the port mature 
> enough that it would have a pkg (just curious) ? If not, I will poke 
> around in my ports tree

It's possible that there is no pkg for it, but installing it
from the ports collection should not be a big problem. As far
as I see, there are only few dependencies.



> >> Even more inconveniently, they
> >> use git for project management, which I know nothing about. I downloaded
> >> & installed FBSD git (git-2.1.0) a week or 2 ago, & have been reading
> >> the man pages, but am still a bit clueless (OK, fully & completely
> >> clueless) as to how it operates, including how to download a software
> >> tree to start with.
> > That's easy: "git clone <source>", where the source is usually
> > provided on the project page. This will get you a local copy of
> > the source tree.
> 
> I tried that & it failed, but I think I was too far down the tree, I'll 
> try again higher up ....
> 
> 
> [root@kabini1, ~/dev, 4:12:27pm] 358 % git clone 
> https://gitweb.torproject.org/builders/tor-browser-bundle.git/tree/refs/heads/maint-3.6
> Cloning into 'maint-3.6'...
> fatal: repository 
> 'https://gitweb.torproject.org/builders/tor-browser-bundle.git/tree/refs/heads/maint-3.6/' 
> not found
> [root@kabini1, ~/dev, 4:12:37pm] 359 %

It's common to clone the _whole_ repository, which means that
you have a complete copy of the entire version history of all
the files. That's often not what you want when you just need
the most recent versions of a subset of the files (i. e., the
ones you need for building from source). This local copy can
be synchronized or updated later on.

http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository

http://git-scm.com/docs/git-clone

There's also "git checkout" which can be used to obtain a
particular branch or subtree:

http://git-scm.com/docs/git-checkout

However, fiddling with git, repositories and software not intended
for FreeBSD is not the common way to install software on FreeBSD.
The ports collection is the 1st class tool to do this (using
source code), and pkg, if a precompiled package exists. This is
to make sure that what you have will actually _compile and run_
on FreeBSD, which you often can't expect when directly downloading
source archives or cloning code repositories from the vendor.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140924034954.442a51f9.freebsd>