Cvsup for FreeBSD 5.x

Discussion, tips and tricks for the different Unix flavors

Cvsup for FreeBSD 5.x

Postby curlee » Wed May 03, 2006 12:57 pm

Create the /usr/local/etc/cvsup/sup directory tree:

# mkdir -p /usr/local/etc/cvsup/sup

Create /usr/local/etc/cvsup/sup/supfile:
*default host=cvsup8.FreeBSD.org (Pick a mirror near you—see below)
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default release=cvs tag=RELENG_5_1 (Pick the release tree you want)
*default delete use-rel-suffix
*default compress
src-all
ports-all tag=.


Create the refuse file /usr/local/etc/cvsup/sup/refuse

ports/chinese
ports/french
ports/german
ports/hebrew
ports/japanese
ports/korean
ports/russian
ports/ukrainian
ports/vietnamese

Create /usr/local/bin/cvsrun:

#!/bin/sh
echo Subject: `hostname` weekly cvsup run output
/usr/local/bin/cvsup -g -L 2 /usr/local/etc/cvsup/sup/supfile


Make the scripts executable by root only:

# chown root:wheel /usr/local/bin/cvsrun
# chmod u+x /usr/local/bin/cvsrun


Edit /etc/crontab to run CVSup every Friday night:
# Run cvsup every Friday night at 10:00 pm.
0 22 * * 5 root /usr/local/bin/cvsrun | sendmail root


Run cvsup to update the sources:
# /usr/local/bin/cvsrun
curlee
Site Admin
 
Posts: 49
Joined: Wed May 03, 2006 12:01 pm

Return to BSD/Linux/Unix

Who is online

Users browsing this forum: No registered users and 1 guest

cron