summaryrefslogtreecommitdiff
path: root/mail/majordomo/patches/patch-aj
blob: f7a4b1faba908bfca4787fd02653b927bd2b9697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
$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