-
Notifications
You must be signed in to change notification settings - Fork 0
/
simscan.spec
210 lines (191 loc) · 8.27 KB
/
simscan.spec
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
Name: simscan
Summary: Simscan for qmail-toaster
Version: 1.4.0
Release: 0%{?dist}
License: GPLv2
Group: Networking/Other
Vendor: QmailToaster
Packager: Eric Shubert <[email protected]>
URL: http://inter7.com/index.php?page=simscan
Source0: http://downloads.sourceforge.net/project/simscan/simscan/simscan-1.4.0/%{name}-%{version}.tar.gz
Source1: update-simscan
Source2: simcontrol
Patch0: simscan-1.4.0-combined.4.patch
Patch1: simscan-o_create.patch
Patch2: simscan-nouserchk.patch
Patch3: simscan-noripchk.patch
Patch4: simscan-nosapchk.patch
Patch5: simscan-nocavdbchk.patch
Patch6: simscan-nostlchk.patch
Requires: clamav
Requires: qmail
Requires: ripmime
Requires: spamassassin
Obsoletes: simscan-toaster
BuildRoot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{_arch}
%define qdir /var/qmail
%define qbin %{qdir}/bin
%define qcon %{qdir}/control
%define qtcp %{_sysconfdir}/tcprules.d/tcp.smtp
%define debug_package %{nil}
#-------------------------------------------------------------------------------
%description
#-------------------------------------------------------------------------------
SimScan is a simplified scanner for qmail similar to qmail-scanner and qscand.
It uses clamav, trophie, spamassassin, and/or dspam.
It also supports attachment blocking by extension.
Simscan is written entirely in C to ensure maximum speed.
There are options to allow simscan to scan per domain, and reject spam mail.
Current settings
---------------------------------------
user = clamav
qmail directory = /var/qmail
work directory = /var/qmail/simscan
control directory = /var/qmail/control
qmail queue program = /var/qmail/bin/qmail-queue
clamdscan program = /usr/bin/clamdscan
clamav scan = ON
trophie scanning = OFF
attachement scan = ON
ripmime program = /usr/bin/ripmime
custom smtp reject = ON
drop message = OFF
regex scanner = OFF
quarantine processing = OFF
domain based checking = ON
add received header = ON
spam scanning = ON
spamassassin program = /usr/bin/spamassassin
spamc program = /usr/bin/spamc
spamc arguments =
spamc user = OFF
authenticated users scanned = OFF
spam passthru = OFF
spam hits = 40
#-------------------------------------------------------------------------------
%prep
#-------------------------------------------------------------------------------
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
#-------------------------------------------------------------------------------
%build
#-------------------------------------------------------------------------------
%configure \
--enable-attach \
--enable-clamdscan=/usr/bin/clamdscan \
--enable-clamavdb-path=/usr/share/clamav \
--enable-custom-smtp-reject \
--enable-per-domain \
--enable-qmaildir=/var/qmail \
--enable-qmail-queue=/var/qmail/bin/qmail-queue \
--enable-received \
--enable-ripmime=/usr/bin/ripmime \
--enable-sigtool-path=/usr/bin/sigtool \
--enable-spam \
--enable-spam-hits=40 \
--enable-spamassassin-path=/usr/bin/spamassassin \
--enable-spamc=/usr/bin/spamc \
--enable-user=clamav
%{__make}
#-------------------------------------------------------------------------------
%install
#-------------------------------------------------------------------------------
rm -rf %{buildroot}
install -d %{buildroot}%{qdir}
install -d %{buildroot}%{qdir}/%{name}
install -Dp %{SOURCE1} %{buildroot}%{qbin}/update-simscan
install -Dp %{SOURCE2} %{buildroot}%{qcon}/simcontrol
install %{_builddir}/%{name}-%{version}/%{name} %{buildroot}%{qbin}/%{name}
install %{_builddir}/%{name}-%{version}/simscanmk %{buildroot}%{qbin}/simscanmk
for i in AUTHORS ChangeLog INSTALL README TODO ssattach.example; do
install -Dp %{_builddir}/%{name}-%{version}/$i \
%{buildroot}%{_datadir}/doc/%{name}-%{version}/$i
done
#-------------------------------------------------------------------------------
%clean
#-------------------------------------------------------------------------------
rm -rf %{buildroot}
#-------------------------------------------------------------------------------
%post
#-------------------------------------------------------------------------------
./%{qbin}/update-%{name}
#-------------------------------------------------------------------------------
%files
#-------------------------------------------------------------------------------
%defattr(644,clamav,clamav)
%attr(0750,clamav,root) %dir %{qdir}/%{name}
%attr(4711,clamav,root) %{qbin}/%{name}
%attr(4755,root,root) %{qbin}/simscanmk
%attr(0755,root,root) %{qbin}/update-%{name}
%attr(0644,root,root) %{_datadir}/doc/%{name}-%{version}/*
%attr(0644,clamav,root) %config(noreplace) %{qcon}/simcontrol
#-------------------------------------------------------------------------------
%changelog
#-------------------------------------------------------------------------------
* Sat Nov 16 2013 Eric Shubert <[email protected]> 1.4.0-0.qt
- Migrated to repoforge
- Removed -toaster designation
- Added CentOS 6 support
- Removed unsupported cruft
* Mon Mar 26 2012 Eric Shubert <[email protected]> 1.4.0-1.4.0
- Changed jms1 combined 3 patch to combined 4 patch
- Set o+s on simscanmk file so that non-root users can run it
- Added update-simscan script for running simscanmk from freshclam etc.
- Modified simcontrol file to be %config(noreplace)
* Thu Aug 13 2009 Jake Vickers <[email protected]> 1.4.0-1.3.8
- Changed minor version number to align with version changes and scripts
* Fri Jun 12 2009 Jake Vickers <[email protected]> 1.4.0-1.3.1
- Changed spec file so that tcp.smtp file is no longer overwritten and a tcp.smtp.new is created
- Added Fedora 11 support
- Added Fedora 11 x86_64 support
* Thu Jun 11 2009 Jake Vickers <[email protected]> 1.4.0-1.3.1
- Added Mandriva 2009 support
- Increased spam_hits to 40 from the original 20
* Thu Apr 23 2009 Jake Vickers <[email protected]> 1.4.0-1.3.0
- Merged the fork into the main QMT trunk. Thanks to Steve for the package and testing.
- Added Suse 11.1, Fedora 9, Fedora 9 x86_64, Fedora 10, and Fedora 10 x86_64 support
- Patched simscanmk.c to compile with new distro compiler flags (O_CREAT error)
* Wed May 7 2008 Steve Huff <[email protected]> 1.4.0-1.4.0
- Updated to simscan 1.4.0
- Added John Simpson's patch to support varying ClamAV update file locations
(http://qmail.jms1.net/simscan/)
* Sat Apr 14 2007 Nick Hemmesch <[email protected]> 1.2-1.3.6
- Added CentOS 5 i386 support
- Added CentOS 5 x86_64 support
- Removed DKVERIFY - domainkeys now only signs outgoing mail
* Sat Mar 03 2007 Erik A. Espinoza <[email protected]> 1.3.1-1.3.5
- Skipped RBL checks on localhost
- Modified DKVERIFY to safer defaults
* Thu Jan 11 2007 Erik A. Espinoza <[email protected]> 1.3.1-1.3.4
- Added fix to allow building with ClamAV 0.90rc2 and above, which doesn't use daily.cvd and main.cvd
* Mon Jan 08 2007 Erik A. Espinoza <[email protected]> 1.3.1-1.3.3
- Upgraded to Simscan 1.3.1
* Wed Nov 01 2006 Erik A. Espinoza <[email protected]> 1.2-1.3.2
- Added Fedora Core 6 support
* Mon Jun 05 2006 Nick Hemmesch <[email protected]> 1.2-1.3.1
- Added per domain and spam hits to config
- Added SuSE 10.1 support
* Thu May 18 2006 Erik A. Espinoza <[email protected]> 1.2-1.2.8
- Enabled simscan in configure line
- Added ripmime-toaster to Requires line
* Sat May 13 2006 Nick Hemmesch <[email protected]> 1.2-1.2.7
- Update to simscan-1.2
- Add Fedora Core 5 support
* Sun Nov 20 2005 Nick Hemmesch <[email protected]> 1.1-1.2.6
- Add SuSE 10.0 and Mandriva 2006.0 support
* Sat Oct 15 2005 Nick Hemmesch <[email protected]> 1.1-1.2.5
- Add Fedora Core 4 x86_64 support
* Sat Oct 01 2005 Nick Hemmesch <[email protected]> 1.1-1.2.4
- Add CentOS 4 x86_64 support
* Fri Jul 01 2005 Nick Hemmesch <[email protected]> 1.1-1.2.3
- Add support for Fedora Core 4
* Fri Jun 03 2005 Torbjorn Turpeinen <[email protected]> 1.1-1.2.2
- Gnu/Linux Mandrake 10.0,10.1,10.2 support
* Sat May 28 2005 Nick Hemmesch <[email protected]> 1.1-1.2.1
- Initial simscan-toaster build