1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# $FreeBSD$
####################################################################
####################################################################
# This file contains local configuration for the CVSROOT perl
# scripts. It is loaded by cfg.pm and overrides the default
# configuration in that file.
#
# It is advised that you test it with
# 'env CVSROOT=/path/to/cvsroot perl -cw cfg.pm'
# before you commit any changes. The check is to cfg.pm which
# loads this file.
####################################################################
####################################################################
$CHECK_HEADERS = 1;
$IDHEADER = 'FreeBSD';
$UNEXPAND_RCSID = 1;
%TEMPLATE_HEADERS = (
"Reviewed by" => '.*',
"Submitted by" => '.*',
"Obtained from" => '.*',
"Approved by" => '.*',
"PR" => '.*',
"MFC after" => '\d+(\s+(days?|weeks?|months?))?'
);
$MAILCMD = "/usr/local/bin/mailsend -H";
$MAIL_BRANCH_HDR = "X-FreeBSD-CVS-Branch";
$ADD_TO_LINE = 0;
# Sanity check to make sure we've been run through the wrapper and are
# now primary group 'ncvs'.
#
$COMMITCHECK_EXTRA = sub {
my $GRP=`/usr/bin/id -gn`;
chomp $GRP;
unless ( $GRP =~ /^ncvs$/ ) {
print "You do not have group ncvs (commitcheck)!\n";
exit 1; # We could return false here. But there's
# nothing to stop us taking action here instead.
}
return 1;
};
# Wrap this in a hostname check to prevent mail to the FreeBSD
# list if someone borrows this file and forgets to change it.
my $hostname = `/bin/hostname`;
die "Can't determine hostname!\n" if $? >> 8;
chomp $hostname;
if ($hostname =~ /^freefall\.freebsd\.org$/i) {
my $meister;
$MAILADDRS='cvs-committers@FreeBSD.org cvs-all@FreeBSD.org';
$MAILADDRS = 'cvs@FreeBSD.org' if $DEBUG;
@COMMIT_HOSTS = qw(freefall.freebsd.org);
}
@LOG_FILE_MAP = (
'CVSROOT' => '^CVSROOT/',
'distrib' => '^distrib/',
'doc' => '^doc/',
'ports' => '^ports/',
'projects' => '^projects/',
'www' => '^www/',
'bin' => '^src/bin/',
'contrib' => '^src/contrib/',
'eBones' => '^src/eBones/',
'etc' => '^src/etc/',
'games' => '^src/games/',
'gnu' => '^src/gnu/',
'include' => '^src/include/',
'kerberosIV' => '^src/kerberosIV/',
'lib' => '^src/lib/',
'libexec' => '^src/libexec/',
'lkm' => '^src/lkm/',
'release' => '^src/release/',
'sbin' => '^src/sbin/',
'share' => '^src/share/',
'sys' => '^src/sys/',
'tools' => '^src/tools/',
'usrbin' => '^src/usr\.bin/',
'usrsbin' => '^src/usr\.sbin/',
'user' => '^src/',
'other' => '.*'
);
1; # Perl requires all modules to return true. Don't delete!!!!
#end
|