aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT/cfg_local.pm
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-11-15 20:37:03 +0800
committerjoe <joe@FreeBSD.org>2001-11-15 20:37:03 +0800
commit7152f4460e9b5f4aad481c51f2aca5b5a8a2e7f9 (patch)
treec2c5d2e5063d23dad87a0e43322b60b79174c2f7 /CVSROOT/cfg_local.pm
parent58e7d63643c07c23319ebe79c89e9652f890a6a5 (diff)
downloadfreebsd-ports-gnome-7152f4460e9b5f4aad481c51f2aca5b5a8a2e7f9.tar.gz
freebsd-ports-gnome-7152f4460e9b5f4aad481c51f2aca5b5a8a2e7f9.tar.zst
freebsd-ports-gnome-7152f4460e9b5f4aad481c51f2aca5b5a8a2e7f9.zip
Relegate the group check that we do in the FreeBSD project to the
configuration file using the new COMMITCHECK_EXTRA config option.
Diffstat (limited to 'CVSROOT/cfg_local.pm')
-rw-r--r--CVSROOT/cfg_local.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/CVSROOT/cfg_local.pm b/CVSROOT/cfg_local.pm
index 0c0f83569289..1cb7e92c79d5 100644
--- a/CVSROOT/cfg_local.pm
+++ b/CVSROOT/cfg_local.pm
@@ -30,6 +30,18 @@ $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;
+ }
+ 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.