From owner-freebsd-stable@FreeBSD.ORG Mon Jun 27 13:15:39 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF83216A41C for ; Mon, 27 Jun 2005 13:15:39 +0000 (GMT) (envelope-from phorechuk@docucom.ca) Received: from smtp5-server95.ilap.com (smtp5-server95.ilap.com [216.223.130.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id A42B743D5F for ; Mon, 27 Jun 2005 13:15:39 +0000 (GMT) (envelope-from phorechuk@docucom.ca) Received: from [165.215.248.116] ([216.223.150.66]) by smtp5-server95.ilap.com (8.13.1/8.13.1/S5 - Internet Light and Power (tm) * http://ilap.com/ (tm)) with ESMTP id j5RDFJwa021035; Mon, 27 Jun 2005 09:15:19 -0400 (EDT) Message-ID: <42BFFBDF.1000400@docucom.ca> Date: Mon, 27 Jun 2005 09:15:11 -0400 From: Paul Horechuk Organization: DocuCom Imaging Solutions User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050518 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= References: <42BEF3C8.2000902@t-hosting.hu> In-Reply-To: <42BEF3C8.2000902@t-hosting.hu> Content-Type: multipart/mixed; boundary="------------060906010005030203000701" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Maher Mohamed , freebsd-stable@freebsd.org Subject: Re: auto cvsup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: phorechuk@docucom.ca List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2005 13:15:40 -0000 This is a multi-part message in MIME format. --------------060906010005030203000701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit There is another alternative to just doing the cvsup... Kövesdán Gábor wrote: > Maher Mohamed wrote: > >> how can i upgrade my cvsup weekly with an auto way? >> >> >> > You should use crondaemon. Place the following line to the end of > /etc/crontab: > > 15 4 * * 6 root cvsup /some/path/to/supfile > > The number six represents the sixth day of the week, the 15 is the > minute number and the second is the hour, thus this will run on every > Friday (if I remember correctly, I'm not sure the numbering starts with > Sunday) at 4:15. This is an essential part, but I decided to take the next step. Not only do I get the updated cvsup, but I check for changes... cvsup -l (as root) 0 21 * * * /usr/local/bin/getupdates > /var/log/updates.log 2> /tmp/updates.err This runs daily at 9pm with a log of the activity in /var/log/updates.log and an error report in /tmp/updates.err getupdates: (set this as executable chmod 755) #!/bin/sh # get the updated sources cd /usr/src /usr/local/bin/cvsup -g stable-supfile # get the updated ports tree cd /usr/ports /usr/local/bin/cvsup -g ports-supfile # get the updated ports index make fetchindex # rebuild the list of changes, i.e. ports that have updates available /usr/sbin/pkg_version -v | grep "<" > updates exit 0 In the morning I simply go to the ports directory and issue: more updates to find out which ports have been affected. I can then use portupgrade as required. As a bonus, I can also run getupdates at any time to recheck the updates. > > Cheers, > > Gábor Kövesdán > --------------060906010005030203000701--