1 |
# $Id: smeserver-sendmail-wrapper.spec,v 1.2 2021/11/07 02:58:16 jpp Exp $ |
2 |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
4 |
|
5 |
Summary: smeserver-sendmail-wrapper |
6 |
%define name smeserver-sendmail-wrapper |
7 |
%define version 0.1 |
8 |
%define release 5 |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Applications/System |
14 |
Source: %{name}-%{version}.tgz |
15 |
Patch0: smeserver-sendmail-wrapper-0.1-logfile.patch |
16 |
Patch1: smeserver-sendmail-wrapper-0.1-domainName.patch |
17 |
Patch2: smeserver-sendmail-wrapper-0.1-fixlogrotate.patch |
18 |
Patch3: smeserver-sendmail-wrapper-0.1-bz10737-php73.patch |
19 |
Patch4: smeserver-sendmail-wrapper-0.1-bz11739-sme10.patch |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArch: noarch |
22 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
23 |
Requires: smeserver-release >= 9.0 |
24 |
|
25 |
%description |
26 |
sendmail wrapper and templates to redirect php emails to qpsmtpd instead of qmail. |
27 |
This is intended to introduce a little more verification before sending email thanks to the plugins of qpsmtpd instead of simply sending them blindly withthe qmail sendmail wrapper. |
28 |
|
29 |
%prep |
30 |
%setup |
31 |
%patch0 -p1 |
32 |
%patch1 -p1 |
33 |
%patch2 -p1 |
34 |
%patch3 -p1 |
35 |
mkdir -p root/var/log/sendmail |
36 |
|
37 |
rm -rf root/etc/e-smith/templates/opt |
38 |
%patch4 -p1 |
39 |
|
40 |
%build |
41 |
/usr/bin/perl createlinks |
42 |
|
43 |
%install |
44 |
/bin/rm -rf $RPM_BUILD_ROOT |
45 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
46 |
/bin/rm -f %{name}-%{version}-filelist |
47 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
48 |
| grep -v var/log/sendmail > %{name}-%{version}-filelist |
49 |
|
50 |
%files -f %{name}-%{version}-filelist |
51 |
%defattr(-,root,root,-) |
52 |
%attr( 770 , www,www) /var/log/sendmail |
53 |
|
54 |
%clean |
55 |
rm -rf $RPM_BUILD_ROOT |
56 |
|
57 |
%post |
58 |
touch /etc/hosts.deny_ssh |
59 |
|
60 |
%changelog |
61 |
* Sat Nov 06 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-5.sme |
62 |
- import to SME10 [SME: 11739] |
63 |
|
64 |
* Tue Apr 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme |
65 |
- add php73 support [SME: 10737] |
66 |
fix typo for php72 |
67 |
|
68 |
* Wed Mar 07 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme |
69 |
- fix error on logrotate [SME: 10525] |
70 |
|
71 |
* Fri Mar 02 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme |
72 |
- fix log not accessible [SME: 10525] |
73 |
moved to a www writable directory, also a logrotate has been added |
74 |
- fix sendmail wrapper fails if not used by root |
75 |
|
76 |
* Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-1.sme |
77 |
- Initial version |