diff options
author | joe <joe@FreeBSD.org> | 2001-10-24 08:49:59 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-10-24 08:49:59 +0800 |
commit | 9d8c522e8ebdf7b147a222fbe9ec5fadf9223f06 (patch) | |
tree | 32cb541ddce564ea072970cc43803f5d2868f619 /CVSROOT | |
parent | 478b76b45fa9a98d7ad37fc7386c31c59c13df7b (diff) | |
download | freebsd-ports-graphics-9d8c522e8ebdf7b147a222fbe9ec5fadf9223f06.tar.gz freebsd-ports-graphics-9d8c522e8ebdf7b147a222fbe9ec5fadf9223f06.tar.zst freebsd-ports-graphics-9d8c522e8ebdf7b147a222fbe9ec5fadf9223f06.zip |
Migrate the FreeBSD project configuration to cfg_local.pm and
replace it with default entries in cfg.pm.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/cfg.pm | 59 | ||||
-rw-r--r-- | CVSROOT/cfg_local.pm | 36 |
2 files changed, 51 insertions, 44 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm index 8b1bd6ae875..50eec0f3576 100755 --- a/CVSROOT/cfg.pm +++ b/CVSROOT/cfg.pm @@ -53,12 +53,12 @@ $LAST_FILE = "$TMPDIR/$FILE_PREFIX.lastdir"; # Make sure that these are also described in the rcstemplate to # make their usage clear to committers. %TEMPLATE_HEADERS = ( - "Reviewed by" => '.*', - "Submitted by" => '.*', - "Obtained from" => '.*', - "Approved by" => '.*', - "PR" => '.*', - "MFC after" => '\d+(\s+(days?|weeks?|months?))?' +# "Reviewed by" => '.*', +# "Submitted by" => '.*', +# "Obtained from" => '.*', +# "Approved by" => '.*', +# "PR" => '.*', +# "MFC after" => '\d+(\s+(days?|weeks?|months?))?' ); @@ -71,19 +71,19 @@ $LAST_FILE = "$TMPDIR/$FILE_PREFIX.lastdir"; # Exclusions can be specified in the CVSROOT/exclude file. # Currently $IDHEADER must be an instance of '$ CVSHeader $', or an alias # defined in CVSROOT/options. -$CHECK_HEADERS = 1; +$CHECK_HEADERS = 0; # WARNING: You will also need to be running the version of cvs that # the FreeBSD project is using; I believe that we have some local patches # that aren't in the main 'cvs' source. # Additionally you'll need to tweak CVSROOT/options if you wish to use your # own ident header. -$IDHEADER = 'FreeBSD'; # Our RCS header is '$ FreeBSD $', +$IDHEADER = 'CVSHeader'; # Contract any instances of $IDHEADER in the source file before committing. # This is useful because it means that expanded headers aren't stored in # the repository as part of the delta. -$UNEXPAND_RCSID = 1; +$UNEXPAND_RCSID = 0; #################### @@ -92,15 +92,14 @@ $UNEXPAND_RCSID = 1; # The command used to mail the log messages. # Usually something like '/usr/sbin/sendmail'. -$MAILCMD = "/usr/local/bin/mailsend -H"; +$MAILCMD = "/usr/sbin/sendmail"; # Email addresses of recipients of commit mail. -# (might be overridden below) $MAILADDRS = 'nobody'; # Extra banner added to the top of commit email. -# i.e. $MAILBANNER = "Project X CVS Repository"; # Use "" if you don't want one. +# i.e. $MAILBANNER = "Project X CVS Repository"; $MAILBANNER = ""; # Send mail when directories are created in the repository. @@ -108,8 +107,8 @@ $MAILBANNER = ""; $MAIL_ON_DIR_CREATION = 0; # Include the names of the branches committed to in the commit email, -# using this header (leave off the trailing ':'). Use "" if you don't -# want one. +# using this header (leave off the trailing ':'). +# Use "" if you don't want one. $MAIL_BRANCH_HDR = "X-CVS-Branch"; # This is a way to post-process the log email before it is mailed. @@ -185,38 +184,10 @@ sub add_cvsweb_entry { }; - - - - -############################################################## -############################################################## -# FreeBSD site localisation [overrides configuration above]. -# Remember to comment out if using for other purposes. -############################################################## -############################################################## -my $hostname = `/bin/hostname`; -die "Can't determine hostname!\n" if $? >> 8; -chomp $hostname; -if ($hostname =~ /^(freefall|internat)\.freebsd\.org$/i) { - my $meister; - - $MAILADDRS='cvs-committers@FreeBSD.org cvs-all@FreeBSD.org'; - if ($1 =~ /freefall/i) { - $meister = 'peter@FreeBSD.org'; - } else { - $meister = 'markm@FreeBSD.org'; - $MAILBANNER = "FreeBSD International Crypto Repository"; - } - $MAILADDRS = $meister if $DEBUG; - - - $MAIL_BRANCH_HDR = "X-FreeBSD-CVS-Branch"; -} - - +###################################################################### # Load the local configuration file, that allows the entries in this # file to be overridden. +###################################################################### eval { require "$ENV{CVSROOT}/CVSROOT/cfg_local.pm" } if -e "$ENV{CVSROOT}/CVSROOT/cfg_local.pm"; warn $@ if $@; diff --git a/CVSROOT/cfg_local.pm b/CVSROOT/cfg_local.pm index 22fb4e80b19..38fb916dd4b 100644 --- a/CVSROOT/cfg_local.pm +++ b/CVSROOT/cfg_local.pm @@ -11,6 +11,42 @@ #################################################################### #################################################################### +$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"; + + +# 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|internat)\.freebsd\.org$/i) { + my $meister; + + $MAILADDRS='cvs-committers@FreeBSD.org cvs-all@FreeBSD.org'; + if ($1 =~ /freefall/i) { + $meister = 'peter@FreeBSD.org'; + } else { + $meister = 'markm@FreeBSD.org'; + $MAILBANNER = "FreeBSD International Crypto Repository"; + } + $MAILADDRS = $meister if $DEBUG; +} + + 1; # Perl requires all modules to return true. Don't delete!!!! #end |