1995-04-28 16:19:59 +00:00
|
|
|
<!--
|
|
|
|
# This is the sgml version of the ctm.FAQ file.
|
|
|
|
#
|
1996-01-31 14:26:20 +00:00
|
|
|
# Converted by Ollivier Robert <roberto@FreeBSD.ORG>
|
1995-04-28 16:19:59 +00:00
|
|
|
#
|
1997-01-14 07:20:47 +00:00
|
|
|
# $FreeBSD$
|
1995-04-28 16:19:59 +00:00
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# "THE BEER-WARE LICENSE" (Revision 42):
|
|
|
|
# <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
|
|
|
|
# can do whatever you want with this stuff. If we meet some day, and you think
|
|
|
|
# this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
-->
|
|
|
|
|
1995-06-30 17:37:53 +00:00
|
|
|
<sect><heading>CTM<label id="ctm"></heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
|
|
|
|
<p><em>Contributed by &a.phk;. Updated 16-Mar-1995.</em>
|
|
|
|
|
|
|
|
<tt/CTM/ is a method for keeping a remote directory tree in sync with a
|
|
|
|
central one. It has been developed for usage with FreeBSD's source
|
|
|
|
trees, though other people may find it useful for other purposes as
|
|
|
|
time goes by. Little, if any, documentation currently exists at
|
|
|
|
this time on the process of creating deltas, so talk to &a.phk;
|
|
|
|
for more information should you wish to use <tt/CTM/ for other things.
|
|
|
|
|
1995-08-29 01:42:52 +00:00
|
|
|
<sect1><heading>Why should I use <tt/CTM/?</heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
<p><tt/CTM/ will give you a local copy of the ``FreeBSD-current''
|
|
|
|
sources. If you are an active developer on FreeBSD, but have lousy
|
|
|
|
or non-existent TCP/IP connectivity, <tt/CTM/ was made for you.
|
|
|
|
You will need to transfer up to four deltas per day (or you can
|
|
|
|
have them arrive in email automatically), the sizes for which are
|
|
|
|
always kept as small as possible. This is typically less than 5K,
|
|
|
|
with the occasional (one in ten) being 10-50K and every now and
|
|
|
|
then a biggie of 100K+ or more coming around.
|
|
|
|
|
|
|
|
You will also need to make yourself aware of the various caveats in
|
|
|
|
running ``current'' sources, and for this it is recommended that
|
1995-07-06 14:25:01 +00:00
|
|
|
you read <ref id="current" name="Staying current with FreeBSD">.
|
1995-04-28 16:19:59 +00:00
|
|
|
|
1995-08-29 01:42:52 +00:00
|
|
|
<sect1><heading>What do I need to use <tt/CTM/?</heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
|
|
|
|
<p>You will need two things: The ``<tt/CTM/'' program and the initial
|
|
|
|
deltas to feed it (to get up to ``current'' levels).
|
|
|
|
|
1995-10-16 09:11:22 +00:00
|
|
|
The <tt/CTM/ program has been part of FreeBSD ever since version 2.0
|
|
|
|
was released, and lives in <tt>/usr/src/usr.sbin/<tt/CTM/</tt> if you
|
|
|
|
have a copy of the source online.
|
|
|
|
|
|
|
|
If you are running a pre-2.0 version of FreeBSD, you can fetch the
|
1995-04-28 16:19:59 +00:00
|
|
|
current <tt/CTM/ sources directly from:
|
|
|
|
|
|
|
|
<url
|
1996-05-09 23:04:53 +00:00
|
|
|
url="ftp://ftp.FreeBSD.ORG/pub/FreeBSD/FreeBSD-current/src/usr.sbin/ctm">
|
1995-04-28 16:19:59 +00:00
|
|
|
|
1995-10-16 09:11:22 +00:00
|
|
|
The ``deltas'' you feed <tt/CTM/ can be had two ways, FTP or e-mail.
|
|
|
|
If you have general FTP access to the Internet then the following
|
|
|
|
FTP sites support access to <tt/CTM/:
|
1995-04-28 16:19:59 +00:00
|
|
|
|
|
|
|
<url url="ftp://freefall.cdrom.com/pub/CTM">
|
|
|
|
|
1996-08-17 23:51:45 +00:00
|
|
|
or see section <ref id="mirrors-ctm" name="mirrors">.
|
1996-08-04 22:41:09 +00:00
|
|
|
|
1995-10-16 09:11:22 +00:00
|
|
|
FTP the relevant directory and fetch the <tt/README/ file,
|
1995-04-28 16:19:59 +00:00
|
|
|
starting from there.
|
|
|
|
|
|
|
|
If you only have access to electronic mail or are otherwise blocked
|
1995-10-16 09:11:22 +00:00
|
|
|
from using FTP then you may wish to get your deltas via email:
|
1995-04-28 16:19:59 +00:00
|
|
|
|
1996-05-16 23:18:28 +00:00
|
|
|
Send email to &a.majordomo to subscribe to
|
1995-04-28 16:19:59 +00:00
|
|
|
the list ``ctm-src-cur''. (If you do not know how to subscribe
|
|
|
|
yourself using majordomo, send a message first containing the
|
1995-10-16 09:11:22 +00:00
|
|
|
word ``help'' - it will send you back usage instructions.)
|
1995-04-28 16:19:59 +00:00
|
|
|
|
|
|
|
When you begin receiving your <tt/CTM/ updates in the mail, you may
|
1995-10-16 09:11:22 +00:00
|
|
|
use the <tt/ctm_rmail/ program to unpack and apply them. You
|
1995-04-28 16:19:59 +00:00
|
|
|
can actually use the <tt/ctm_rmail/ program directly from a entry
|
1995-10-16 09:11:22 +00:00
|
|
|
in <tt>/etc/aliases</tt> if you want to have the process run in a
|
|
|
|
fully automated fashion. Check the <tt/ctm_rmail/ man page for more
|
|
|
|
details.
|
1995-04-28 16:19:59 +00:00
|
|
|
|
|
|
|
<bf/NOTE/: No matter what method you use to get the <tt/CTM/
|
1996-05-09 23:04:53 +00:00
|
|
|
deltas, you should subscribe to the <tt/ctm-announce@FreeBSD.ORG/
|
1995-10-16 09:11:22 +00:00
|
|
|
mailing list. In the future, this will be the only place where
|
|
|
|
announcements concerning the operations of the <tt/CTM/ system will be
|
1996-05-16 23:18:28 +00:00
|
|
|
posted. Send an email to &a.majordomo with a single
|
1995-04-28 16:19:59 +00:00
|
|
|
line of ``<tt/subscribe ctm-announce/'' to get added to the list.
|
|
|
|
|
1995-08-29 01:42:52 +00:00
|
|
|
<sect1><heading>Starting off with <tt/CTM/ for the first time</heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
<p>Before you can start using <tt/CTM/ deltas, you will need to get a
|
1995-10-16 09:11:22 +00:00
|
|
|
special ``base'' delta that provides the starting point for all
|
1995-04-28 16:19:59 +00:00
|
|
|
deltas produced subsequently to it.
|
|
|
|
|
|
|
|
You can recognize a base delta by the ``<tt/A/'' appended to the
|
|
|
|
number (<tt/src-cur.0341A.gz/ for instance). As a rule a base
|
|
|
|
delta is produced every 100 deltas, the next one will be
|
|
|
|
<tt/src-cur.0400A.gz/. By the way, they are large! 25 to 30
|
|
|
|
Megabytes of <tt/gzip/'ed data is common for a base delta.
|
|
|
|
|
|
|
|
If you do have the 2.0-RELEASE <tt/srcdist/, you can instead
|
1996-05-16 23:18:28 +00:00
|
|
|
retrieve the <tt/src-cur.0372R20.gz/ file, it is only 4Mb and it
|
1995-04-28 16:19:59 +00:00
|
|
|
will take you to current from the 2.0-RELEASE sources.
|
|
|
|
|
|
|
|
Once you've picked a base delta to start from, you will also need
|
|
|
|
all deltas with higher numbers following it.
|
|
|
|
|
1995-08-29 01:42:52 +00:00
|
|
|
<sect1><heading>Using <tt/CTM/ in your daily life</heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
<p>To apply the deltas, simply say
|
|
|
|
<verb>
|
|
|
|
cd /where/ever/you/want/the/stuff
|
|
|
|
ctm -v -v /where/you/store/your/deltas/src-cur.*
|
|
|
|
</verb>
|
|
|
|
<tt/CTM/ understands deltas which have been put through <tt/gzip/,
|
1996-05-16 23:18:28 +00:00
|
|
|
so you do not need to gunzip them first, this saves disk space.
|
1995-04-28 16:19:59 +00:00
|
|
|
|
|
|
|
Unless it feels very secure about the entire process, <tt/CTM/ will
|
1995-10-16 09:11:22 +00:00
|
|
|
not touch your tree. To verify a delta you can also use the
|
1996-05-16 23:18:28 +00:00
|
|
|
``<tt/-c/'' flag and <tt/CTM/ will not actually touch your tree; it will
|
1995-10-16 09:11:22 +00:00
|
|
|
merely verify the integrity of the delta and see if it would apply
|
|
|
|
cleanly to your current tree.
|
1995-04-28 16:19:59 +00:00
|
|
|
|
1995-10-16 09:11:22 +00:00
|
|
|
There are other options to <tt/CTM/ as well, look in the sources
|
|
|
|
for more details.
|
1995-04-28 16:19:59 +00:00
|
|
|
|
|
|
|
I would also be very happy if somebody could help with the ``user
|
1996-05-16 23:18:28 +00:00
|
|
|
interface'' portions, as I have realized that I cannot make up my
|
1995-04-28 16:19:59 +00:00
|
|
|
mind on what options should do what, how and when...
|
|
|
|
|
1996-01-31 14:26:20 +00:00
|
|
|
That's really all there is to it. Every time you get a new delta,
|
1995-10-16 09:11:22 +00:00
|
|
|
just run it through <tt/CTM/ to keep your sources up to date.
|
1995-04-28 16:19:59 +00:00
|
|
|
|
1996-05-16 23:18:28 +00:00
|
|
|
Do not remove the deltas if they are hard to download again. You
|
1995-04-28 16:19:59 +00:00
|
|
|
just might want to keep them around in case something bad happens.
|
|
|
|
Even if you only have floppy disks, consider using <tt/fdwrite/ to
|
|
|
|
make a copy.
|
|
|
|
|
|
|
|
|
1995-08-29 01:42:52 +00:00
|
|
|
<sect1><heading>Future plans for <tt/CTM/</heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
<p>
|
|
|
|
Tons of them:
|
|
|
|
<itemize>
|
|
|
|
<item>
|
|
|
|
Make local modifications to the tree possible. One way to do
|
|
|
|
it could be this:<p> When <tt/CTM/ wants to edit the file
|
|
|
|
``<tt>foo/bar.c</tt>'', it would first check for the existence
|
|
|
|
of <tt>foo/bar.c#CTM</tt> If this file exists, the delta is
|
|
|
|
applied to it instead. This way the <tt>foo/bar.c</tt> file
|
|
|
|
can be edited to suit local needs.
|
|
|
|
<item>
|
|
|
|
Make a ``restore file(s)'' option to <tt/CTM/, something like:
|
|
|
|
<verb>
|
|
|
|
ctm -r src/sys/i386/wd.c /here/are/my/deltas/src-cur.*
|
|
|
|
</verb>
|
|
|
|
would restore <tt/wd.c/ to the current status from the files.
|
|
|
|
<item>
|
|
|
|
Clean up the options to <tt/CTM/, they became confusing and
|
|
|
|
counter intuitive.
|
|
|
|
</itemize>
|
|
|
|
|
|
|
|
The bad news is that I am very busy, so any help in doing this will
|
1996-05-16 23:18:28 +00:00
|
|
|
be most welcome. And do not forget to tell me what you want also...
|
1995-04-28 16:19:59 +00:00
|
|
|
|
1995-08-29 01:42:52 +00:00
|
|
|
<sect1><heading>Miscellaneous stuff</heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
<p>
|
|
|
|
All the ``DES infected'' (e.g. export controlled) source is not
|
|
|
|
included. You will get the ``international'' version only. If
|
|
|
|
sufficient interest appears, we will set up a ``<tt/sec-cur/''
|
|
|
|
sequence too.
|
|
|
|
|
|
|
|
If you are a frequent or valuable contributor to FreeBSD, I will be
|
|
|
|
willing to arrange special services, one option is delivery via
|
|
|
|
<tt/ftp/ or <tt/rcp/ to a machine closer to you. You need to have
|
1996-12-31 21:54:24 +00:00
|
|
|
earned this, since it takes time to do, but I will be all the more
|
1995-04-28 16:19:59 +00:00
|
|
|
happy to do it for you then.
|
|
|
|
|
|
|
|
There is a sequence of deltas for the <tt/ports/ collection too,
|
|
|
|
but interest has not been all that high yet. Tell me if you want
|
1996-05-16 23:18:28 +00:00
|
|
|
an email list for that too and we will consider setting it up.
|
1995-04-28 16:19:59 +00:00
|
|
|
|
1996-01-31 14:26:20 +00:00
|
|
|
If you have commit privileges or are similarly authorized by the
|
1995-04-28 16:19:59 +00:00
|
|
|
FreeBSD core team, you can also get access to the CVS repository
|
|
|
|
tree by the same means. Contact &a.phk;
|
|
|
|
for details.
|
|
|
|
|
|
|
|
|
1995-08-29 01:42:52 +00:00
|
|
|
<sect1><heading>Thanks!</heading>
|
1995-04-28 16:19:59 +00:00
|
|
|
<p>
|
|
|
|
<descrip>
|
1996-09-22 15:40:46 +00:00
|
|
|
<tag/&a.bde;/
|
1995-04-28 16:19:59 +00:00
|
|
|
for his pointed pen and invaluable comments.
|
1996-09-22 15:40:46 +00:00
|
|
|
<tag/&a.sos;/
|
|
|
|
for patience.
|
1995-04-28 16:19:59 +00:00
|
|
|
<tag/Stephen McKay/
|
|
|
|
wrote <tt/ctm_[rs]mail/, much appreciated.
|
1996-09-22 15:40:46 +00:00
|
|
|
<tag/&a.jkh;/
|
1995-04-28 16:19:59 +00:00
|
|
|
for being so stubborn that I had to make it better.
|
|
|
|
<tag/All the users/
|
|
|
|
I hope you like it...
|
|
|
|
</descrip>
|
|
|
|
|