File: pre0.94-checkplugins.patch

package info (click to toggle)
qpsmtpd 0.94-5
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 2,304 kB
  • sloc: perl: 17,176; sh: 543; makefile: 186; sql: 100
file content (106 lines) | stat: -rw-r--r-- 4,580 bytes parent folder | download | duplicates (4)
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
101
102
103
104
105
106
diff -aruN qpsmtpd-0.94.orig/plugins/check_badmailfrom qpsmtpd-0.94/plugins/check_badmailfrom
--- qpsmtpd-0.94.orig/plugins/check_badmailfrom	1969-12-31 16:00:00.000000000 -0800
+++ qpsmtpd-0.94/plugins/check_badmailfrom	2015-02-21 23:34:00.005670303 -0800
@@ -0,0 +1,14 @@
+# Backwards-compatibility wrapper; qpsmtpd 0.94 renamed the check_* plugins
+# from the upstream distribution to remove the check_ prefix.  This plugin
+# exists to allow older, un-migrated configurations to work properly with
+# the 0.94 release.
+
+my $whoami = 'badmailfrom';
+
+sub init {
+  my $self = shift;
+  $self->log(LOGINFO,
+             "The check_$whoami plugin is deprecated; see" .
+             "/usr/share/doc/qpsmtpd/README.check_plugins for details.");
+  $self->isa_plugin($whoami);
+}
diff -aruN qpsmtpd-0.94.orig/plugins/check_badrcptto qpsmtpd-0.94/plugins/check_badrcptto
--- qpsmtpd-0.94.orig/plugins/check_badrcptto	1969-12-31 16:00:00.000000000 -0800
+++ qpsmtpd-0.94/plugins/check_badrcptto	2015-02-21 23:34:00.009670201 -0800
@@ -0,0 +1,14 @@
+# Backwards-compatibility wrapper; qpsmtpd 0.94 renamed the check_* plugins
+# from the upstream distribution to remove the check_ prefix.  This plugin
+# exists to allow older, un-migrated configurations to work properly with
+# the 0.94 release.
+
+my $whoami = 'badrcptto';
+
+sub init {
+  my $self = shift;
+  $self->log(LOGINFO,
+             "The check_$whoami plugin is deprecated; see" .
+             "/usr/share/doc/qpsmtpd/README.check_plugins for details.");
+  $self->isa_plugin($whoami);
+}
diff -aruN qpsmtpd-0.94.orig/plugins/check_earlytalker qpsmtpd-0.94/plugins/check_earlytalker
--- qpsmtpd-0.94.orig/plugins/check_earlytalker	1969-12-31 16:00:00.000000000 -0800
+++ qpsmtpd-0.94/plugins/check_earlytalker	2015-02-21 23:34:00.005670303 -0800
@@ -0,0 +1,14 @@
+# Backwards-compatibility wrapper; qpsmtpd 0.94 renamed the check_* plugins
+# from the upstream distribution to remove the check_ prefix.  This plugin
+# exists to allow older, un-migrated configurations to work properly with
+# the 0.94 release.
+
+my $whoami = 'earlytalker';
+
+sub init {
+  my $self = shift;
+  $self->log(LOGINFO,
+             "The check_$whoami plugin is deprecated; see" .
+             "/usr/share/doc/qpsmtpd/README.check_plugins for details.");
+  $self->isa_plugin($whoami);
+}
diff -aruN qpsmtpd-0.94.orig/plugins/check_loop qpsmtpd-0.94/plugins/check_loop
--- qpsmtpd-0.94.orig/plugins/check_loop	1969-12-31 16:00:00.000000000 -0800
+++ qpsmtpd-0.94/plugins/check_loop	2015-02-21 23:34:00.009670201 -0800
@@ -0,0 +1,14 @@
+# Backwards-compatibility wrapper; qpsmtpd 0.94 renamed the check_* plugins
+# from the upstream distribution to remove the check_ prefix.  This plugin
+# exists to allow older, un-migrated configurations to work properly with
+# the 0.94 release.
+
+my $whoami = 'loop';
+
+sub init {
+  my $self = shift;
+  $self->log(LOGINFO,
+             "The check_$whoami plugin is deprecated; see" .
+             "/usr/share/doc/qpsmtpd/README.check_plugins for details.");
+  $self->isa_plugin($whoami);
+}
diff -aruN qpsmtpd-0.94.orig/plugins/check_relay qpsmtpd-0.94/plugins/check_relay
--- qpsmtpd-0.94.orig/plugins/check_relay	1969-12-31 16:00:00.000000000 -0800
+++ qpsmtpd-0.94/plugins/check_relay	2015-02-21 23:34:00.005670303 -0800
@@ -0,0 +1,14 @@
+# Backwards-compatibility wrapper; qpsmtpd 0.94 renamed the check_* plugins
+# from the upstream distribution to remove the check_ prefix.  This plugin
+# exists to allow older, un-migrated configurations to work properly with
+# the 0.94 release.
+
+my $whoami = 'relay';
+
+sub init {
+  my $self = shift;
+  $self->log(LOGINFO,
+             "The check_$whoami plugin is deprecated; see" .
+             "/usr/share/doc/qpsmtpd/README.check_plugins for details.");
+  $self->isa_plugin($whoami);
+}
diff -aruN qpsmtpd-0.94.orig/plugins/check_spamhelo qpsmtpd-0.94/plugins/check_spamhelo
--- qpsmtpd-0.94.orig/plugins/check_spamhelo	1969-12-31 16:00:00.000000000 -0800
+++ qpsmtpd-0.94/plugins/check_spamhelo	2015-02-21 23:41:26.544049127 -0800
@@ -0,0 +1,12 @@
+# Backwards-compatibility wrapper; qpsmtpd 0.94 renamed the check_* plugins
+# from the upstream distribution to remove the check_ prefix.  This plugin
+# exists to allow older, un-migrated configurations to work properly with
+# the 0.94 release.
+
+sub init {
+  my $self = shift;
+  $self->log(LOGINFO,
+             "The check_spamhelo plugin is deprecated; see" .
+             "/usr/share/doc/qpsmtpd/README.check_plugins for details.");
+  $self->isa_plugin('helo');
+}