$NetBSD: patch-aj,v 1.3 2011/10/28 06:16:12 spz Exp $ --- sample.cf.orig 1997-08-27 15:00:31.000000000 +0000 +++ sample.cf @@ -6,7 +6,7 @@ # $whereami -- What machine am I running on? # -$whereami = "example.com"; +$whereami = "@HOSTNAME@"; # $whoami -- Who do users send requests to me as? # @@ -16,13 +16,22 @@ $whoami = "Majordomo\@$whereami"; # $whoami_owner = "Majordomo-Owner\@$whereami"; -# $homedir -- Where can I find my extra .pl files, like majordomo.pl? +# $homedir -- Where can I find my lists? # the environment variable HOME is set by the wrapper # if ( defined $ENV{"HOME"}) { $homedir = $ENV{"HOME"}; } else { - $homedir = "/usr/test/majordomo"; + $homedir = "@HOME@"; +} + +# $bindir -- Where can I find my extra .pl files, like majordomo.pl? +# the environment variable BIN is set by the wrapper +# +if ( defined $ENV{"BIN"}) { + $bindir = $ENV{"BIN"}; +} else { + $bindir = "@PREFIX@/libexec/majordomo"; } # $listdir -- Where are the mailing lists? @@ -32,10 +41,10 @@ $listdir = "$homedir/lists"; # $digest_work_dir -- the parent directory for digest's queue area # Each list must have a subdirectory under this directory in order for # digest to work. E.G. The bblisa list would use: -# /usr/local/mail/digest/bblisa +# @HOME@/digests/bblisa # as its directory. # -$digest_work_dir = "/usr/local/mail/digest"; +$digest_work_dir = "$homedir/digests"; # $log -- Where do I write my log? # @@ -45,8 +54,8 @@ $log = "$homedir/Log"; # usually /usr/lib/sendmail, but some newer BSD systems # seem to prefer /usr/sbin/sendmail # -$sendmail_command = "/usr/lib/sendmail"; -# $sendmail_command = "/usr/sbin/sendmail"; +# $sendmail_command = "/usr/lib/sendmail"; +$sendmail_command = "/usr/sbin/sendmail"; # $mailer -- What program and args do I use to send mail to the list? # $bounce_mailer -- What is used to send mail anywhere else? @@ -68,7 +77,7 @@ $bounce_mailer = "$sendmail_command -oi # # To use TLB and use no outgoing alias: # if ($main'program_name eq 'mj_resend' && $opt_l eq 'test-list') { -# $mailer = "/usr/local/majordomo/tlb /usr/local/lists/${opt_l}.tlb"; +# $mailer = "@HOME@/tlb @HOME@/lists/${opt_l}.tlb"; # } # # To use a different Sendmail queue for this list's mail: @@ -127,15 +136,15 @@ $no_true_x400 = 0; # Majordomo will look for "get" and "index" files related to $list in # directory "$filedir/$list$filedir_suffix", so set $filedir and # $filedir_suffix appropriately. For instance, to look in -# /usr/local/mail/files/$list, use: -# $filedir = "/usr/local/mail/files"; +# @HOME@/mail/files/$list, use: +# $filedir = "@HOME@/mail/files"; # $filedir_suffix = ""; # empty string # or to look in $listdir/$list.archive, use: # $filedir = "$listdir"; # $filedir_suffix = ".archive"; -$filedir = "$listdir"; -$filedir_suffix = ".archive"; +$filedir = "@HOME@/archives"; +$filedir_suffix = ""; # What command should I use to process an "index" request? # @@ -190,7 +199,7 @@ die "Perl version $] too old\n" if ($] < # majordomo has r/w permission to. # Uses the environment variable TMPDIR, since that's pretty common # -$TMPDIR = $ENV{'TMPDIR'} || "/usr/tmp"; +$TMPDIR = $ENV{'TMPDIR'} || "@TMPDIR@"; # Tune how long set_lock tries to obtain a lock before giving up. Each # attempt waits 1 to 10 seconds before trying again and waittime is