¤p»Ê
¸ó°Ïª©¥D

µù¥U®É¶¡: 2002-09-09 ¤å³¹: 982 ¨Ó¦Û: ¥xÆW¥x¥_
|
µoªí©ó: ¬P´Á¤T ¤T¤ë 17, 2004 5:26 pm ¤å³¹¥DÃD: [±Ð¾Ç]¥Î cvsup-mirror ¬[³] CVSup Server (mirror site) |
|
|
¥Î cvsup-mirror ¬[³] CVSup Server (mirror site)
¦pªG§A¦³¦h¥x¹q¸£n°µ cvsup ªº°Ê§@¡A
¥i¥H¥ý±N¤@¥x¹q¸£°µ cvsup mirror
¨Ã±Ò°Ê cvsupd¡Aª½±µ´£¨Ñ¨ä¥¦ client ºÝ cvsup ªºªA°È
¦Ó client ºÝn§ó·s®É¡A¥un³]©w³s±µ¨ì cvsupd ³o¤@¥x server ªººô¸ô¦ì¸m´N¥i¥H¤F
ª`·N¡IÀx¦s®e¶q³Ì¦n¯à¤j©ó 5GB (¬Æ¦Ü§ó¦h) ·|¤ñ¸û§´·í¡C
¦ý¡A¦pªG§A cvsup §ó·s FreeBSD ªºª©¥»Àɮ׳£¤@¼Ëªº¸Ü¡A
¨º¥i¯à¥ý¥Î¤@¥x¹q¸£¥hºô¸ô cvsup §ó·s¡A¦A³z¹L nfs ¨Ó¤À¨É·|¤ñ¸û¬Ù¨Æ
¤£¹L¦pªG¦³»Ýn§ó·s¦hºØª©¥»ªº¸Ü (¨Ò¦p¡G¦P®É¦³ 4.8¡B4.9¡B5.x ......ªº¾÷¾¹)
¨º¦Û¤w«Ø¤@¥x mirro¡A©Î³\·|¤ñ¸û¤è«K¡C
¦w¸Ë cvsup-mirror
$ cd /usr/ports/net/cvsup-mirror
$ make install |
| ¥N½X: |
===> Vulnerability check disabled
===> Extracting for cvsup-mirror-1.3
===> Patching for cvsup-mirror-1.3
===> Configuring for cvsup-mirror-1.3
I am going to ask you a few questions so that I can set up your
FreeBSD mirror configuration. Every question has a [default]
answer. To accept the default, just press ENTER.
At this point, I am just gathering information. I will not touch
your system until you type "make install".
Master site for your updates [cvsup-master.freebsd.org]? cvsup.tw.freebsd.org
How many hours between updates of your files [1]? 8
Now you must decide which sets of files you wish to make available
from your mirror site. You can choose any combination, and you
can put each set anywhere you want to on your disks. Although each
set is optional, we strongly encourage every mirror site to carry
at least the main source repository.
Do you wish to mirror the main source repository [y]? y
Where would you like to put it [/home/ncvs]? /FreeSpace/ncvs
Do you wish to mirror the installed World Wide Web data [y]? y
Where would you like to put it [/usr/local/www]? /FreeSpace/www
Do you wish to mirror the GNATS bug tracking database [y]? y
Note: the location for this must match "*/gnats", and
"gnats" must be a true subdirectory, not a symbolic link.
Where would you like to put it [/home/gnats]? /FreeSpace/gants
The location must match "*/gnats"
Where would you like to put it [/home/gnats]? /FreeSpace/gnats
Do you wish to mirror the mailing list archive [y]? y
Where would you like to put it [/home/mail]? /FreeSpace/mail
Now, a few questions so that I can set up your CVSup server properly.
For security reasons, both the CVSup client and server should run
under their own unique user and group IDs. These IDs should have no
special access privileges. Normally, the user:group "cvsupin:cvsupin"
is used for the client and "cvsup:cvsup" is used for the server, but
you can choose other names if you wish. At "make install" time, I
will create the users and groups, if they don't already exist.
Use unique user and group IDs for these. Do not use "nobody",
"nonroot", or "nogroup".
Unique unprivileged user ID for running the client [cvsupin]?
Unique unprivileged group ID for running the client [cvsupin]?
Unique unprivileged user ID for running the server [cvsup]?
Unique unprivileged group ID for running the server [cvsup]?
The CVSup server does its logging via syslog. At "make install"
time, I will set up the logging for you, if necessary. I will use
the "!program" feature of syslog to keep your CVSup log messages
separate from the messages of your other daemons.
Syslog facility for the server log [daemon]?
You can control the load on your machine by limiting the number of
clients that the CVSup server will serve at once. CVSup won't load
your network especially heavily, but it is more CPU and disk
intensive than most other file server software.
Maximum simultaneous client connections [8]? 4
Building the "config.sh" file ... Done.
Building the "cvsupd.access" file ... Done.
===> Installing for cvsup-mirror-1.3
===> cvsup-mirror-1.3 depends on file: /usr/local/sbin/cvsupd - found
===> Generating temporary packing list
===> Checking if net/cvsup-mirror already installed
Installing files
You need a group "cvsup".
Would you like me to create it [y]? y
Done.
You need a user "cvsup".
Would you like me to create it [y]? y
Done.
You need a group "cvsupin".
Would you like me to create it [y]? y
Done.
You need a user "cvsupin".
Would you like me to create it [y]? y
Done.
Would you like me to create cvsupin's home directory (/home/cvsupin) [y]? /FreeSpace/cvsupin
Fixing ownerships and modes in "/usr/local/etc/cvsup".
Setting up links and directories for distributions.
Linking distrib.self -> ..
Linking FreeBSD.cvs -> /FreeSpace/ncvs
Fixing ownerships and modes in /FreeSpace/ncvs ... done.
Linking FreeBSD-www.current -> /FreeSpace/www
Fixing ownerships and modes in /FreeSpace/www ... done.
Linking FreeBSD-gnats.current -> /FreeSpace
Fixing ownerships and modes in /FreeSpace/gnats ... done.
Linking FreeBSD-mail.current -> /FreeSpace/mail
Fixing ownerships and modes in /FreeSpace/mail ... done.
Would you like me to set up the syslog logging [y]? y
Setting up server logging in "/etc/syslog.conf".
Creating "/var/log/cvsupd.log".
Giving syslogd a kick in the pants.
Adding cvsupd log entry to "/etc/newsyslog.conf".
Done.
Would you like me to set up your crontab for updates every 8 hours [y]? y
Scheduling updates every 8 hours in "/etc/crontab".
Done. The first update will be 5 minutes from now, at 15:48.
The cvsupd server will be started automatically after the first update,
and whenever you reboot.
You are now a FreeBSD mirror site.
===> Registering installation for cvsup-mirror-1.3 |
§ÚÌ·|µo²{¦b /etc/crontab ¤¤³Q¥[¤J¤F¤@µ§
48 7-23/8 * * * root /usr/local/etc/cvsup/update.sh
³o¥Nªí¦b 7-23 ªº 48 ¤À¡A¶¡¨C¹j 8 ¤p®É·|¦Û°Ê°õ¦æ¤@¦¸ /usr/local/etc/cvsup/update.sh
¨Ó mirror ¸ê®Æ
nª`·Nªº¬O¡Aªì¦¸ mirror ¤§«á¡A©Ò¦û¥ÎªºªÅ¶¡´N¦³ 4.1 GB ¥H¤W
©Ò¥H¦b¦w¸Ë®É©Ò«ü©wªº¸ô®|¡A®e¶q³Ì¦n¯à¤j©ó 5GB (¬Æ¦Ü§ó¦h) ·|¤ñ¸û§´·í¡C
´£¨Ñ cvsup ªA°È & §ó·s ports-tree¡Bsrc-tree
========================================
A ¹q¸£ (ip: 192.168.1.68) <== Local ªº CVSup Server
±Ò°Ê cvsupd (¥i¶}¾÷±Ò°Ê)
| $ /usr/local/etc/rc.d/cvsupd.sh start |
B ¹q¸£ (ip: 192.168.1.100) <== CVSup Client
·s¼W¤@Ó cvsup ªº³]©wÀÉ (³oùجO ports ¸ò src ¦X¨Öªº³]©wÀÉ)
µù¡G³]©wÀÉ¥i°Ñ¦Ò /usr/share/examples/cvsup/ ¤ºªºÀÉ®×
| ¥N½X: |
*default host=192.168.1.68
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
*default compress
src-all
ports-all tag=. |
µù¡G³o¬O ports ¤Î stable ªº src
·íµM§A¥i¥H§â ports ¸ò src ªº³]©wÀɤÀ¶}
| ¥N½X: |
*default host=192.168.1.68
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all |
| $ vi lan_cvsup_src_stable |
³o¬O stable ªº¼gªk
| ¥N½X: |
*default host=192.168.1.68
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
*default compress
src-all |
| $ vi lan_cvsup_src_standard |
³o¬O standard ªº¼gªk
| ¥N½X: |
*default host=192.168.1.68
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
src-all |
¦P®É§ó·s ports-tree ¤Î src-tree
| $ cvsup -g -L 2 lan_cvsup |
¦¹®É B ¹q¸£´Nª½±µ±q A ¹q¸£¨ú±o cvsup ªº²M³æÅo
¦pªG§A«á¨Óµo²{¦³¨ä¥¦ªº cvsup server ¸ò§A cvsup mirror ³s½u³t«×¸û§Ö
¥i¥H¥h×§ï A ¹q¸£ªº /usr/local/etc/cvsup/config.sh
¨ä¤¤ªº
| ¥N½X: |
| host="cvsup.tw.freebsd.org" |
´«¦¨³t«×¸û§Öªº¥~³¡ cvsup server ´N¦æ¤F |
_________________ ¥Í®ð¡A´N¬O®³§O¤Hªº¹L¿ù¨ÓÃg»@¦Û¤v
~ÃÒÄYªk®v ÀR«ä»y~
¢X¡ï¢X¡O¡¸¢X¡D¡O¡E¢X¡ï¢X¡O¢X¡D¡O¡E¢X¡ï¢X¡O
¡O¡E¢X¡ï¢X¡O¡¸¢X¡D¡O¡E¢X¡ï¢X¡O¢X¡D¡O¡E¢X¡ï¢X¡O¡O¡E¢X¡ï¢X¡O¡¸¢X¡D¡O¡E |
|