1 |
# $Id: e-smith-email.spec,v 1.4 2016/06/03 07:36:15 vip-ire Exp $ |
# $Id: e-smith-email.spec,v 1.7 2020/06/28 03:52:15 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 5 |
%define release 8 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
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 |
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 |
|
|
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
Requires: e-smith-base >= 4.15.0-39 |
Requires: e-smith-base >= 4.15.0-39 |
22 |
Requires: e-smith-tinydns >= 1.0.0-5 |
Requires: e-smith-tinydns >= 1.0.0-5 |
38 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
39 |
AutoReqProv: no |
AutoReqProv: no |
40 |
|
|
41 |
|
%prep |
42 |
|
%setup |
43 |
|
%patch0 -p1 |
44 |
|
%patch1 -p1 |
45 |
|
%patch2 -p1 |
46 |
|
%patch3 -p1 |
47 |
|
%patch4 -p1 |
48 |
|
%patch5 -p1 |
49 |
|
rm -rf root/var/service/ |
50 |
|
|
51 |
|
%build |
52 |
|
perl createlinks |
53 |
|
|
54 |
|
%postun |
55 |
|
|
56 |
|
%install |
57 |
|
rm -rf $RPM_BUILD_ROOT |
58 |
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
59 |
|
rm -f %{name}-%{version}-%{release}-filelist |
60 |
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
61 |
|
--dir /var/lock/fetchmail 'attr(755,qmailr,qmail)' \ |
62 |
|
--dir '/var/log/smtp-auth-proxy' 'attr(2750,smelog,nofiles)' \ |
63 |
|
--file '/usr/local/sbin/smtp-auth-proxy.pl' 'attr(0755,root,root)' \ |
64 |
|
--dir '/home/e-smith/Maildir/.junkmail' 'attr(0700,admin,admin)' \ |
65 |
|
--dir '/home/e-smith/Maildir/.junkmail/tmp' 'attr(0700,admin,admin)' \ |
66 |
|
--dir '/home/e-smith/Maildir/.junkmail/new' 'attr(0700,admin,admin)' \ |
67 |
|
--dir '/home/e-smith/Maildir/.junkmail/cur' 'attr(0700,admin,admin)' \ |
68 |
|
> %{name}-%{version}-%{release}-filelist |
69 |
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
70 |
|
|
71 |
|
%clean |
72 |
|
rm -rf $RPM_BUILD_ROOT |
73 |
|
|
74 |
|
%files -f %{name}-%{version}-%{release}-filelist |
75 |
|
%defattr(-,root,root) |
76 |
|
|
77 |
|
%pre |
78 |
|
if [ $1 -gt 1 ] ; then |
79 |
|
if [ -e /var/service/smtp-auth-proxy/run ] ; then |
80 |
|
/usr/bin/sv d smtp-auth-proxy |
81 |
|
/usr/bin/sv d smtp-auth-proxy/log |
82 |
|
fi |
83 |
|
fi |
84 |
|
|
85 |
%description |
%description |
86 |
e-smith server and gateway software - email module. |
e-smith server and gateway software - email module. |
87 |
|
|
88 |
%changelog |
%changelog |
89 |
|
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-8.sme |
90 |
|
- create -update event [SME: 11133] |
91 |
|
- move smtp-auth-proxy to systemd [SME: 11102] |
92 |
|
|
93 |
|
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
94 |
|
- allow creation of pseudonyms with setting of local only [SME: 3802] |
95 |
|
|
96 |
|
* Wed Jun 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
97 |
|
- fix webmail status not displaying correctly in manager [SME: 9594] |
98 |
|
|
99 |
* 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 |
100 |
- More change from smtpd to qpsmtpd in masq templates [SME: 9561] |
- More change from smtpd to qpsmtpd in masq templates [SME: 9561] |
101 |
|
|
1488 |
- [4.6.0-01] |
- [4.6.0-01] |
1489 |
- 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. |
1490 |
|
|
|
%prep |
|
|
%setup |
|
|
%patch0 -p1 |
|
|
%patch1 -p1 |
|
|
%patch2 -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) |
|