From owner-freebsd-ports Thu Apr 20 21:45:59 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18]) by hub.freebsd.org (Postfix) with ESMTP id D490B37B522; Thu, 20 Apr 2000 21:45:55 -0700 (PDT) (envelope-from knu@idaemons.org) Received: from daemon.local.idaemons.org (203-165-77-40.sugnm1.kt.home.ne.jp [203.165.77.40]) by ms.tokyo.jcom.ne.jp (8.9.1/3.7W 04/18/00) with ESMTP id NAA21646; Fri, 21 Apr 2000 13:45:19 +0900 (JST) Received: by daemon.local.idaemons.org (8.9.3/3.7W) id NAA06560; Fri, 21 Apr 2000 13:44:47 +0900 (JST) Date: Fri, 21 Apr 2000 13:44:46 +0900 Message-ID: <86og74jc5d.wl@localhost.local.idaemons.org> From: "Akinori -Aki- MUSHA" To: jdp@polstra.com Cc: ports@freebsd.org, kuriyama@freebsd.org Subject: Re: Speed up cvsup-mirror! In-Reply-To: In your message of "Wed, 19 Apr 2000 09:07:06 -0700 (PDT)" <200004191607.JAA02678@vashon.polstra.com> References: <86aeiqdydg.wl@localhost.local.idaemons.org> <200004191607.JAA02678@vashon.polstra.com> User-Agent: Wanderlust/1.1.1 (Purple Rain) EMIKO/1.13.12 (Euglena sociabilis) FLIM/1.13.2 (Kasanui) APEL/10.2 MULE XEmacs/21.1 (patch 9) (Canyonlands) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 1BEF D9B2 BABD 25D7 659A FD08 89C2 F3BE E981 4E16 MIME-Version: 1.0 (generated by EMIKO 1.13.12 - "Euglena sociabilis") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At Wed, 19 Apr 2000 09:07:06 -0700 (PDT), John Polstra wrote: > I (the maintainer and author of the port) don't want the -s switch > to be turned on by default. The port is mainly intended for public > FreeBSD mirror sites. It is important that such mirror sites get a > perfectly accurate mirror before allowing the files to be fetched by > the general public. The -s flag is risky and it is susceptible to the > kinds of HW/SW problems that are common on newly configured machines. > Because of that, I ask the mirror site maintainers to enable the > -s option only after the mirror has been running stably for awhile > without it. I see. Now then, how about the following change? It does not change the default behavior while it lets users have options to pass CVSup any command line options such as `-s': Index: files/update.sh =================================================================== RCS file: /home/ncvs/ports/net/cvsup-mirror/files/update.sh,v retrieving revision 1.10 diff -u -r1.10 update.sh --- files/update.sh 2000/03/05 18:40:28 1.10 +++ files/update.sh 2000/04/21 04:32:56 @@ -5,6 +5,7 @@ exit 1 fi +export CVSUP_ARGS="$*" export PATH=/bin:/usr/bin:${PREFIX}/bin lock=/var/spool/lock/cvsup.lock @@ -42,7 +43,7 @@ startup=${PREFIX}/etc/rc.d eval chome=~${cuser} cmd="env HOME=${chome} cvsup" -options="-1gL 1 -b ${base} -c ${colldir}" +options="-1gL 1 -b ${base} -c ${colldir} ${CVSUP_ARGS}" umask 2 ok=yes So we could schedule CVSup e.g. as follows: 45 0-6,8-23 * * * root nice -15 /usr/local/etc/cvsup/update.sh -s 45 7 * * * root nice -15 /usr/local/etc/cvsup/update.sh Neat, eh? :) -- / /__ __ / ) ) ) ) / Akinori -Aki- MUSHA aka / (_ / ( (__( "If you choose not to decide you still have made a choice." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message