1 |
snetram |
1.1 |
--- smeserver-mailstats-0.0.3/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/99smeserver-mailstats.sql.addRunOrderSequence2 2008-10-13 23:27:41.000000000 +0200 |
2 |
|
|
+++ smeserver-mailstats-0.0.3/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/99smeserver-mailstats.sql 2008-10-13 23:25:39.000000000 +0200 |
3 |
|
|
@@ -0,0 +1 @@ |
4 |
|
|
+PERMS=0540 |
5 |
|
|
--- smeserver-mailstats-0.0.3/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/smeserver-mailstats.sql 2008-10-13 23:25:39.000000000 +0200 |
6 |
|
|
+++ /dev/null 2008-10-13 23:27:17.000000000 +0200 |
7 |
|
|
@@ -1 +0,0 @@ |
8 |
|
|
-PERMS=0540 |
9 |
|
|
--- smeserver-mailstats-0.0.3/root/etc/e-smith/templates/etc/e-smith/sql/init/smeserver-mailstats.sql 2008-10-13 23:10:29.000000000 +0200 |
10 |
|
|
+++ /dev/null 2008-10-13 23:13:43.000000000 +0200 |
11 |
|
|
@@ -1,91 +0,0 @@ |
12 |
|
|
-CREATE DATABASE IF NOT EXISTS `mailstats`; |
13 |
|
|
- |
14 |
|
|
-USE `mailstats`; |
15 |
|
|
- |
16 |
|
|
-CREATE TABLE IF NOT EXISTS `ColumnStats` ( |
17 |
|
|
- `ColumnStatsid` int(11) NOT NULL auto_increment, |
18 |
|
|
- `dateid` int(11) NOT NULL default '0', |
19 |
|
|
- `timeid` int(11) NOT NULL default '0', |
20 |
|
|
- `descr` varchar(20) NOT NULL default '', |
21 |
|
|
- `count` bigint(20) NOT NULL default '0', |
22 |
|
|
- `servername` varchar(30) NOT NULL default '', |
23 |
|
|
- PRIMARY KEY (`ColumnStatsid`) |
24 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
25 |
|
|
- |
26 |
|
|
-CREATE TABLE IF NOT EXISTS `JunkMailStats` ( |
27 |
|
|
- `JunkMailstatsid` int(11) NOT NULL auto_increment, |
28 |
|
|
- `dateid` int(11) NOT NULL default '0', |
29 |
|
|
- `user` varchar(12) NOT NULL default '', |
30 |
|
|
- `count` bigint(20) NOT NULL default '0', |
31 |
|
|
- `servername` varchar(30) default NULL, |
32 |
|
|
- PRIMARY KEY (`JunkMailstatsid`) |
33 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
34 |
|
|
- |
35 |
|
|
-CREATE TABLE IF NOT EXISTS `SARules` ( |
36 |
|
|
- `SARulesid` int(11) NOT NULL auto_increment, |
37 |
|
|
- `dateid` int(11) NOT NULL default '0', |
38 |
|
|
- `rule` varchar(50) NOT NULL default '', |
39 |
|
|
- `count` bigint(20) NOT NULL default '0', |
40 |
|
|
- `totalhits` bigint(20) NOT NULL default '0', |
41 |
|
|
- `servername` varchar(30) NOT NULL default '', |
42 |
|
|
- PRIMARY KEY (`SARulesid`) |
43 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
44 |
|
|
- |
45 |
|
|
-CREATE TABLE IF NOT EXISTS `SAscores` ( |
46 |
|
|
- `SAscoresid` int(11) NOT NULL auto_increment, |
47 |
|
|
- `dateid` int(11) NOT NULL default '0', |
48 |
|
|
- `acceptedcount` bigint(20) NOT NULL default '0', |
49 |
|
|
- `rejectedcount` bigint(20) NOT NULL default '0', |
50 |
|
|
- `hamcount` bigint(20) NOT NULL default '0', |
51 |
|
|
- `acceptedscore` decimal(20,2) NOT NULL default '0.00', |
52 |
|
|
- `rejectedscore` decimal(20,2) NOT NULL default '0.00', |
53 |
|
|
- `hamscore` decimal(20,2) NOT NULL default '0.00', |
54 |
|
|
- `totalsmtp` bigint(20) NOT NULL default '0', |
55 |
|
|
- `totalrecip` bigint(20) NOT NULL default '0', |
56 |
|
|
- `servername` varchar(30) NOT NULL default '', |
57 |
|
|
- PRIMARY KEY (`SAscoresid`) |
58 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
59 |
|
|
- |
60 |
|
|
-CREATE TABLE IF NOT EXISTS `VirusStats` ( |
61 |
|
|
- `VirusStatsid` int(11) NOT NULL auto_increment, |
62 |
|
|
- `dateid` int(11) NOT NULL default '0', |
63 |
|
|
- `descr` varchar(40) NOT NULL default '', |
64 |
|
|
- `count` bigint(20) NOT NULL default '0', |
65 |
|
|
- `servername` varchar(30) NOT NULL default '', |
66 |
|
|
- PRIMARY KEY (`VirusStatsid`) |
67 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
68 |
|
|
- |
69 |
|
|
-CREATE TABLE IF NOT EXISTS `date` ( |
70 |
|
|
- `dateid` int(11) NOT NULL auto_increment, |
71 |
|
|
- `date` date NOT NULL default '0000-00-00', |
72 |
|
|
- PRIMARY KEY (`dateid`) |
73 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
74 |
|
|
- |
75 |
|
|
- |
76 |
|
|
-CREATE TABLE IF NOT EXISTS `domains` ( |
77 |
|
|
- `domainsid` int(11) NOT NULL auto_increment, |
78 |
|
|
- `dateid` int(11) NOT NULL default '0', |
79 |
|
|
- `domain` varchar(40) NOT NULL default '', |
80 |
|
|
- `type` varchar(10) NOT NULL default '', |
81 |
|
|
- `total` bigint(20) NOT NULL default '0', |
82 |
|
|
- `denied` bigint(20) NOT NULL default '0', |
83 |
|
|
- `xfererr` bigint(20) NOT NULL default '0', |
84 |
|
|
- `accept` bigint(20) NOT NULL default '0', |
85 |
|
|
- `servername` varchar(30) NOT NULL default '', |
86 |
|
|
- PRIMARY KEY (`domainsid`) |
87 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
88 |
|
|
- |
89 |
|
|
-CREATE TABLE IF NOT EXISTS `qpsmtpdcodes` ( |
90 |
|
|
- `qpsmtpdcodesid` int(11) NOT NULL auto_increment, |
91 |
|
|
- `dateid` int(11) NOT NULL default '0', |
92 |
|
|
- `reason` varchar(40) NOT NULL default '', |
93 |
|
|
- `count` bigint(20) NOT NULL default '0', |
94 |
|
|
- `servername` varchar(30) NOT NULL default '', |
95 |
|
|
- PRIMARY KEY (`qpsmtpdcodesid`) |
96 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
97 |
|
|
- |
98 |
|
|
-CREATE TABLE IF NOT EXISTS `time` ( |
99 |
|
|
- `timeid` int(11) NOT NULL auto_increment, |
100 |
|
|
- `time` time NOT NULL default '00:00:00', |
101 |
|
|
- PRIMARY KEY (`timeid`) |
102 |
|
|
-) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
103 |
|
|
--- smeserver-mailstats-0.0.3/root/etc/e-smith/templates/etc/e-smith/sql/init/99smeserver-mailstats.sql.addRunOrderSequence 2008-10-13 23:13:14.000000000 +0200 |
104 |
|
|
+++ smeserver-mailstats-0.0.3/root/etc/e-smith/templates/etc/e-smith/sql/init/99smeserver-mailstats.sql 2008-10-13 23:10:29.000000000 +0200 |
105 |
|
|
@@ -0,0 +1,91 @@ |
106 |
|
|
+CREATE DATABASE IF NOT EXISTS `mailstats`; |
107 |
|
|
+ |
108 |
|
|
+USE `mailstats`; |
109 |
|
|
+ |
110 |
|
|
+CREATE TABLE IF NOT EXISTS `ColumnStats` ( |
111 |
|
|
+ `ColumnStatsid` int(11) NOT NULL auto_increment, |
112 |
|
|
+ `dateid` int(11) NOT NULL default '0', |
113 |
|
|
+ `timeid` int(11) NOT NULL default '0', |
114 |
|
|
+ `descr` varchar(20) NOT NULL default '', |
115 |
|
|
+ `count` bigint(20) NOT NULL default '0', |
116 |
|
|
+ `servername` varchar(30) NOT NULL default '', |
117 |
|
|
+ PRIMARY KEY (`ColumnStatsid`) |
118 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
119 |
|
|
+ |
120 |
|
|
+CREATE TABLE IF NOT EXISTS `JunkMailStats` ( |
121 |
|
|
+ `JunkMailstatsid` int(11) NOT NULL auto_increment, |
122 |
|
|
+ `dateid` int(11) NOT NULL default '0', |
123 |
|
|
+ `user` varchar(12) NOT NULL default '', |
124 |
|
|
+ `count` bigint(20) NOT NULL default '0', |
125 |
|
|
+ `servername` varchar(30) default NULL, |
126 |
|
|
+ PRIMARY KEY (`JunkMailstatsid`) |
127 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
128 |
|
|
+ |
129 |
|
|
+CREATE TABLE IF NOT EXISTS `SARules` ( |
130 |
|
|
+ `SARulesid` int(11) NOT NULL auto_increment, |
131 |
|
|
+ `dateid` int(11) NOT NULL default '0', |
132 |
|
|
+ `rule` varchar(50) NOT NULL default '', |
133 |
|
|
+ `count` bigint(20) NOT NULL default '0', |
134 |
|
|
+ `totalhits` bigint(20) NOT NULL default '0', |
135 |
|
|
+ `servername` varchar(30) NOT NULL default '', |
136 |
|
|
+ PRIMARY KEY (`SARulesid`) |
137 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
138 |
|
|
+ |
139 |
|
|
+CREATE TABLE IF NOT EXISTS `SAscores` ( |
140 |
|
|
+ `SAscoresid` int(11) NOT NULL auto_increment, |
141 |
|
|
+ `dateid` int(11) NOT NULL default '0', |
142 |
|
|
+ `acceptedcount` bigint(20) NOT NULL default '0', |
143 |
|
|
+ `rejectedcount` bigint(20) NOT NULL default '0', |
144 |
|
|
+ `hamcount` bigint(20) NOT NULL default '0', |
145 |
|
|
+ `acceptedscore` decimal(20,2) NOT NULL default '0.00', |
146 |
|
|
+ `rejectedscore` decimal(20,2) NOT NULL default '0.00', |
147 |
|
|
+ `hamscore` decimal(20,2) NOT NULL default '0.00', |
148 |
|
|
+ `totalsmtp` bigint(20) NOT NULL default '0', |
149 |
|
|
+ `totalrecip` bigint(20) NOT NULL default '0', |
150 |
|
|
+ `servername` varchar(30) NOT NULL default '', |
151 |
|
|
+ PRIMARY KEY (`SAscoresid`) |
152 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
153 |
|
|
+ |
154 |
|
|
+CREATE TABLE IF NOT EXISTS `VirusStats` ( |
155 |
|
|
+ `VirusStatsid` int(11) NOT NULL auto_increment, |
156 |
|
|
+ `dateid` int(11) NOT NULL default '0', |
157 |
|
|
+ `descr` varchar(40) NOT NULL default '', |
158 |
|
|
+ `count` bigint(20) NOT NULL default '0', |
159 |
|
|
+ `servername` varchar(30) NOT NULL default '', |
160 |
|
|
+ PRIMARY KEY (`VirusStatsid`) |
161 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
162 |
|
|
+ |
163 |
|
|
+CREATE TABLE IF NOT EXISTS `date` ( |
164 |
|
|
+ `dateid` int(11) NOT NULL auto_increment, |
165 |
|
|
+ `date` date NOT NULL default '0000-00-00', |
166 |
|
|
+ PRIMARY KEY (`dateid`) |
167 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
168 |
|
|
+ |
169 |
|
|
+ |
170 |
|
|
+CREATE TABLE IF NOT EXISTS `domains` ( |
171 |
|
|
+ `domainsid` int(11) NOT NULL auto_increment, |
172 |
|
|
+ `dateid` int(11) NOT NULL default '0', |
173 |
|
|
+ `domain` varchar(40) NOT NULL default '', |
174 |
|
|
+ `type` varchar(10) NOT NULL default '', |
175 |
|
|
+ `total` bigint(20) NOT NULL default '0', |
176 |
|
|
+ `denied` bigint(20) NOT NULL default '0', |
177 |
|
|
+ `xfererr` bigint(20) NOT NULL default '0', |
178 |
|
|
+ `accept` bigint(20) NOT NULL default '0', |
179 |
|
|
+ `servername` varchar(30) NOT NULL default '', |
180 |
|
|
+ PRIMARY KEY (`domainsid`) |
181 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
182 |
|
|
+ |
183 |
|
|
+CREATE TABLE IF NOT EXISTS `qpsmtpdcodes` ( |
184 |
|
|
+ `qpsmtpdcodesid` int(11) NOT NULL auto_increment, |
185 |
|
|
+ `dateid` int(11) NOT NULL default '0', |
186 |
|
|
+ `reason` varchar(40) NOT NULL default '', |
187 |
|
|
+ `count` bigint(20) NOT NULL default '0', |
188 |
|
|
+ `servername` varchar(30) NOT NULL default '', |
189 |
|
|
+ PRIMARY KEY (`qpsmtpdcodesid`) |
190 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
191 |
|
|
+ |
192 |
|
|
+CREATE TABLE IF NOT EXISTS `time` ( |
193 |
|
|
+ `timeid` int(11) NOT NULL auto_increment, |
194 |
|
|
+ `time` time NOT NULL default '00:00:00', |
195 |
|
|
+ PRIMARY KEY (`timeid`) |
196 |
|
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
197 |
|
|
--- smeserver-mailstats-0.0.3/createlinks.addRunOrderSequence 2008-10-13 23:10:29.000000000 +0200 |
198 |
|
|
+++ smeserver-mailstats-0.0.3/createlinks 2008-10-13 23:12:26.000000000 +0200 |
199 |
|
|
@@ -2,4 +2,4 @@ |
200 |
|
|
|
201 |
|
|
use esmith::Build::CreateLinks qw(:all); |
202 |
|
|
|
203 |
|
|
-templates2events("/etc/e-smith/sql/init/smeserver-mailstats.sql", "post-upgrade"); |
204 |
|
|
+templates2events("/etc/e-smith/sql/init/99smeserver-mailstats.sql", "post-upgrade"); |