[OpenBSD]

CVSup


内容索引


什么是CVSup?

CVSup 是一个用于从远程服务器主机上的主cvs(1) 库分发和更新源码树的软件包.OpenBSD源码的维护,用的是位于加拿大的一个中心开发机器上的CVS库.通过使用CVSup,OpenBSD用户可以很简单的让他们自己的源码树保持最新.

CVSup使用所谓拉模式的更新方式.在拉模式作用下,客户在需要的时候,询问服务器以获取更新.服务器被动的等待它的客户发出更新请求.因而,所有等更新由客户端发起,服务器从不主动发送更新请求.用户必须手动运行CVSup客户端来获取更新,或者设置一个cron(8) 作业定期自动运行.

术语CVSup,大写表示,指代整个软件包.它的主要组件是运行于客户端机器的cvsup,还有运行在每个OpenBSD CVSup站点的服务器端 cvsupd .

CVSup被设计为比sup(1)更快速和灵活,并且是它的替代软件.

OpenBSD项目当前有六个主要的源码库:

什么是CVS?

CVS是用于管理OpenBSD源码树的源码控制系统.详细说明请参考这里.注意CVS和CVSup是完全不同的程序. 尽管CVS可被用作远程文件访问,但没有对大规模的网络源码发布作优化,而CVSup对完成这样的任务更有效.

开始使用CVSup

Build CVSup被证明是很麻烦的,因为它是用Modula-3编写的.lang/ezm3 port Modula-3 编译器和运行时系统的一个小型发布版本. 不过,如果你只是担心如何运行CVSup,推荐你从ftp mirror sites 下载package,而不是自己从net/cvsup port来build.. Currently the Ezm3的OpenBSD ports还有CVSup只能用于i386平台.

想进一步了解CVSup,请浏览作者的project homepage.

如果要用CVSup镜像OpenBSD库,可能要用到如下的配置文件:

        # Defaults that apply to all the collections
        *default release=cvs
        *default delete use-rel-suffix
        *default umask=002
        *default host=cvsup.uk.openbsd.org
        *default base=/cvs
        *default prefix=/cvs

        # If your network link is a T1 or faster, comment out the following line.
        *default compress

        OpenBSD-all
        #OpenBSD-src
        #OpenBSD-www
        #OpenBSD-ports
        #OpenBSD-x11
        #OpenBSD-xf4

这将告诉cvsup去cvsup.uk.openbsd.org刷新所有的OpenBSD发布,这里本地库所在目录的umask(2) 要允许组具有写权限.

假设该文件另存为cvs-supfile, 使用如下命令调用cvsup GUI:

        cvsup cvs-supfile

对于batch mode,可能要用下面的命令:

        cvsup -g -L 2 cvs-supfile

使用CVS来更新你的源码树

check out任何其中一个CVSup库很简单了,对Korn/Bourne shells:

        # cd /usr
        # CVSROOT=/cvs cvs checkout src

上述操作将check out最新的源码树.很多人只想要release源码,特别是你在patch你的系统的时候.为了checkout release源码,你必须在你的命令行指定一个标签,例如:

        # cd /usr
        # cvs checkout -rOPENBSD_3_7 src

对3.6,相应替换为OPENBSD_3_6等.

将CVSup运行在Checkout模式

作为获取库和使用CVS的另外一种选择,你可以通过添加一个tag或者date关键字到你的supfile以使CVSup运行在checkout模式, 作为*default 或者collection的一个选项.特别有用的是,这样子可以非常高效的更新取自CDROMs的源码和ports树.

下面的supfile可用来更新你的ports 树:

        # Defaults that apply to all the collections
        *default host=cvsup.uk.openbsd.org
        *default base=/var
        *default prefix=/usr
        *default release=cvs
        *default delete use-rel-suffix compress

        # Ports Collection.
        OpenBSD-ports tag=.

任何CVS符号标签均可使用.一个"."表示HEAD,也就是,main branch所有文件的最新修订本 .要当心不要指定一个已有的标签,因为CVSup 不能区别非法的标签, 试图同步现存的源码树到一个非法的标签将删除所有文件.

Alternatively, use the keyword date=[cc.]yy.mm.dd.hh.mm.ss to select a revision by date. All 17 or 20 characters must be given as shown. For the years 2000 and beyond, specify the century cc. For earlier years, specify only the last two digits yy. You may also combine the tag and date keywords.

可用的CVSup服务器

有如下可用的CVSup服务器:

cvsup.uk.openbsd.org

located in Brighton, UK; maintained by Brian Somers.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup.hu.openbsd.org

located in Hungary; maintained by Mohacsi Janos.
Updated every 4 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-all - All OpenBSD repositories
cvsup.usa.openbsd.org

located in West Lafayette, Indiana, USA; maintained by Will Andrews.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
anoncvs1.usa.openbsd.org

located in Redwood City, California, western USA; maintained by Todd Miller.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
anoncvs3.usa.openbsd.org

located at the University of Colorado, Boulder, western USA; maintained by Todd Miller.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup.no.openbsd.org

located in Oslo, Norway; maintained by Anders Nordby.
Updated every 3 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup.pt.openbsd.org

located at the University of Coimbra, Portugal; maintained by Joo Pedras.
Updated every 3 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
anoncvs.de.openbsd.org

also known as grappa.unix-ag.uni-kl.de.
located at the University of Kaiserslautern, Germany; maintained by Christian Weisgerber.
Updated every 6 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
rt.fm

located at Lake in the Hills, Illinois, USA; maintained by Joshua Stein.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
skeleton.phys.spbu.ru

located in St. Petersburg State University, St. Petersburg, Russia; maintained by Dima Veselov.
Updated every 4 hours.

Available collections:

OpenBSD-ports - The ports repository
cvsup.jp.OpenBSD.org

located at Otemachi, Tokyo, china; maintained by CVSup Administrator.
Updated every 3 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup.tw.OpenBSD.org

located at National Chiao-Tung University, Taiwan; maintained by Ying-Chieh Liao.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
wiretapped.net

located in Sydney Australia; maintained by Grant Bayley.
Updated every 6 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
mirror.osn.de

located in Germany maintained by Armin Wolfermann.
Updated every 4 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup2.de.openbsd.org

also known as openbsd.informatik.uni-erlangen.de.
located at the University of Erlangen, Germany; maintained by Alexander von Gernler and Christian Kollee.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup.bg.openbsd.org

located in Plovdiv, Bulgaria, maintained by Ventsislav Velkov.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup.open.bsd.lv

located in Riga, Latvia; maintained by Peter Dunaskin.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
rudy.mif.pg.gda.pl

located at the Gdansk University of Technology, Poland; maintained by Lukasz Sztachanski.
Updated every 2 hours.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
mirror.public-internet.co.uk

located at London, UK; maintained by Tom Beard.
Updated every 2 hours from cvsup2.de.openbsd.org.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories
cvsup.openbsd.nu

located in Stockholm, Sweden; maintained by Kent Riboe.
Updated every 3 hours from cvsync.de.openbsd.org.

Available collections:

OpenBSD-src - The src repository
OpenBSD-ports - The ports repository
OpenBSD-www - The www repository
OpenBSD-x11 - The XFree86-3 repository
OpenBSD-xf4 - The XFree86-4 repository
OpenBSD-all - All OpenBSD repositories

说明:如果你列在这里的服务器信息不准确或者不完全,请联系beck@openbsd.orgbrian@openbsd.org

你可能想用traceroute(8) 来找出距离你最近的服务器.若发现服务器的问题请报告给我们的维护人员.

当前 (截止 August 21, 2006),CVS库大小为:

OpenBSD-ports - 222MB
OpenBSD-src - 1396MB
OpenBSD-www - 247MB
OpenBSD-x11 - 200MB
OpenBSD-xf4 - 562MB
对于CVSROOT目录,需要额外的408MB开销.这个库的大小现在以大约每年400MB的速率增长.

重要说明: 有一些与密码学软件相关的问题每个人都应该注意的:

OpenBSD计划在寻求更多的CVSup服务器--如果你感兴趣,请联系 www@openbsd.org了解配置细节.


OpenBSD www@openbsd.org
$OpenBSD: cvsup.html,v 1.4 2007/02/14 19:01:56 jufi Exp $