Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Nov 2008 14:22:55 -0800
From:      Brian Whalen <brian@brianwhalen.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Using csup
Message-ID:  <4910CB3F.4050707@brianwhalen.net>
In-Reply-To: <2daa8b4e0811031738q759d34f4q274a676957ad379e@mail.gmail.com>
References:  <2daa8b4e0811031738q759d34f4q274a676957ad379e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David Allen wrote:
> I'd like to move to using csup(1) and there's an error in the manpage
> that's raising some questions for me:
>
>     OPTIONS
>         base=base   The default base directory is /usr/local/etc/csup.
>
>     FILES
>         /usr/local/etc/cvsup                Default base directory.
>         sup                                 Default collDir subdirectory.
>         base/collDir/collection/checkouts*  List files.
>
> Assuming that the default 'base' directory is /usr/local/etc/cvsup, would
> the following three files be sufficient for csup to work?
>
> # /usr/local/etc/cvsup/standard-supfile
> *default tag=RELENG_7_0
> *default host=cvsup10.us.FreeBSD.org
> *default release=cvs delete use-rel-suffix compress
> src-all
>
> # /usr/local/etc/cvsup/doc-supfile
> doc-all
>
> # /usr/local/etc/cvsup/ports-supfile
> ports-all tag=.
>
> # usr/local/etc/cvsup/sup/refuse
> [contents of global refusefile]
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>   
I like running this script.

It requires the port/package fastest-cvsup, it will test for the fastest 
one then use that.  Any server statement in your file is disregarded.  
You'll the the script still calls csup as you desire.

#!/bin/sh
        if SERVER=`/usr/local/bin/fastest_cvsup -q -c us`; then
        /usr/bin/csup -g -L 1 -h $SERVER 
/usr/share/examples/cvsup/stable-supfile
      fi




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4910CB3F.4050707>