1 |
# $Id: e-smith-proxy.spec,v 1.3 2016/05/12 21:12:35 vip-ire Exp $ |
# $Id: e-smith-proxy.spec,v 1.9 2021/03/16 18:52:33 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - proxy module |
Summary: e-smith server and gateway - proxy module |
4 |
%define name e-smith-proxy |
%define name e-smith-proxy |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 5.6.0 |
%define version 5.6.0 |
7 |
%define release 4 |
%define release 10 |
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-proxy-5.6.0-MANAGER.patch |
Patch0: e-smith-proxy-5.6.0-MANAGER.patch |
14 |
Patch1: e-smith-proxy-5.6.0-set_file_desc_limit.patch |
Patch1: e-smith-proxy-5.6.0-set_file_desc_limit.patch |
15 |
|
Patch2: e-smith-proxy-5.6.0.bz79.redirect.squid.related.syslog.patch |
16 |
|
Patch3: e-smith-proxy-5.6.0.bz9639.disablingSMTPproxyFromManager.patch |
17 |
|
Patch4: e-smith-proxy-5.6.0-bz11116_systemd.patch |
18 |
|
Patch5: e-smith-proxy-5.6.0-events_update-bz9419.patch |
19 |
|
Patch6: e-smith-proxy-5.6.0-bz9692-cleanup.patch |
20 |
|
Patch7: e-smith-proxy-5.6.0-bz11713-networksystemd.patch |
21 |
|
|
22 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
Requires: e-smith-base |
Requires: e-smith-base |
35 |
e-smith server and gateway software - proxy module. |
e-smith server and gateway software - proxy module. |
36 |
|
|
37 |
%changelog |
%changelog |
38 |
|
* Thu Oct 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-10.sme |
39 |
|
- fix squid starting before network [SME: 11713] |
40 |
|
also dropin file not expanded on install fixed |
41 |
|
|
42 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-9.sme |
43 |
|
- cleanup in /etc/rc.d and /var/service/squid [SME: 9692] |
44 |
|
|
45 |
|
* Thu Dec 10 2020 Michel Begue <mab974@gmail.com> 2.6.0-8.sme |
46 |
|
- fix actions for e-smith-proxy-update event [SME: 11116] |
47 |
|
- add intercept for squid [SME: 9419] |
48 |
|
|
49 |
|
* Mon Nov 30 2020 Michel Begue <mab974@gmail.com> 2.6.0-7.sme |
50 |
|
- move squid service to systemd [SME: 11116] |
51 |
|
- add e-smith-proxy-update event [SME: 11151] |
52 |
|
- fix bogus dates here |
53 |
|
|
54 |
|
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
55 |
|
- fix disabling smtp proxy via SM doesn't work [SME: 9639] |
56 |
|
|
57 |
|
* Mon Apr 10 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-5.sme |
58 |
|
- redirect squid syslog messages to /var/log/squid/squid.log [SME: 79] |
59 |
|
|
60 |
* Thu Jan 5 2017 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-4.sme |
* Thu Jan 5 2017 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-4.sme |
61 |
- Allow custom file descriptor limit, and set default to 4096 [SME: 9912] |
- Allow custom file descriptor limit, and set default to 4096 [SME: 9912] |
62 |
|
|
86 |
* Fri Sep 23 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-5.sme |
* Fri Sep 23 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-5.sme |
87 |
- Fix SMTP proxy wording in server-manager [SME: 6178] |
- Fix SMTP proxy wording in server-manager [SME: 6178] |
88 |
|
|
89 |
* Sun Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-4.sme |
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-4.sme |
90 |
- Fix missed enabled->transparent mapping [SME: 5574] |
- Fix missed enabled->transparent mapping [SME: 5574] |
91 |
|
|
92 |
* Sun Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-3.sme |
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-3.sme |
93 |
- Change enabled to transparent for mail proxy [SME: 5574] |
- Change enabled to transparent for mail proxy [SME: 5574] |
94 |
|
|
95 |
* Thu Mar 25 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 5.2.0-2.sme |
* Thu Mar 25 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 5.2.0-2.sme |
735 |
%setup |
%setup |
736 |
%patch0 -p1 |
%patch0 -p1 |
737 |
%patch1 -p1 |
%patch1 -p1 |
738 |
|
%patch2 -p1 |
739 |
|
%patch3 -p1 |
740 |
|
%patch4 -p1 |
741 |
|
%patch5 -p1 |
742 |
|
%patch6 -p1 |
743 |
|
%patch7 -p1 |
744 |
|
|
745 |
|
rm -rf root/var/service/squid/ |
746 |
|
mkdir -p root/usr/lib/systemd/system/squid.service.d |
747 |
|
|
748 |
%build |
%build |
749 |
perl createlinks |
perl createlinks |
753 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
754 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
755 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
|
--dir '/var/service/squid' 'attr(1755,root,root)' \ |
|
|
--file '/var/service/squid/down' 'attr(0644,root,root)' \ |
|
|
--file '/var/service/squid/run' 'attr(0755,root,root)' \ |
|
|
--dir '/var/service/squid/supervise' 'attr(0700,root,root)' \ |
|
|
--dir '/var/service/squid/log' 'attr(1755,root,root)' \ |
|
|
--file '/var/service/squid/log/run' 'attr(0755,root,root)' \ |
|
|
--dir '/var/service/squid/log/supervise' 'attr(0700,root,root)' \ |
|
|
--dir '/var/log/squid.run' 'attr(0750,smelog,root)' \ |
|
756 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
757 |
|
# --dir '/var/service/squid' 'attr(1755,root,root)' \ |
758 |
|
# --file '/var/service/squid/down' 'attr(0644,root,root)' \ |
759 |
|
# --file '/var/service/squid/run' 'attr(0755,root,root)' \ |
760 |
|
# --dir '/var/service/squid/supervise' 'attr(0700,root,root)' \ |
761 |
|
# --dir '/var/service/squid/log' 'attr(1755,root,root)' \ |
762 |
|
# --file '/var/service/squid/log/run' 'attr(0755,root,root)' \ |
763 |
|
# --dir '/var/service/squid/log/supervise' 'attr(0700,root,root)' \ |
764 |
|
# --dir '/var/log/squid.run' 'attr(0750,smelog,root)' \ |
765 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
766 |
|
|
767 |
%clean |
%clean |
768 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
769 |
|
|
770 |
|
%post |
771 |
|
if [ -d /var/service/squid ]; then |
772 |
|
rm -rf /var/service/squid |
773 |
|
fi |
774 |
|
|
775 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
776 |
%defattr(-,root,root) |
%defattr(-,root,root) |