Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Sep 2007 09:02:13 -0700
From:      Luigi Rizzo <rizzo@icir.org>
To:        Kris Kennaway <kris@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: any standard method to fetch a port's sources from svn (or cvs, etc) ?
Message-ID:  <20070909090213.A34735@xorpc.icir.org>
In-Reply-To: <46E41795.3060304@FreeBSD.org>; from kris@FreeBSD.org on Sun, Sep 09, 2007 at 05:56:05PM %2B0200
References:  <20070909065432.A33424@xorpc.icir.org> <46E41795.3060304@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 09, 2007 at 05:56:05PM +0200, Kris Kennaway wrote:
> Luigi Rizzo wrote:
> > as the subject says, i was wondering if there is any standard method
> > to fetch the sources for a port from a Subversion (or CVS or other
> > scm) repository.
> > 
> > Right now i am doing it with the following sequence
> > (the use of update vs checkout is because originally i
> > fetched into distfiles, not ${WRKSRC}, and later copied
> > the source to WRKSRC)
> > 
> > 	REMOTE_REPO= http://svn.foo.bar/svn/xyz
> > 	REPO_CMD=  \
> > 		if [ -f xyz ] ; then \
> > 			svn update ${REMOTE_REPO} . ; else \
> > 		svn checkout ${REMOTE_REPO} . ; fi
> > 
> > 	do-fetch:
> > 		${MKDIR} -p ${WRKSRC}
> > 		(cd ${WRKSRC}; ${REPO_CMD} )
> > 
> > but there might be better ways, and perhaps if this is a common
> > pattern it may be worth having generic support for it ?
> 
> It is recommended not to do this.  Some of our users are behind 
> firewalls and cannot fetch except via HTTP and FTP.  Instead, you need 

Ok i understand the restriction, but for what matters, SVN and maybe
other source management systems (git ?) run on top of http and work
fine through a proxy.

	cheers
	luigi



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