一.NetBSD
到目錄/congli/cvsd/NetBSD,建cvs-supfile,內容如下:
*default host=cvsup.us.NetBSD.org *default base=/congli/cvsd/NetBSD *default prefix=/congli/cvsd/NetBSD *default release=cvs *default delete use-rel-suffix *default compress netbsd
選擇一個較快的站點下載源碼:
http://www.netbsd.org/mirrors/#cvsup
下載源碼:
# su - congli # cd /congli/cvsd/NetBSD # cvsup -gL2 cvs-supfile
注:下載源碼時間長短視網速而定,整個源碼庫大概需要3.8GB左右,包含src,pkgsrc等.
二.OpenBSD:
到目錄/congli/cvsd/OpenBSD,建cvs-supfile,內容如下:
# 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=/congli/cvsd/OpenBSD *default prefix=/congli/cvsd/OpenBSD # 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
選擇一個較快的站點下載源碼:
http://www.openbsd.org/cvsup.html
下載源碼:
# su - congli # cd /congli/cvsd/NetBSD # cvsup -gL2 cvs-supfile
注:下載源碼時間長短視網速而定,整個源碼庫大概需要2.6GB左右,包含src,ports,x11等.
到此,所需要的源碼已經在本機上,搭配cvsd即可對外提供服務