pavement

Subversion

From FreeBSDwiki
Revision as of 10:46, 21 December 2014 by Sidetone (Talk | contribs)
Jump to: navigation, search

Here is how to configure and run programs that use subversion, mainly to update FreeBSD source files.

Contents

 [hide

svnup

Unfortunately, subversion control doesn't come with the base system, but there is a convenient, dependency-less port called svnup.

# pkg install svnup

or

# /usr/ports/net/svnup/make install clean
# man svnup

svnup.conf

The configuration file for svnup.conf is at /usr/local/etc/svnup.conf, and these set options can be overrode on the command line. Here is an example of the configuration file:

# $FreeBSD$
#
# Default configuration options for svnup.conf.
#
[defaults]
work_directory=/var/tmp/svnup
#host=svn.freebsd.org
#host=svn0.us-west.freebsd.org
#host=svn0.us-east.freebsd.org
#host=svn0.eu.freebsd.org
protocol=https
verbosity=1
trim_tree=0
extra_files=0
#repository_base=
#
[release]
branch=base/releng/10.1
target=/usr/src
#
[ports]
branch=ports/head
target=/usr/ports

This looks simple enough, remove the # [comment out] sign next to the server you wish to use, and adjust other options. For more information type:

# man svnup.conf

Updating

To update via svnup, use the svnup command with the tag in parenthesis described in the conf file:

# svnup release

or

# svnup ports

References

  • FreeBSD.org
Personal tools