Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2008 13:19:31 -0500 (EST)
From:      Dan Wright <wright@pair.com>
To:        freebsd-hubs@freebsd.org
Subject:   Looking for help setting up mirrors.
Message-ID:  <Pine.BSF.4.58.0802211302240.29577@smx.pair.com>

next in thread | raw e-mail | index | archive | help
Hello,

  I've inherited a project of getting our freebsd mirrors at pair Networks
operational again.    The old hardware that we had the mirror running on before
just wasn't cutting it anymore, so things had to be moved.  And unfortunately,
some stuff got lost along the way.   So, I'm starting nearly from scratch,
trying to set up a web mirror, public ftp site, and a cvsup server.

  I think I'm going to have many questions by the time I'm done, but I
promise I've done my best to do a thorough RTFM before asking anything.
I've read through the docs provided here several times:

  http://www.freebsd.org/doc/en_US.ISO8859-1/articles/hubs/index.html

  I've also searched for any HOWTO docs, read through the hubs mailing archive.
I've even read through some of the source code.   But either I'm being really
thick, or there just isn't much documentation on how to set all this stuff up.
Hopefully somebody here can help?

  My first issue is setting up the web site mirror.   I've written a little
Perl script that I thought would do the right thing for me.   Here's the
relevant bit:

my $web_vars = "DESTDIR=/u0/mirrors/FreeBSD/web-mirror WEBOWN=freebsd CGIOWN=freebsd";

system("/usr/local/bin/cvsup -g -z -L 1 /u0/mirrors/FreeBSD/www-supfile");
chdir('/u0/mirrors/FreeBSD/www');
system("/usr/bin/make $web_vars");


Here's the contents of my supfile:

*default        host=cvsup16.us.freebsd.org
*default        base=/u0/mirrors/FreeBSD
*default        prefix=/u0/mirrors/FreeBSD
*default        release=cvs tag=.
*default        delete use-rel-suffix
www
doc-all

  So, what I was expecting to happen is that when all of this done, I'd
have a mirror of the site set up, and I could point the document root
in apache to /u0/mirrors/FreeBSD/web-mirror, and I'd be good to go.

  Unfortunately, if you take a look at http://freebsd.mirrors.pair.com/
right now, you can see that it isn't working.   In fact, as everything
is building, that index page keeps changing.   It makes me think that
DESTDIR doesn't do what I think it does.   Can anybody provide any
guidance on what my next step is?

  By the way, when all of this is done and working, I'd be glad to write
up a mini-howto so the next person doesn't need to go through all this
pain.  That is assuming one doesn't already exist that I missed somewhere.

Thanks,
-Dan


Daniel J. Wright                           wright@pair.com
Lead Software Developer, pairNIC   https://www.pairnic.com
pair Networks, Inc.                    http://www.pair.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.58.0802211302240.29577>