/[smecontribs]/rpms/smeserver-sendmail-wrapper/contribs9/smeserver-sendmail-wrapper.spec
ViewVC logotype

Contents of /rpms/smeserver-sendmail-wrapper/contribs9/smeserver-sendmail-wrapper.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Sat Mar 3 05:35:37 2018 UTC (6 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-sendmail-wrapper-0_1-2_el6_sme
Changes since 1.2: +5 -1 lines
* Fri Mar 02 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme
- fix log not accessible [SME: 10525]
  moved to a www writable directory, also a logrotate has been added
- fix sendmail wrapper fails if not used by root

1 # $Id: smeserver-sendmail-wrapper.spec,v 1.2 2018/03/03 05:08:40 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 2
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 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18 BuildArch: noarch
19 BuildRequires: e-smith-devtools >= 1.13.1-03
20 Requires: smeserver-release >= 9.0
21
22 %description
23 sendmail wrapper and templates to redirect php emails to qpsmtpd instead of qmail.
24 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.
25
26 %prep
27 %setup
28 %patch0 -p1
29 %patch1 -p1
30 mkdir -p root/var/log/sendmail
31
32 %build
33 #/usr/bin/perl createlinks
34
35 %install
36 /bin/rm -rf $RPM_BUILD_ROOT
37 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
38 /bin/rm -f %{name}-%{version}-filelist
39 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
40 | grep -v var/log/sendmail > %{name}-%{version}-filelist
41
42 %files -f %{name}-%{version}-filelist
43 %defattr(-,root,root,-)
44 %attr( 770 , www,www) /var/log/sendmail
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 touch /etc/hosts.deny_ssh
51
52 %changelog
53 * Fri Mar 02 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme
54 - fix log not accessible [SME: 10525]
55 moved to a www writable directory, also a logrotate has been added
56 - fix sendmail wrapper fails if not used by root
57
58 * Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-1.sme
59 - Initial version

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed