1 |
# $Id: e-smith-proxy.spec,v 1.4 2017/01/05 16:35:01 vip-ire Exp $ |
# $Id: e-smith-proxy.spec,v 1.11 2022/04/17 18:59:18 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 5 |
%define release 11 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
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 |
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 |
|
Patch8: e-smith-proxy-5.6.0-bz11944.patch |
22 |
|
|
23 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
24 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
25 |
Requires: e-smith-base |
Requires: e-smith-base |
27 |
Requires: e-smith-lib >= 1.15.1-19 |
Requires: e-smith-lib >= 1.15.1-19 |
28 |
Requires: iptables |
Requires: iptables |
29 |
Requires: e-smith-formmagick >= 1.4.0-9 |
Requires: e-smith-formmagick >= 1.4.0-9 |
30 |
|
Requires: e-smith-apache >= 2.6.0-19 |
31 |
Requires: e-smith-email >= 5.2.0-5 |
Requires: e-smith-email >= 5.2.0-5 |
32 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
33 |
Obsoletes: e-smith-transproxy |
Obsoletes: e-smith-transproxy |
37 |
e-smith server and gateway software - proxy module. |
e-smith server and gateway software - proxy module. |
38 |
|
|
39 |
%changelog |
%changelog |
40 |
|
* Sun Apr 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-11.sme |
41 |
|
- use httpd 2.4 access control syntax [SME: 11944] |
42 |
|
|
43 |
|
* Thu Oct 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-10.sme |
44 |
|
- fix squid starting before network [SME: 11713] |
45 |
|
also dropin file not expanded on install fixed |
46 |
|
|
47 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-9.sme |
48 |
|
- cleanup in /etc/rc.d and /var/service/squid [SME: 9692] |
49 |
|
|
50 |
|
* Thu Dec 10 2020 Michel Begue <mab974@gmail.com> 2.6.0-8.sme |
51 |
|
- fix actions for e-smith-proxy-update event [SME: 11116] |
52 |
|
- add intercept for squid [SME: 9419] |
53 |
|
|
54 |
|
* Mon Nov 30 2020 Michel Begue <mab974@gmail.com> 2.6.0-7.sme |
55 |
|
- move squid service to systemd [SME: 11116] |
56 |
|
- add e-smith-proxy-update event [SME: 11151] |
57 |
|
- fix bogus dates here |
58 |
|
|
59 |
|
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-6.sme |
60 |
|
- fix disabling smtp proxy via SM doesn't work [SME: 9639] |
61 |
|
|
62 |
* Mon Apr 10 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-5.sme |
* Mon Apr 10 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-5.sme |
63 |
- redirect squid syslog messages to /var/log/squid/squid.log [SME: 79] |
- redirect squid syslog messages to /var/log/squid/squid.log [SME: 79] |
64 |
|
|
91 |
* 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 |
92 |
- Fix SMTP proxy wording in server-manager [SME: 6178] |
- Fix SMTP proxy wording in server-manager [SME: 6178] |
93 |
|
|
94 |
* 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 |
95 |
- Fix missed enabled->transparent mapping [SME: 5574] |
- Fix missed enabled->transparent mapping [SME: 5574] |
96 |
|
|
97 |
* 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 |
98 |
- Change enabled to transparent for mail proxy [SME: 5574] |
- Change enabled to transparent for mail proxy [SME: 5574] |
99 |
|
|
100 |
* 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 |
741 |
%patch0 -p1 |
%patch0 -p1 |
742 |
%patch1 -p1 |
%patch1 -p1 |
743 |
%patch2 -p1 |
%patch2 -p1 |
744 |
|
%patch3 -p1 |
745 |
|
%patch4 -p1 |
746 |
|
%patch5 -p1 |
747 |
|
%patch6 -p1 |
748 |
|
%patch7 -p1 |
749 |
|
%patch8 -p1 |
750 |
|
|
751 |
|
rm -rf root/var/service/squid/ |
752 |
|
mkdir -p root/usr/lib/systemd/system/squid.service.d |
753 |
|
rm -rf root/var/log/squid.run |
754 |
|
|
755 |
%build |
%build |
756 |
perl createlinks |
perl createlinks |
760 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
761 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
762 |
/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)' \ |
|
763 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
764 |
|
# --dir '/var/service/squid' 'attr(1755,root,root)' \ |
765 |
|
# --file '/var/service/squid/down' 'attr(0644,root,root)' \ |
766 |
|
# --file '/var/service/squid/run' 'attr(0755,root,root)' \ |
767 |
|
# --dir '/var/service/squid/supervise' 'attr(0700,root,root)' \ |
768 |
|
# --dir '/var/service/squid/log' 'attr(1755,root,root)' \ |
769 |
|
# --file '/var/service/squid/log/run' 'attr(0755,root,root)' \ |
770 |
|
# --dir '/var/service/squid/log/supervise' 'attr(0700,root,root)' \ |
771 |
|
# --dir '/var/log/squid.run' 'attr(0750,smelog,root)' \ |
772 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
773 |
|
|
774 |
%clean |
%clean |
775 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
776 |
|
|
777 |
|
%post |
778 |
|
if [ -d /var/service/squid ]; then |
779 |
|
rm -rf /var/service/squid |
780 |
|
fi |
781 |
|
|
782 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
783 |
%defattr(-,root,root) |
%defattr(-,root,root) |