1 |
# $Id: e-smith-email.spec,v 1.6 2016/06/15 08:30:29 unnilennium Exp $ |
# $Id: e-smith-email.spec,v 1.16 2022/04/16 16:32:01 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 7 |
%define release 17 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
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 |
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 |
|
Patch11: e-smith-email-5.6.0-bz11799.patch |
25 |
|
|
26 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
27 |
Requires: e-smith-base >= 4.15.0-39 |
Requires: e-smith-base >= 4.15.0-39 |
51 |
%patch2 -p1 |
%patch2 -p1 |
52 |
%patch3 -p1 |
%patch3 -p1 |
53 |
%patch4 -p1 |
%patch4 -p1 |
54 |
|
%patch5 -p1 |
55 |
|
rm -rf root/var/service/ root/service |
56 |
|
%patch6 -p1 |
57 |
|
%patch7 -p1 |
58 |
|
%patch8 -p1 |
59 |
|
%patch9 -p1 |
60 |
|
%patch10 -p1 |
61 |
|
%patch11 -p1 |
62 |
|
|
63 |
%build |
%build |
64 |
perl createlinks |
perl createlinks |
71 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
72 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
73 |
--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)' \ |
|
74 |
--dir '/var/log/smtp-auth-proxy' 'attr(2750,smelog,nofiles)' \ |
--dir '/var/log/smtp-auth-proxy' 'attr(2750,smelog,nofiles)' \ |
75 |
--file '/usr/local/sbin/smtp-auth-proxy.pl' 'attr(0755,root,root)' \ |
--file '/usr/local/sbin/smtp-auth-proxy.pl' 'attr(0755,root,root)' \ |
76 |
--dir '/home/e-smith/Maildir/.junkmail' 'attr(0700,admin,admin)' \ |
--dir '/home/e-smith/Maildir/.junkmail' 'attr(0700,admin,admin)' \ |
86 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
87 |
%defattr(-,root,root) |
%defattr(-,root,root) |
88 |
|
|
89 |
|
%pre |
90 |
|
if [ $1 -gt 1 ] ; then |
91 |
|
if [ -e /var/service/smtp-auth-proxy/run ] ; then |
92 |
|
/usr/bin/sv d smtp-auth-proxy |
93 |
|
/usr/bin/sv d smtp-auth-proxy/log |
94 |
|
fi |
95 |
|
fi |
96 |
|
|
97 |
%description |
%description |
98 |
e-smith server and gateway software - email module. |
e-smith server and gateway software - email module. |
99 |
|
|
100 |
%changelog |
%changelog |
101 |
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
* Thu May 19 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-17.sme |
102 |
|
- fix typo in regex [SME: 11799] |
103 |
|
|
104 |
|
* Sat Apr 16 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-16.sme |
105 |
|
- fix missing dot in regex for untainting [SME: 11799] |
106 |
|
would delete any account named with the string before the dot |
107 |
|
|
108 |
|
* Mon Nov 15 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-15.sme |
109 |
|
- untainting string correctly [SME: 11716] |
110 |
|
|
111 |
|
* Thu Sep 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-14.sme |
112 |
|
- fix typo for mailpattern for rar files [SME: 11690] |
113 |
|
|
114 |
|
* Fri Sep 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-13.sme |
115 |
|
- fix perms for /var/lock/fetchmail [SME: 11634] |
116 |
|
|
117 |
|
* Fri Sep 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-12.sme |
118 |
|
- make /var/lock/fetchmail dir permanent [SME: 11634] |
119 |
|
|
120 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-11.sme |
121 |
|
- add new RAR file signatures to default mailpatterns database [SME: 11265] |
122 |
|
|
123 |
|
* Thu Mar 11 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-10.sme |
124 |
|
- webmail is only SSL [SME: 11443] |
125 |
|
|
126 |
|
* Fri Dec 11 2020 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-9.sme |
127 |
|
- create -update event [SME: 11133] |
128 |
|
- move smtp-auth-proxy to systemd [SME: 11102] |
129 |
|
|
130 |
|
* Sat Jun 27 2020 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
131 |
- allow creation of pseudonyms with setting of local only [SME: 3802] |
- allow creation of pseudonyms with setting of local only [SME: 3802] |
132 |
|
|
133 |
* Wed Jun 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
* Wed Jun 15 2016 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
134 |
- fix webmail status not displaying correctly in manager [SME: 9594] |
- fix webmail status not displaying correctly in manager [SME: 9594] |
135 |
|
|
136 |
* 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 |