1 OpenBSD µÄ CVS ·þÎñÆ÷
\r
2 http://www.openbsd.org/cvsync.html
\r
3 http://openbsd.org/anoncvs.html
\r
6 cvs -q -d anoncvs@anoncvs3.usa.openbsd.org:/cvs up -dP -r OPENBSD_4_2
\r
7 cvs -q -d anoncvs@anga.funkfeuer.at:/cvs up -dP -r OPENBSD_4_2
\r
8 cvs -q -d anoncvs@mirror.osn.de:/cvs up -dP -r OPENBSD_4_2
\r
9 cvs -q -d anoncvs@anoncvs1.usa.openbsd.org:/cvs up -dP -r OPENBSD_4_2
\r
12 anoncvs3.usa.openbsd.org 23/385 14/250 Updated every 2 hours.
\r
13 anga.funkfeuer.at 18/565 13/355 Updated every 2 hours from anoncvs1.usa.openbsd.org.
\r
14 mirror.osn.de 24/544 15/548 Updated every 4 hours from anoncvs1.usa.openbsd.org.
\r
15 anoncvs1.usa.openbsd.org 19/548 14/571 Updated every 2 hours.
\r
17 The OpenBSD Project currently has four active source repositories:
\r
18 openbsd-src - Houses all source code for the OpenBSD Operating System.
\r
19 openbsd-ports - Houses the OpenBSD Ports.
\r
20 openbsd-xenocara - Houses OpenBSD's in-development X.org v7 tree.
\r
24 cvs -q -d anoncvs@anoncvs3.usa.openbsd.org:/cvs
\r
29 Pre-loading the tree: src.tar.gz, sys.tar.gz, ports.tar.gz, xenocara.tar.gz
\r
30 ftp://ftp.openbsd.org/pub/OpenBSD/4.2/ports.tar.gz 12M
\r
31 ftp://ftp.openbsd.org/pub/OpenBSD/4.2/src.tar.gz 102M
\r
32 ftp://ftp.openbsd.org/pub/OpenBSD/4.2/sys.tar.gz 17M
\r
33 ftp://ftp.openbsd.org/pub/OpenBSD/4.2/xenocara.tar.gz 98M
\r
35 tar xzf -C /usr/src sys.tar.gz
\r
36 tar xzf -C /usr/src src.tar.gz
\r
37 tar xzf -C /usr ports.tar.gz
\r
38 tar xzf -C /usr xenocara.tar.gz
\r
40 [cauchy@bsd42 ~/wc/cvs/openbsd]$ du -ms *
\r
46 Update the source code
\r
49 cd /home/cauchy/wc/cvs/openbsd/ports
\r
51 for i in ports src xenocara www; do
\r
53 echo "[`date -u`] Start update ..." >>update.log
\r
54 #cvs -q -d anoncvs@anoncvs3.usa.openbsd.org:/cvs up -dPA -r OPENBSD_4_2 2>&1 >>update.log
\r
55 cvs -q -d anoncvs@anoncvs3.usa.openbsd.org:/cvs up -dPA 2>&1 >>update.log
\r
56 echo "[`date -u`] End update ..." >>update.log
\r
61 # cd /usr/src/sys/arch/i386/conf
\r
63 # cd ../compile/GENERIC
\r
64 # make clean && make depend && make
\r
65 [...lots of output...]
\r
68 Building the userland
\r
69 * Clear your /usr/obj directory and rebuild symbolic links:
\r
74 Note that the use of the /usr/obj directory is mandatory. Failing to do this step before building the rest of
\r
75 the tree will likely leave your src tree in bad shape.
\r
77 * Make sure all the appropriate directories are created.
\r
78 # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
\r
84 This compiles and installs all the "userland" utilities in the appropriate order. This is a fairly time
\r
85 consuming step -- a very fast machine may be able to complete it in well under an hour, a very slow machine may take
\r
86 many days. When this step is complete, you have newly compiled binaries in place on your system.
\r
88 * If building -current: Update /dev and /etc, with the changes listed in current.html. If following -stable after
\r
89 a proper upgrade process or a install of the proper starting binary, this step is not needed or desired.
\r
92 # cd /usr/src/xenocara
\r
97 What is the best way to update /etc, /var, and /dev?
\r
102 # cvs diff -u -rOPENBSD_4_1 -rOPENBSD_4_2
\r
105 # cp /usr/src/etc/etc.`machine`/MAKEDEV ./
\r
108 Typical /etc changes to watch out for between releases include:
\r
109 * Additions to /etc/protocols and /etc/services
\r
110 * New sysctls (see /etc/sysctl.conf)
\r
111 * Changes to the default cron jobs. See /etc/daily, /etc/weekly, /etc/monthly, and /etc/security
\r
112 * All rc scripts, including netstart
\r
113 * Device changes, see above
\r
114 * File hierarchy changes in /etc/mtree, see below
\r
115 * New users (/etc/passwd) and groups (/etc/group)
\r
119 ACCEPT_JRL_LICENSE=Yes
\r
120 WRKOBJDIR=/usr/ports/obj
\r
121 DISTDIR=/usr/ports/distfiles
\r
122 PACKAGE_REPOSITORY=/usr/ports/packages
\r
127 XSRCDIR=/usr/src/xenocara
\r
132 # NLSDIR=/usr/share/nls
\r
133 # /usr/src/lib/libc/nls/zh.msg
\r
135 OpenBSD layout of filesystems
\r
136 http://www.openbsd.org/cgi-bin/man.cgi?query=hier&sektion=7
\r