1 |
michel |
1.1 |
Summary: E-mail white/black lists for SME Server |
2 |
|
|
%define name smeserver-wbl |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 0.5.0 |
5 |
|
|
%define release 01 |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
Group: SME Server/addon |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
12 |
|
|
BuildArchitectures: noarch |
13 |
|
|
BuildRequires: e-smith-devtools |
14 |
|
|
Requires: smeserver-manager => 0.1.0-23 |
15 |
|
|
Requires: smeserver-release => 10.0 |
16 |
|
|
Requires: qpsmtpd >= 0.96-19 |
17 |
|
|
AutoReqProv: no |
18 |
|
|
#Patch0: smeserver-wbl-0.5.0-init.patch |
19 |
|
|
|
20 |
|
|
%description |
21 |
|
|
%name is an addon for SME Server that provides the following WBLs: |
22 |
|
|
qpsmtpd check_badmailfrom /var/qmail/control/badmailfrom |
23 |
|
|
qpsmtpd check_spamhelo /var/service/qpsmtpd/config/badhelo |
24 |
|
|
qpsmtpd whitelist_soft /var/service/qpsmtpd/config/whitelisthosts whitelisthelo whitelistsenders |
25 |
|
|
spamassassin /etc/mail/spammassassin/local.cf whitelist_from |
26 |
|
|
|
27 |
|
|
%changelog |
28 |
|
|
* Mon Jun 08 2020 Michel Begue <mab974@gmail.com> 0.5.0-01.sme |
29 |
|
|
- initial release for smeserver-manager (sme10) |
30 |
|
|
- [0.3.0-19.sme9] |
31 |
|
|
|
32 |
|
|
%prep |
33 |
|
|
%setup |
34 |
|
|
#%patch0 -p1 |
35 |
|
|
|
36 |
|
|
%build |
37 |
|
|
perl createlinks |
38 |
|
|
|
39 |
|
|
%install |
40 |
|
|
rm -rf $RPM_BUILD_ROOT |
41 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
42 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
43 |
|
|
echo "%doc " >> %{name}-%{version}-filelist |
44 |
|
|
|
45 |
|
|
%clean |
46 |
|
|
cd .. |
47 |
|
|
rm -rf %{name}-%{version} |
48 |
|
|
|
49 |
|
|
%files -f %{name}-%{version}-filelist |
50 |
|
|
%defattr(-,root,root) |
51 |
|
|
|