[HEADS UP] Ports tree migration to Subversion

mbsd mbsd at isgroup.com.ua
Thu Jun 28 12:33:35 UTC 2012


Hi list.

It will be wonderful. When src had moved to svn, nobody cared about make
update command.
I wish to had this in ports makefile:

--- /usr/ports/Makefile	2012-06-07 09:26:08.983664775 +0300
+++ /tmp/Makefile	2012-06-28 15:25:03.000000000 +0300
@@ -153,6 +153,7 @@
 
 CVS?= cvs
 SUP?= csup
+GIT?= git
 PORTSNAP?= portsnap
 PORTSNAP_FLAGS?= -p ${.CURDIR}
 .if defined(SUPHOST)
@@ -170,6 +171,15 @@
 	@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
 	@echo "--------------------------------------------------------------"
 	cd ${.CURDIR}; ${CVS} -R -q update -A -P -d -I!
+.elif defined(GIT_UPDATE)
+	@echo "--------------------------------------------------------------"
+	@echo ">>> Updating ${.CURDIR} from GIT+SVN repository" ${CVSROOT}
+	@echo "--------------------------------------------------------------"
+.if !exists(${PORTSDIR}/.git)
+	cd ${.CURDIR}; ${GIT} svn rebase
+.else
+	${GIT} svn clone -$(svn log -q --limit 1 $SVN_ROOT | awk '/^r/{print
$1}') $SVN_ROOT
+.endif
 .else
 	@echo "--------------------------------------------------------------"
 	@echo ">>> Running ${PORTSNAP}"


On Wed, 2012-06-27 at 17:30 +0000, Thomas Abthorpe wrote:
> The FreeBSD ports tree will migrate from CVS to Subversion soon. The
> anticipated date for the migration is July 14th. This will have no impact
> for ports tree users as there will be a SVN to CVS exporter.
> 
> Please note that cvsup will still work after the migration. Nevertheless
> c(v)sup is pretty dated so you may want to see if portsnap(8) will fit your
> needs.
> 
> Beat and Thomas
> on behalf of portmgr@
> 
> http://blogs.freebsdish.org/portmgr/2012/06/27/ports-tree-migration-to-subversion/
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"




More information about the freebsd-ports mailing list