1 |
# $Id: e-smith-email.spec,v 1.3 2016/05/12 17:31:09 vip-ire Exp $ |
# $Id: e-smith-email.spec,v 1.13 2021/09/10 13:00:43 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 4 |
%define release 14 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-email-5.6.0-smtpd_to_qpsmtpd.patch |
Patch0: e-smith-email-5.6.0-smtpd_to_qpsmtpd.patch |
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 |
16 |
|
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 |
|
|
24 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
25 |
Requires: e-smith-base >= 4.15.0-39 |
Requires: e-smith-base >= 4.15.0-39 |
26 |
Requires: e-smith-tinydns >= 1.0.0-5 |
Requires: e-smith-tinydns >= 1.0.0-5 |
42 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
43 |
AutoReqProv: no |
AutoReqProv: no |
44 |
|
|
45 |
|
%prep |
46 |
|
%setup |
47 |
|
%patch0 -p1 |
48 |
|
%patch1 -p1 |
49 |
|
%patch2 -p1 |
50 |
|
%patch3 -p1 |
51 |
|
%patch4 -p1 |
52 |
|
%patch5 -p1 |
53 |
|
rm -rf root/var/service/ root/service |
54 |
|
%patch6 -p1 |
55 |
|
%patch7 -p1 |
56 |
|
%patch8 -p1 |
57 |
|
%patch9 -p1 |
58 |
|
|
59 |
|
%build |
60 |
|
perl createlinks |
61 |
|
|
62 |
|
%postun |
63 |
|
|
64 |
|
%install |
65 |
|
rm -rf $RPM_BUILD_ROOT |
66 |
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
67 |
|
rm -f %{name}-%{version}-%{release}-filelist |
68 |
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
69 |
|
--dir /var/lock/fetchmail 'attr(755,qmailr,qmail)' \ |
70 |
|
--dir '/var/log/smtp-auth-proxy' 'attr(2750,smelog,nofiles)' \ |
71 |
|
--file '/usr/local/sbin/smtp-auth-proxy.pl' 'attr(0755,root,root)' \ |
72 |
|
--dir '/home/e-smith/Maildir/.junkmail' 'attr(0700,admin,admin)' \ |
73 |
|
--dir '/home/e-smith/Maildir/.junkmail/tmp' 'attr(0700,admin,admin)' \ |
74 |
|
--dir '/home/e-smith/Maildir/.junkmail/new' 'attr(0700,admin,admin)' \ |
75 |
|
--dir '/home/e-smith/Maildir/.junkmail/cur' 'attr(0700,admin,admin)' \ |
76 |
|
> %{name}-%{version}-%{release}-filelist |
77 |
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
78 |
|
|
79 |
|
%clean |
80 |
|
rm -rf $RPM_BUILD_ROOT |
81 |
|
|
82 |
|
%files -f %{name}-%{version}-%{release}-filelist |
83 |
|
%defattr(-,root,root) |
84 |
|
|
85 |
|
%pre |
86 |
|
if [ $1 -gt 1 ] ; then |
87 |
|
if [ -e /var/service/smtp-auth-proxy/run ] ; then |
88 |
|
/usr/bin/sv d smtp-auth-proxy |
89 |
|
/usr/bin/sv d smtp-auth-proxy/log |
90 |
|
fi |
91 |
|
fi |
92 |
|
|
93 |
%description |
%description |
94 |
e-smith server and gateway software - email module. |
e-smith server and gateway software - email module. |
95 |
|
|
96 |
%changelog |
%changelog |
97 |
|
* Thu Sep 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-14.sme |
98 |
|
- fix typo for mailpattern for rar files [SME: 11690] |
99 |
|
|
100 |
|
* Fri Sep 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-13.sme |
101 |
|
- fix perms for /var/lock/fetchmail [SME: 11634] |
102 |
|
|
103 |
|
* Fri Sep 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-12.sme |
104 |
|
- make /var/lock/fetchmail dir permanent [SME: 11634] |
105 |
|
|
106 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-11.sme |
107 |
|
- add new RAR file signatures to default mailpatterns database [SME: 11265] |
108 |
|
|
109 |
|
* Thu Mar 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-10.sme |
110 |
|
- webmail is only SSL [SME: 11443] |
111 |
|
|
112 |
|
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-9.sme |
113 |
|
- create -update event [SME: 11133] |
114 |
|
- move smtp-auth-proxy to systemd [SME: 11102] |
115 |
|
|
116 |
|
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
117 |
|
- allow creation of pseudonyms with setting of local only [SME: 3802] |
118 |
|
|
119 |
|
* Wed Jun 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
120 |
|
- fix webmail status not displaying correctly in manager [SME: 9594] |
121 |
|
|
122 |
|
* Tue Jun 7 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-5.sme |
123 |
|
- More change from smtpd to qpsmtpd in masq templates [SME: 9561] |
124 |
|
|
125 |
* Fri Jun 3 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-4.sme |
* Fri Jun 3 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-4.sme |
126 |
- Replace smtpd with qpsmtpd in smtp-auth-proxy [SME: 9554] |
- Replace smtpd with qpsmtpd in smtp-auth-proxy [SME: 9554] |
127 |
|
|
1511 |
- [4.6.0-01] |
- [4.6.0-01] |
1512 |
- Rolled version number to 4.6.0-01. Includes patches upto 4.5.0-20. |
- Rolled version number to 4.6.0-01. Includes patches upto 4.5.0-20. |
1513 |
|
|
|
%prep |
|
|
%setup |
|
|
%patch0 -p1 |
|
|
%patch1 -p1 |
|
|
|
|
|
%build |
|
|
perl createlinks |
|
|
|
|
|
%postun |
|
|
|
|
|
%install |
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
|
|
rm -f %{name}-%{version}-%{release}-filelist |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
|
|
--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)' \ |
|
|
--dir '/var/log/smtp-auth-proxy' 'attr(2750,smelog,nofiles)' \ |
|
|
--file '/usr/local/sbin/smtp-auth-proxy.pl' 'attr(0755,root,root)' \ |
|
|
--dir '/home/e-smith/Maildir/.junkmail' 'attr(0700,admin,admin)' \ |
|
|
--dir '/home/e-smith/Maildir/.junkmail/tmp' 'attr(0700,admin,admin)' \ |
|
|
--dir '/home/e-smith/Maildir/.junkmail/new' 'attr(0700,admin,admin)' \ |
|
|
--dir '/home/e-smith/Maildir/.junkmail/cur' 'attr(0700,admin,admin)' \ |
|
|
> %{name}-%{version}-%{release}-filelist |
|
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
|
|
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
|
%files -f %{name}-%{version}-%{release}-filelist |
|
|
%defattr(-,root,root) |
|