1 |
# $Id: e-smith-email.spec,v 1.5 2016/06/07 06:57:30 vip-ire Exp $ |
# $Id: e-smith-email.spec,v 1.14 2021/09/16 18:57:31 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - email module |
Summary: e-smith server and gateway - email module |
4 |
%define name e-smith-email |
%define name e-smith-email |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 5.6.0 |
%define version 5.6.0 |
7 |
%define release 6 |
%define release 15 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
14 |
Patch1: e-smith-email-5.6.0-qpsmtpd_in_auth_proxy.patch |
Patch1: e-smith-email-5.6.0-qpsmtpd_in_auth_proxy.patch |
15 |
Patch2: e-smith-email-5.6.0-qpsmtpd_in_masq_templates.patch |
Patch2: e-smith-email-5.6.0-qpsmtpd_in_masq_templates.patch |
16 |
Patch3: e-smith-email-5.6.0-mysqld2mariadb.patch |
Patch3: e-smith-email-5.6.0-mysqld2mariadb.patch |
17 |
|
Patch4: e-smith-email-5.6.0-bz3802-create-local-pseudo.patch |
18 |
|
Patch5: e-smith-email-5.6.0-bz11133-bz11102-systemd-update.patch |
19 |
|
Patch6: e-smith-email-5.6.0-bz11443-webmailOnlySSL.patch |
20 |
|
Patch7: e-smith-email-5.6.0-bz11265-rar.patch |
21 |
|
Patch8: e-smith-email-5.6.0-bz11634-lock.patch |
22 |
|
Patch9: e-smith-email-5.6.0-bz11690-fixtypo.patch |
23 |
|
Patch10: e-smith-email-5.6.0-bz11716-untaint.patch |
24 |
|
|
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
Requires: e-smith-base >= 4.15.0-39 |
Requires: e-smith-base >= 4.15.0-39 |
27 |
Requires: e-smith-tinydns >= 1.0.0-5 |
Requires: e-smith-tinydns >= 1.0.0-5 |
49 |
%patch1 -p1 |
%patch1 -p1 |
50 |
%patch2 -p1 |
%patch2 -p1 |
51 |
%patch3 -p1 |
%patch3 -p1 |
52 |
|
%patch4 -p1 |
53 |
|
%patch5 -p1 |
54 |
|
rm -rf root/var/service/ root/service |
55 |
|
%patch6 -p1 |
56 |
|
%patch7 -p1 |
57 |
|
%patch8 -p1 |
58 |
|
%patch9 -p1 |
59 |
|
%patch10 -p1 |
60 |
|
|
61 |
%build |
%build |
62 |
perl createlinks |
perl createlinks |
69 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
70 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
71 |
--dir /var/lock/fetchmail 'attr(755,qmailr,qmail)' \ |
--dir /var/lock/fetchmail 'attr(755,qmailr,qmail)' \ |
|
--dir '/var/service/smtp-auth-proxy' 'attr(1755,root,root)' \ |
|
|
--file '/var/service/smtp-auth-proxy/down' 'attr(0644,root,root)' \ |
|
|
--file '/var/service/smtp-auth-proxy/run' 'attr(0755,root,root)' \ |
|
|
--dir '/var/service/smtp-auth-proxy/supervise' 'attr(0700,root,root)' \ |
|
|
--dir '/var/service/smtp-auth-proxy/log' 'attr(0755,root,root)' \ |
|
|
--file '/var/service/smtp-auth-proxy/log/run' 'attr(0755,root,root)' \ |
|
|
--file '/var/service/smtp-auth-proxy/log/supervise' 'attr(0700,root,root)' \ |
|
72 |
--dir '/var/log/smtp-auth-proxy' 'attr(2750,smelog,nofiles)' \ |
--dir '/var/log/smtp-auth-proxy' 'attr(2750,smelog,nofiles)' \ |
73 |
--file '/usr/local/sbin/smtp-auth-proxy.pl' 'attr(0755,root,root)' \ |
--file '/usr/local/sbin/smtp-auth-proxy.pl' 'attr(0755,root,root)' \ |
74 |
--dir '/home/e-smith/Maildir/.junkmail' 'attr(0700,admin,admin)' \ |
--dir '/home/e-smith/Maildir/.junkmail' 'attr(0700,admin,admin)' \ |
84 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
85 |
%defattr(-,root,root) |
%defattr(-,root,root) |
86 |
|
|
87 |
|
%pre |
88 |
|
if [ $1 -gt 1 ] ; then |
89 |
|
if [ -e /var/service/smtp-auth-proxy/run ] ; then |
90 |
|
/usr/bin/sv d smtp-auth-proxy |
91 |
|
/usr/bin/sv d smtp-auth-proxy/log |
92 |
|
fi |
93 |
|
fi |
94 |
|
|
95 |
%description |
%description |
96 |
e-smith server and gateway software - email module. |
e-smith server and gateway software - email module. |
97 |
|
|
98 |
%changelog |
%changelog |
99 |
* Wed Jun 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
* Mon Nov 15 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-15.sme |
100 |
|
- untainting string correctly [SME: 11716] |
101 |
|
|
102 |
|
* Thu Sep 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-14.sme |
103 |
|
- fix typo for mailpattern for rar files [SME: 11690] |
104 |
|
|
105 |
|
* Fri Sep 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-13.sme |
106 |
|
- fix perms for /var/lock/fetchmail [SME: 11634] |
107 |
|
|
108 |
|
* Fri Sep 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-12.sme |
109 |
|
- make /var/lock/fetchmail dir permanent [SME: 11634] |
110 |
|
|
111 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-11.sme |
112 |
|
- add new RAR file signatures to default mailpatterns database [SME: 11265] |
113 |
|
|
114 |
|
* Thu Mar 11 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-10.sme |
115 |
|
- webmail is only SSL [SME: 11443] |
116 |
|
|
117 |
|
* Fri Dec 11 2020 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-9.sme |
118 |
|
- create -update event [SME: 11133] |
119 |
|
- move smtp-auth-proxy to systemd [SME: 11102] |
120 |
|
|
121 |
|
* Sat Jun 27 2020 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
122 |
|
- allow creation of pseudonyms with setting of local only [SME: 3802] |
123 |
|
|
124 |
|
* Wed Jun 15 2016 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
125 |
- fix webmail status not displaying correctly in manager [SME: 9594] |
- fix webmail status not displaying correctly in manager [SME: 9594] |
126 |
|
|
127 |
* Tue Jun 7 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-5.sme |
* Tue Jun 7 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-5.sme |