Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2000 11:23:33 +0100
From:      Josef Karthauser <joe@pavilion.net>
To:        Paul Richards <paul@originative.co.uk>
Cc:        David O'Brien <obrien@FreeBSD.org>, Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>, Peter Wemm <peter@netplex.com.au>, Doug Barton <DougB@gorean.org>, Warner Losh <imp@village.org>, Ade Lovett <ade@FreeBSD.org>, Jonathan Lemon <jlemon@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/games/fortune/datfiles fortunes
Message-ID:  <20000823112333.C7272@pavilion.net>
In-Reply-To: <39A39D77.831D4501@originative.co.uk>; from paul@originative.co.uk on Wed, Aug 23, 2000 at 10:46:31AM %2B0100
References:  <20000814003636.A74639@pavilion.net> <200008140753.AAA08038@netplex.com.au> <20000819124824.E88550@lucifer.bart.nl> <20000822161835.B807@dragon.nuxi.com> <20000823091714.D650@pavilion.net> <39A39D77.831D4501@originative.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 23, 2000 at 10:46:31AM +0100, Paul Richards wrote:
> 
> > I'm building the ability to add these (and other local hacks) in.  We
> > can than argue about whether it gets switched on later. :)
> 
> and the ability to separate what goes into the log and what is posted to
> the list?
> 

There's already limited support for that, via the $rcsidinfo variable.
It makes sense to expand that idea.

The main underlying goals are as follow:
* Rewrite using Perl5isms instead of a combination of perl4 and perl5.
  (Including using taint, strict and -w warnings.)
* Use a config.pm module to drive the configuration.
* Make the system generic enough that any group (Apache, Apple,
  etc) can use it directly with only changes to the config file, but
  flexible enough that it does everything that _we_ want it to do.

The advantage of using a configuration file written in Perl is that
it can contain code to determine what the configuration should be.
For instance when crypto was elsewhere:

	# The command used for mail the log messages.  Usually something
	# like $MAILCMD = "/usr/sbin/sendmail".  
	$MAILCMD = "/usr/local/bin/mailsend -H";

	# Extra banner to add to top of commit messages.
	# i.e. $MAILBANNER = "Project X CVS Repository";
	$MAILBANNER = "";	# No banner for general FreeBSD commits

	# Email addresses of recipients of commit mail.
	# i.e. $MAILADDRS = 'committers@your.domain.com';
	$MAILADDRS = 'cvs-committers@FreeBSD.org cvs-all@FreeBSD.org';

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


There's a snapshot of the development in Freefall:~joe/New-CVSROOT.

Joe
-- 
Josef Karthauser	FreeBSD: How many times have you booted today?
Technical Manager	Viagra for your server (http://www.uk.freebsd.org)
Pavilion Internet plc.  [joe@pavilion.net, joe@uk.freebsd.org, joe@tao.org.uk]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000823112333.C7272>