CVSup distrib.self and static references to /home/ncvs

Brian A. Seklecki bseklecki at collaborativefusion.com
Fri Oct 10 19:14:03 UTC 2008


All:

[Not sure if this is more of a freebsd-questions@ topic; didn't want to
   cross-post, though]

So in setting up a new mirror, I noticed that the "distrib" collection
is setup to write to dir ${BASEDIR}/prefixes/distrib.self, and
distrib.self/ is a symlink to ../

Thus, prefixes/distrib/sup/*, which I guess is a set of server
collection configuration files, becomes a subdir of ${BASEDIR}.  Fair
enough.

For actual data, the fetch/update script included with FreeBSD, by
default, fetches into ${BASEDIR}/prefixes/[collection], which is
normally a symlink to /home/ncvs.

Obviously, if you wanted to customize the file system layout, symlink
arrangements, and the associated update script, that wouldn't be an
issue.

The problem seems to be that the the cvsupd(8) setup instructions tell
the admin to run cvsupd(8) -s with ${BASEDIR}/sup.client and -c
${BASEDIR}, which then looks in ${BASEDIR}/sup for collection
configuration files.

Each of these files reference a prefix relative ${BASEDIR}/prefixes, but
also have a static path to /home/ncvs.

$ more sup/src-usrbin/releases 
cvs list=list.cvs prefix=prefixes/FreeBSD.cvs keywordprefix=/home/ncvs
super=src-all

So it seems that /home/ncvs is the default in:  
  ports/net/cvsup-mirror/scripts/configure:ask_distrib

Anyway, my point is this:

  Even if you change this locally in your client supfile and refresh
  your collections, you'd still have to maintain /home/ncvs as a symlink
  to wherever your local prefix=/ is and/or have a post-update script
  that recursively replaces instances of /home/nbsd.


-- 
Brian A. Seklecki <bseklecki at collaborativefusion.com>
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.




More information about the freebsd-hubs mailing list