1 |
jpp |
1.2 |
# $Id: smeserver-sendmail-wrapper.spec,v 1.1 2017/08/18 17:05:57 unnilennium Exp $ |
2 |
unnilennium |
1.1 |
# 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 |
jpp |
1.2 |
%define release 2 |
9 |
unnilennium |
1.1 |
Name: %{name} |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: Applications/System |
14 |
|
|
Source: %{name}-%{version}.tgz |
15 |
jpp |
1.2 |
Patch0: smeserver-sendmail-wrapper-0.1-logfile.patch |
16 |
unnilennium |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
|
|
BuildArch: noarch |
18 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
19 |
|
|
Requires: smeserver-release >= 9.0 |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
sendmail wrapper and templates to redirect php emails to qpsmtpd instead of qmail. |
23 |
|
|
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. |
24 |
|
|
|
25 |
|
|
%prep |
26 |
|
|
%setup |
27 |
jpp |
1.2 |
%patch0 -p1 |
28 |
|
|
mkdir -p root/var/log/sendmail |
29 |
unnilennium |
1.1 |
|
30 |
|
|
%build |
31 |
|
|
#/usr/bin/perl createlinks |
32 |
|
|
|
33 |
|
|
%install |
34 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
35 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
36 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
37 |
jpp |
1.2 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
38 |
|
|
| grep -v var/log/sendmail > %{name}-%{version}-filelist |
39 |
unnilennium |
1.1 |
|
40 |
|
|
%files -f %{name}-%{version}-filelist |
41 |
|
|
%defattr(-,root,root,-) |
42 |
jpp |
1.2 |
%attr( 770 , www,www) /var/log/sendmail |
43 |
unnilennium |
1.1 |
|
44 |
|
|
%clean |
45 |
|
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
|
47 |
|
|
%post |
48 |
|
|
touch /etc/hosts.deny_ssh |
49 |
|
|
|
50 |
|
|
%changelog |
51 |
jpp |
1.2 |
* Fri Mar 02 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme |
52 |
|
|
- fix log not accessible [SME: 10525] |
53 |
|
|
|
54 |
unnilennium |
1.1 |
* Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-1.sme |
55 |
|
|
- Initial version |