[rancid] simle solution for SVN with URI

Valentin Chopov vchopov at digifonica.com
Wed Nov 22 17:01:50 UTC 2006


Hi all,

This is my first post here.

1.  I added this in my rancid.conf :
CVSROOT=https://<svn host>/cisco
RCSSYS=svn; export RCSSYS
2. Manualy on my <svn host> I run:
svnadmin create <svn root>/cisco

3. Applied this small patch to rancid-cvs:

--- cut here ---

*** rancid-cvs.original    Tue Nov 21 15:55:05 2006
--- rancid-cvs    Tue Nov 21 16:00:39 2006
***************
*** 49,56 ****
  if [ ! -d $CVSROOT ]; then
      if [ $RCSSYS = cvs ]; then
      cvs -d $CVSROOT init
!     else
!     svnadmin create $CVSROOT
      fi
  fi
 
--- 49,56 ----
  if [ ! -d $CVSROOT ]; then
      if [ $RCSSYS = cvs ]; then
      cvs -d $CVSROOT init
! #    else
! #    svnadmin create $CVSROOT
      fi
  fi
 
***************
*** 81,89 ****
          cd $BASEDIR
          cvs checkout $GROUP
      else
!         svn import -m "$GROUP" . file://$CVSROOT/$GROUP
          cd $BASEDIR
!         svn checkout file://$CVSROOT/$GROUP $GROUP
      fi
      fi
      cd $DIR
--- 81,89 ----
          cd $BASEDIR
          cvs checkout $GROUP
      else
!         svn import -m "$GROUP" . $CVSROOT/$GROUP
          cd $BASEDIR
!         svn checkout $CVSROOT/$GROUP $GROUP
      fi
      fi
      cd $DIR

--- cut here ---

4. Everything else is according to the rancid docs.
I had a small problem and I hat do run manually "svn update" once but 
after that everythings looks ok.

BTW, I'm running rancid-2.3.2a5 on FreeBSD 6.1

Thanks,
Val

-- 
Valentin S. Chopov, CC[NDS]P
Senior Systems Administrator
Digifonica Canada Limited <http://www.digifonica.com>
(604) 628-8900 ext. 0058




More information about the Rancid-discuss mailing list