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 ?
cheers
luigi
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-port...@freebsd.org"
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
to create your own tarball of the sources checked out from the VCS,
possibly using a "helper" makefile target that fetches from VCS and
creates the tarball for republication by you on MASTER_SITE_LOCAL.
Kris
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
> 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
> to create your own tarball of the sources checked out from the VCS,
> possibly using a "helper" makefile target that fetches from VCS and
> creates the tarball for republication by you on MASTER_SITE_LOCAL.
There is an example in ports/www/tidy-devel/Makefile.
--
Th. Thomas.