summaryrefslogtreecommitdiff
path: root/mail/spamassassin/patches/patch-README
blob: d3902fcfa3c7d024dc3a6ee9d3521d6d401735cc (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
$NetBSD: patch-README,v 1.1 2015/09/09 19:13:49 christos Exp $

  Purely changes for pkgsrc:

	- Change paths to those used by pkgsrc
	- Notes about search paths set by pkgsrc

--- README.orig	2015-04-28 15:57:01.000000000 -0400
+++ README	2015-09-09 14:57:29.000000000 -0400
@@ -102,25 +102,25 @@
 the standard defaults that people use.  There is an explanation of all the
 default locations that Apache SpamAssassin will look at the end.
 
-  - /usr/share/spamassassin/*.cf:
+  - @@PREFIX@@/share/spamassassin/*.cf:
 
 	Distributed configuration files, with all defaults.  Do not modify
 	these, as they are overwritten when you upgrade.
 
-  - /var/lib/spamassassin/*/*.cf:
+  - @VARBASE@/spamassassin/*/*.cf:
 
         Local state directory; updated rulesets, overriding the
         distributed configuration files, downloaded using "sa-update". Do
         not modify these, as they are overwritten when you run
         "sa-update".
 
-  - /etc/mail/spamassassin/*.cf:
+  - @PKG_SYSCONFDIR@/*.cf:
 
   	Site config files, for system admins to create, modify, and
 	add local rules and scores to.  Modifications here will be
 	appended to the config loaded from the above directory.
 
-  - /etc/mail/spamassassin/*.pre:
+  - @PKG_SYSCONFDIR@/*.pre:
 
         Plugin control files, installed from the distribution. These are
         used to control what plugins are loaded.  Modifications here will
@@ -129,22 +129,22 @@
         
         You want to modify these files if you want to load additional
         plugins, or inhibit loading a plugin that is enabled by default.
-        If the files exist in /etc/mail/spamassassin, they will not
+        If the files exist in @PKG_SYSCONFDIR@, they will not
         be overwritten during future installs.
 
-  - /usr/share/spamassassin/user_prefs.template:
+  - @@PREFIX@@/share/spamassassin/user_prefs.template:
 
 	Distributed default user preferences. Do not modify this, as it is
 	overwritten when you upgrade.
 
-  - /etc/mail/spamassassin/user_prefs.template:
+  - @PKG_SYSCONFDIR@/user_prefs.template:
 
 	Default user preferences, for system admins to create, modify, and
 	set defaults for users' preferences files.  Takes precedence over
 	the above prefs file, if it exists.
 
         Do not put system-wide settings in here; put them in a file in the
-        "/etc/mail/spamassassin" directory ending in ".cf". This file is
+        "@PKG_SYSCONFDIR@" directory ending in ".cf". This file is
         just a template, which will be copied to a user's home directory
         for them to change.
 
@@ -198,6 +198,12 @@
   /opt/$DIR     /opt/$DIR/share/spamassassin   /etc/opt/mail/spamassassin
   $DIR          $DIR/share/spamassassin        $DIR/etc/mail/spamassassin
 
+(Pkgsrc note: the pkgsrc build process used the following path names
+  __prefix__:          @@PREFIX@@
+  __def_rules_dir__:   @@PREFIX@@/share/spamassassin
+  __local_rules_dir__: @PKG_SYSCONFDIR@
+)
+
 The files themselves are then looked for in these paths:
 
   - Distributed Configuration Files
@@ -237,6 +243,11 @@
   /opt/$DIR     /var/opt/spamassassin/__version__
   $DIR          $DIR/var/spamassassin/__version__
 
+(Pkgsrc note: the pkgsrc build process used the following path names
+  __prefix__:          @@PREFIX@@
+  __local_state_dir__: @VARBASE@/spamassassin/__version__
+)
+
 This is normally written to by the "sa-update" script.  "__version__" is
 replaced by a representation of the version number, so that multiple
 versions of Apache SpamAssassin will not interfere with each other's rulesets.