# $FreeBSD$
# Configuration file.

package config;
require Exporter;
@ISA = qw(Exporter);

my @VARS = qw($DEBUG $MAILCMD $MAILBANNER $MAILADDRS $RCSIDINFO $TMPDIR
	@RCSTEMPLATE_KEYWORDS, $X_BRANCH_HDR
	$FILE_PREFIX @MASTERHOSTS $REQUIRED_GROUP @LOGFILE_MAP);
@EXPORT_OK = @VARS;

use vars @VARS;


# Debug level, 0 = off
$DEBUG = 1;

# Where do you want the RCS ID and delta info?
# 0 = none,
# 1 = in mail only,
# 2 = rcsids in both mail and logs.
#
$RCSIDINFO = 2;

# The command used for mail the log messages.  Usually something
# like '/usr/sbin/sendmail'.  
$MAILCMD = "/usr/sbin/sendmail";

# Extra banner to add to top of commit messages.
# i.e. $MAILBANNER = "Project X CVS Repository";
$MAILBANNER = "";
#XXX $MAILBANNER = "Project X CVS Repository";

# Email addresses of recipients of commit mail.
#XXX $MAILADDRS = 'committers@your.domain.com';
$MAILADDRS = 'joe@tao.org.uk';
$MAILADDRS = 'joe@localhost';


# If you want a message header added containing the branches that
# were modified by a particular commit then define this variable.
# Remember to add the trailing ':' character.
$X_BRANCH_HDR  = "X-FreeBSD-CVS-Branch:";


# Location of temporary directory.
$TMPDIR = "/tmp/";

# The file prefix used for the temporary files.
$FILE_PREFIX = "#cvs.files";



# XXX A list of hosts that the user must commit to to commit to the repostiroy.
@MASTERHOSTS = qw(genius.systems.pavilion.net genius.tao.org.uk freefall.FreeBSD.org);

# Group that the use must be part of to participate in CVS commits
# XXX $REQUIRED_GROUP = "cvs";
$REQUIRED_GROUP = "sysman";



#============================================================
# FreeBSD customisation - remove this block if you're using
# this for your own projects.
# XXX use Sys::Hostname;      # get hostname() function
# XXX $MAILADDRS = 'cvs-committers@FreeBSD.org cvs-all@FreeBSD.org';
# XXX $MAILCMD = "/usr/local/bin/mailsend -H";
# XXX if (hostname() =~ /freefall\.freebsd\.org/i or $DEBUG) {
# XXX 	$MAILADDRS = 'peter@FreeBSD.org';
# XXX } else {
# XXX 	$MAILADDRS = 'mark@FreeBSD.org';
# XXX 	$MAIL_BANNER = "FreeBSD International Crypto Repository\n"
# XXX }
#============================================================





# These entries should also be added to the rcstemplate file.
@RCSTEMPLATE_KEYWORDS = (
	"PR:",
	"Submitted by:",
	"Reviewed by:",
	"Approved by:",
	"Obtained from:"
);






# !!! Mailing-list and commitlog history file mappings here !!!
@LOGFILE_MAP = (
	"CVSROOT/"		=>	'cvs-CVSROOT',
	"ports/"		=>	'cvs-ports',
	"www/"			=>	'cvs-www',
	"doc/"			=>	'cvs-doc',
	"distrib/"		=>	'cvs-distrib',

	"src/bin/"		=>	'cvs-bin',
	"src/contrib/"		=>	'cvs-contrib',
	"src/eBones/"		=>	'cvs-eBones',
	"src/etc/"		=>	'cvs-etc',
	"src/games/"		=>	'cvs-games',
	"src/gnu/"		=>	'cvs-gnu',
	"src/include/"		=>	'cvs-include',
	"src/kerberosIV/"	=>	'cvs-kerberosIV',
	"src/lib/"		=>	'cvs-lib',
	"src/libexec/"		=>	'cvs-libexec',
	"src/lkm/"		=>	'cvs-lkm',
	"src/release/"		=>	'cvs-release',
	"src/sbin/"		=>	'cvs-sbin',
	"src/share/"		=>	'cvs-share',
	"src/sys/"		=>	'cvs-sys',
	"src/tools/"		=>	'cvs-tools',
	"src/usr.bin/"		=>	'cvs-usrbin',
	"src/usr.sbin/"		=>	'cvs-usrsbin',

	"src/*"			=>	'cvs-user',
	"*"			=>	'cvs-other'
);



1;
#end
