From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 21:33:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41CB816A4CE for ; Thu, 26 Aug 2004 21:33:00 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F74C43D4C for ; Thu, 26 Aug 2004 21:32:59 +0000 (GMT) (envelope-from itetcu@apropo.ro) Received: (qmail 1301 invoked by uid 89); 26 Aug 2004 21:32:58 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 26 Aug 2004 21:32:58 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id 9D4FD2EC; Fri, 27 Aug 2004 00:32:55 +0300 (EEST) Date: Fri, 27 Aug 2004 00:32:54 +0300 From: Ion-Mihai Tetcu To: kstewart Message-Id: <20040827003254.5e85ec6a@it.buh.tecnik93.com> In-Reply-To: <200408261348.19808.kstewart@owt.com> References: <200408260007.26659.krinklyfig@spymac.com> <200408260228.47205.kstewart@owt.com> <200408261315.24610.krinklyfig@spymac.com> <200408261348.19808.kstewart@owt.com> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: krinklyfig@spymac.com cc: FreeBSD-Questions@freebsd.org Subject: Re: crontab question involving cvsup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 21:33:00 -0000 On Thu, 26 Aug 2004 13:48:19 -0700 kstewart wrote: > On Thursday 26 August 2004 01:15 pm, Joshua Tinnin wrote: > > On Thursday 26 August 2004 02:28 am, kstewart > > wrote: > > > On Thursday 26 August 2004 01:09 am, Joshua Tinnin wrote: > > > > On Thursday 26 August 2004 12:42 am, epilogue > > > > wrote: > > > > > On Thu, 26 Aug 2004 00:07:26 -0700 > > > > > Joshua Tinnin wrote: > > > cd /usr/ports > > > # > > > # make bzip2 backup and save 4 old ones for the days when make > > > index# is broken > > > # > > > rm INDEX.3.bz2 > > > mv INDEX.2.bz2 INDEX.3.bz2 > > > mv INDEX.1.bz2 INDEX.2.bz2 > > > mv INDEX.0.bz2 INDEX.1.bz2 > > > bzip2 -c INDEX > INDEX.0.bz2 > > > # > > > # get new INDEX > > > #make index 2>&1 | tee /var/log/build/make-index-`date > > > "+%Y%m%d-%H%M"`.log portindex 2>&1 | tee > > > /var/log/build/make-index-`date "+%Y%m%d-%H%M"`.log # > > > #fetch www.freebsd.org/ports/INDEX > > > #chmod 644 INDEX > > > portsdb -u I'm using the same approach, although the script is different and (on the "master" machine) it also parse the cvsup output for distinfo and does a make fech and make checksum in the ports, plus saves the failed fetch ports to retry to re-fetch them. One thing you might want to add is -l flag to cvsup so if the cvsup process fails (e.g. rejected by server: Access limit .. ) you don't end up with 2 cvsup running in the same time. [ ... ] > The output from a cron job can be pretty verbose at times and it all > ends up as an email. I typically run uports at 4am and 4pm. My cvsup > mirror is updated on the odd hours. Until I started using portindex, I > used a job that just did the cvsup section and created the html. I > would fetch a local copy of INDEX and INDEX.db from my test machine. > That way only one machine spent the time creating INDEX. > > At this point, the test machine is using xorg-* and I have dropped my > normal machine back to using XFree86. So, I have to create INDEX on > both machines. There is a situation when xorg and KDE loses track of > what keyboard and layout you are using. KDE switched into using some > form of Greek. At least the letters appear to be from the Greek > alphabet :). I usually find it better to build index on all machines, since they have different ports installed and *_DEPENDS may differ largely; this make portversion happy. -- IOnut Unregistered ;) FreeBSD "user"