# $FreeBSD$ #################################################################### #################################################################### # This file contains the default configuration for the CVSROOT # perl scripts. You are advised to override the configuration # in the cfg_local.pm file instead of here. # # WARNING: You are strongly advised to check for syntax errors # in this file before committing it. Use: perl -cw cfg.pm #################################################################### #################################################################### package cfg; use strict; use vars qw( $ADD_TO_LINE $AVAIL_FILE $CHECK_HEADERS $COMMITCHECK_EXTRA @COMMIT_HOSTS $COMMITTER $DEBUG $DIFF_BLOCK_TOTAL_LINES $EXCLUDE_FILE $FILE_PREFIX $IDHEADER $LAST_FILE @LOG_FILE_MAP $MAILADDRS $MAILBANNER $MAILCMD $MAIL_BRANCH_HDR $MAIL_ON_DIR_CREATION $MAIL_TRANSFORM $MINCVSVERSION $MAX_DIFF_SIZE $NO_DOS_LINEBREAKS $PID $PROG_CVS $PROG_MV %TEMPLATE_HEADERS $TMPDIR $UNEXPAND_RCSID $WARN_HEADERS ); my $CVSROOT = $ENV{'CVSROOT'} || die "Can't determine \$CVSROOT!"; ###################### ### global options ### ###################### ### WARNING: these aren't global across all the scripts yet. ### This is work in progress. # Process group id; used as a unique number in temporary file names. $PID = getpgrp(); # Debug level, 0 = off, 1 = on. $DEBUG = 0; # Location of temporary directory. $TMPDIR = "/tmp/"; # The filename prefix used for temporary files. $FILE_PREFIX = "#cvs.files.$PID"; # The file used to store the name of the last directory examined # when processing a multi-directory commit. $LAST_FILE = "$TMPDIR/$FILE_PREFIX.lastdir"; # System tools. $PROG_CVS = '/usr/bin/cvs'; # cvs(1) $PROG_MV = '/bin/mv'; # mv(1) # The username of the committer. $COMMITTER = $ENV{"LOGNAME"} || $ENV{'USER'} || getlogin || (getpwuid($<))[0] || sprintf("uid#%d",$<); ################### ### commitcheck ### ################### # A list of hosts the it's ok to commit on. Useful if your committers # take local copies of the repository to work off-line. # (Empty if you don't want checks.) @COMMIT_HOSTS = (); # The minimum version of cvs that we will work with. $MINCVSVERSION = "1090900"; # 1.9.9p0 # Additional commit time checks. This is an anonymous subroutine # that gets called early on in the validation process to see whether # the committer is allowed to commit. It should return true if # everything is ok, otherwise the commit will be terminated. $COMMITCHECK_EXTRA = ""; ################### ### cvs_acls.pl ### ################### # The name of the avail file that defines who's allow to # commit to what. $AVAIL_FILE = "$CVSROOT/CVSROOT/avail"; ################ ### logcheck ### ################ # These are the optional headers that can be filled at the end of # each commit message. The associated value is a regular-expression # that is used to type-check the entered value. If a match fails # then the commit is rejected. (See rcstemplate). # # Make sure that these are also described in the rcstemplate to # make their usage clear to committers. # # In addition any of these entries that are left blank are removed # from the log at commit time. [Please note that for them to be # removed from the rcslog in the repository you need to be running # the version of cvs in the FreeBSD source tree. We've got a local # patch that causes cvs to read back the commit message after the # commit_prep.pl script has had a chance to modify it (via the # 'commitinfo' hook). ] %TEMPLATE_HEADERS = ( # "Reviewed by" => '.*', # "Submitted by" => '.*', # "Obtained from" => '.*', # "Approved by" => '.*', # "PR" => '.*', # "MFC after" => '\d+(\s+(days?|weeks?|months?))?' ); ###################### ### commit_prep.pl ### ###################### # Check for instances of $IDHEADER in committed files, and # bomb out if they're not present, or corrupted. # Exclusions can be specified in the exclude file. # Currently $IDHEADER must be an instance of '$ CVSHeader $', or an alias # defined in CVSROOT/options. $CHECK_HEADERS = 0; $EXCLUDE_FILE = "$CVSROOT/CVSROOT/exclude"; # Make a header check a non-fatal error - just warn, don't exit. $WARN_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 = '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 = 0; # Check for DOS/WINDOWS/MAC linebreaks in the file, bomb out if present. # Exclusions can be specified in the exclude file. $NO_DOS_LINEBREAKS = 0; #################### ### log_accum.pl ### #################### # The command used to mail the log messages. # Usually something like '/usr/sbin/sendmail'. $MAILCMD = "/usr/sbin/sendmail"; # Email addresses of recipients of commit mail. $MAILADDRS = 'nobody'; # Extra banner added to the top of commit email. # Use "" if you don't want one. # i.e. $MAILBANNER = "Project X CVS Repository"; $MAILBANNER = ""; # Send mail when directories are created in the repository. # 0 = off, 1 = on. $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. $MAIL_BRANCH_HDR = "X-CVS-Branch"; # Include a 'To:' header in the generated commit mail? $ADD_TO_LINE = 1; # This is a way to post-process the log email before it is mailed. # Some people find it useful to use this to create URLs in their # commit mails to show the patch in a web page (using cvsweb) for # instance. # # The $MAIL_TRANSFORM variable should be "" if you don't want to # use this feature. Otherwise it should be a reference to a # subroutine that is passed the email message as a list, and returns # the modified list to the log_accum.pl script. The list has one # element per email line, with no trailing line feeds. This function # shouldn't add them. If $DEBUG is switched on the log_accum.pl # script will show the before and after on stdout at commit time. # # The example below shows a way of inserting links to cvsweb. $MAIL_TRANSFORM = ""; #$MAIL_TRANSFORM = sub { # add_cvsweb_entry("http://www.example.org/cgi-bin/cvsweb.cgi", @_); #}; # A copy of the commit summary is saved locally as well as being # emailed to the committers. The name of the local log is obtained # by performing a pattern match on the directory that the files are # in. The following map defines the file names and their associated # pattern match. They are checked in order. The name 'other' is # used if none of the patterns match. # # XXX The directory that the logs are placed in should be a # configuration option too. @LOG_FILE_MAP = ( 'CVSROOT' => '^CVSROOT/', 'doc' => '^doc/', 'user' => '^src/', 'other' => '.*' ); # Include diffs of not greater than this size in kbytes in the # commit mail for each file modified. (0 = off). $MAX_DIFF_SIZE = 0; # Maximum size of in lines of the diff block. $DIFF_BLOCK_TOTAL_LINES = 200; ###################### # EXAMPLES ###################### # A function for post-processing a log message # and outputing it with URLs to a cvsweb.cgi in. sub add_cvsweb_entry { my $url_to_cvsweb = shift; my @input = @_; my @output = (); # Skip down to the revision summary. while (1) { my $line = shift @input; last unless defined($line); push @output, $line; last if $line =~ /^\s*Revision\s*Changes\s*Path\s*$/; } # Add the url links my $skip = 0; foreach (@input) { # The revision block is terminated with an empty line. $skip = 1 if $_ =~ /^\s*$/; push @output, $_; next if $skip; my ($rev, $add, $sub, $file, $status) = split; $rev =~ /(?:(.*)\.)?([^\.]+)\.([^\.]+)$/; my ($base, $r1, $r2) = ($1, $2, $3); my $prevrev = ""; if ($r2 == 1) { $prevrev = $base; } else { $prevrev = "$base." if $base; $prevrev .= "$r1." . ($r2 - 1); } my $baseurl = "$url_to_cvsweb/$file"; my $extra; if (defined($status)) { $rev = $prevrev if $status =~ /dead/; $extra = "?rev=$rev&content-type=text/plain"; } else { $extra = ".diff?r1=$prevrev&r2=$rev&f=h"; } push @output, "$baseurl$extra"; } return @output; }; ###################################################################### # Load the local configuration file, that allows the entries in this # file to be overridden. ###################################################################### eval { require "$CVSROOT/CVSROOT/cfg_local.pm" } if -e "$CVSROOT/CVSROOT/cfg_local.pm"; warn $@ if $@; 1; # Perl requires all modules to return true. Don't delete!!!! #end /td>sunpoet2013-03-103-36/+27 * - Update to 5759amdmi32013-03-092-3/+3 * - Add new knob USE_LHA [1]miwi2013-03-081-7/+1 * update math/R to 2.15.3, and adjust dependent portsbf2013-03-071-0/+1 * Remove compatibility with FreeBSD 7.Xrene2013-03-071-2/+2 * Fix inverted logic in r310100.wxs2013-03-061-1/+1 * - Update *_DEPENDS on databases/py-sqlite3 after _sqlite3.so relocationlwhsu2013-03-041-1/+1 * For unmaintained ports in `astro' category, drop leading indefinite articledanfe2013-02-259-52/+17 * - Trim Makefile headerdanfe2013-02-251-18/+22 * Update to 0.073.tobez2013-02-222-3/+3 * Update to version 0.12.0.danfe2013-02-213-5/+53 * - Update to r289amdmi32013-02-212-5/+7 * - Update to r2487amdmi32013-02-212-10/+8 * - Update to version 1.4pawel2013-02-204-11/+42 * - Update to 0.42amdmi32013-02-203-38/+37 * Update to 0.75.tobez2013-02-192-8/+4 * Update to 0.072.tobez2013-02-182-3/+3 * - Update to 3.2.0wen2013-02-173-17/+25 * Add my location as a new committerpclin2013-02-131-1/+1 * - Update to 5697amdmi32013-02-132-3/+3 * - Update to 0.8-23tota2013-02-122-3/+3 * - Get rid of PTHREAD_CFLAGS and PTHREAD_LIBS (category: astro)gahr2013-02-076-11/+7 * - Chase removal of Tcl/Tk 8.2gahr2013-02-061-1/+1 * - Update to 3.57miwi2013-02-048-152/+90 * Bump PORTREVISION after KDE SC update.makc2013-02-041-0/+1 * KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-046-29/+55 * - Restore credit to eserte in the headertabthorpe2013-02-031-1/+1 * - Fix all cases of 'No newline at end of file' in ports treeak2013-02-011-1/+1 * - Strip header at request of original creatortabthorpe2013-01-273-11/+3 * Bump PORTREVISION after DESKTOP_ENTRIES updatemakc2013-01-231-1/+1 * - Update DESKTOP_ENTRIES:makc2013-01-231-2/+3 * - Update to 2.13cs2013-01-212-8/+9 * - Update to 0.8-22tota2013-01-172-4/+3 * Trim header.wxs2013-01-091-10/+9 * - update to 1.78.00rm2013-01-053-13/+13 * update the R base ports to 2.15.2 and adjust dependent portsbf2013-01-051-0/+1 * Update to 0.070.tobez2013-01-012-3/+3 * Use PORT_OPTIONS:MDOCS instead of NOPORTDOCSbapt2012-12-311-6/+4 * Use PORT_OPTIONS:MDOCS instead of NOPORTDOCSbapt2012-12-311-6/+4 * Use PORT_OPTIONS for both EXAMPLES and DOCSbapt2012-12-311-8/+5 * - Deprecate QT3, KDE3 and unmaintained ports depending on them. QT 3.3.8beat2012-12-301-0/+3 * Fix logic on X11 testingbapt2012-12-301-1/+1 * Convert to new options frameworkbapt2012-12-301-14/+9 * - Update to 0.8-21tota2012-12-232-3/+3 * Convert to new options.wxs2012-12-181-11/+8 * Cleanup supporting perl version 5.8 and 5.10,az2012-12-172-19/+2 * Cleanup supporting perl version 5.8 and 5.10,az2012-12-171-8/+1 * - Update to 1.4.4beech2012-12-162-6/+6 * Update to 0.8.0.0kevlo2012-12-125-186/+172 * Update PCRE to 8.32mm2012-12-112-2/+3 * Decommissioning java 1.5 (EOLed since October 2009):bapt2012-12-102-2/+2 * Decommissioning java 1.5 (EOLed since October 2009):bapt2012-12-101-1/+1 * - Update to 0.56sunpoet2012-12-092-4/+5 * - Update to 5608amdmi32012-12-072-3/+3 * Fix build on HEAD, this port uses GCC-specific vector code.rene2012-12-041-0/+1 * - Chase 82+ not being a valid Tcl/Tk version anymoregahr2012-12-041-1/+1 * - Update to 0.18sunpoet2012-12-042-8/+4 * - The project was renamed, rename port accordingly (astro/prune -> astro/gpsp...amdmi32012-12-046-20/+17 * - Update to version 3.310sperber2012-12-014-11/+47 * - Use PORTVERSION:R in MASTER_SITESpawel2012-11-291-7/+7 * - Remove webkit-image leftoversamdmi32012-11-292-18/+5 * - Update to version 1.3.2.1 [1]pawel2012-11-294-58/+86 * 2012-11-26 astro/position: No more public distfilesbapt2012-11-2820-766/+0 * Add my location as committerbar2012-11-261-0/+1 * - Update to 5576amdmi32012-11-212-3/+3 * - Update to 0.8-20tota2012-11-172-3/+3 * - fix options dialog by defining OPTIONSFILErm2012-11-141-5/+2 * - Update to 0.069wen2012-11-132-3/+3 * - Update to 0.055wen2012-11-132-3/+3 * - Update to 0.026wen2012-11-132-8/+4 * - Update to 0.8-18tota2012-11-073-9/+5 * - Update to 1.4.3wen2012-11-062-8/+5 * - Update to 0.16cs2012-11-042-8/+4 * - Reset maintainer to perl@wen2012-10-301-1/+1 * - Trim Makefile headerswen2012-10-301-6/+2 * Deprecate a bunch of ports that are either abandonware and/or for which no morebapt2012-10-262-5/+7 * - Update to 0.066wen2012-10-253-9/+7 * - Trim Makefile headerswen2012-10-251-6/+2 * - Change upstream to port maintainer's forkmadpilot2012-10-154-26/+19 * - cleanup commentsdinoex2012-10-131-5/+0 * - Remove SITE_PERL from *_DEPENDS (final part)az2012-10-111-1/+1 * - Update to 0.054wen2012-10-102-8/+4 * - Update to 5531amdmi32012-10-092-24/+5 * Fix previous commit, chown does not like uninitialized variables.rene2012-10-081-1/+3 * Use the correct user:group for app_info.xmlrene2012-10-081-0/+1 * Throw my ports back in the pool, and make my intentions clear for thedougb2012-10-081-1/+0 * Convert to OptionsNGeadler2012-10-071-19/+10 * Update my day time location.osa2012-10-071-1/+1 * Cleanup Makefile headers of my ports.rene2012-10-072-8/+2 * - Update to version 1.6.1madpilot2012-10-024-149/+46 * Trim Makefile headers and remove ABI versions in LIB_DEPENDS.danfe2012-09-294-24/+8 * - Adjust Makefile header per new world orderdanfe2012-09-291-11/+8 * - Use `pre-su-install' target to unbreak non-root installationdanfe2012-09-294-22/+29 * Reformat description text and kill EOL whitespace.danfe2012-09-291-9/+9 * - Reassign to the heap at maintainer's requesttabthorpe2012-09-252-14/+4 * - Update to 0.41amdmi32012-09-254-159/+28 * - Set this port freepav2012-09-23