From owner-freebsd-hubs@FreeBSD.ORG Thu Feb 21 18:46:13 2008 Return-Path: Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBA0216A402 for ; Thu, 21 Feb 2008 18:46:13 +0000 (UTC) (envelope-from wright@pair.com) Received: from smx.pair.com (smx.pair.com [209.68.1.56]) by mx1.freebsd.org (Postfix) with SMTP id 6584213C447 for ; Thu, 21 Feb 2008 18:46:13 +0000 (UTC) (envelope-from wright@pair.com) Received: (qmail 53074 invoked by uid 1033); 21 Feb 2008 18:19:31 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 21 Feb 2008 18:19:31 -0000 Date: Thu, 21 Feb 2008 13:19:31 -0500 (EST) From: Dan Wright To: freebsd-hubs@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Looking for help setting up mirrors. X-BeenThere: freebsd-hubs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD Distributions Hubs: mail sup ftp" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 18:46:13 -0000 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