1 |
# $Id: e-smith-manager.spec,v 1.3 2016/03/18 14:14:48 unnilennium Exp $ |
# $Id: e-smith-manager.spec,v 1.14 2016/07/19 12:15:41 unnilennium Exp $ |
2 |
|
|
3 |
Summary: e-smith manager navigation module |
Summary: e-smith manager navigation module |
4 |
%define name e-smith-manager |
%define name e-smith-manager |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.8.0 |
%define version 2.8.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 |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-manager-2.8.0-fixsyntax.patch |
Patch0: e-smith-manager-2.8.0-fixsyntax.patch |
14 |
|
Patch1: e-smith-manager-2.8.0-manager_suid_wrapper.patch |
15 |
|
Patch2: e-smith-manager-2.8.0-fix_logout.patch |
16 |
|
Patch3: e-smith-manager-2.8.0-newTKTsyntax.patch |
17 |
|
Patch4: e-smith-manager-2.8.0-no_index_for_manager_common.patch |
18 |
|
Patch5: e-smith-manager-2.8.0-koozali.org |
19 |
|
Patch6: e-smith-manager-2.8.0-Koozali_manager.patch |
20 |
|
Patch7: e-smith-manager-2.8.0-bz9924-badredirection.patch |
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
23 |
BuildRequires: gettext |
BuildRequires: gettext |
24 |
BuildArchitectures: noarch |
BuildRequires: gcc |
25 |
Requires: e-smith-lib >= 1.18.0-26 |
Requires: e-smith-lib >= 1.18.0-26 |
26 |
Requires: mod_auth_tkt |
Requires: mod_auth_tkt |
27 |
Requires: pwauth |
Requires: pwauth |
30 |
AutoReqProv: no |
AutoReqProv: no |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Mon Jan 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-14.sme |
34 |
|
- fix bad redirection parameter that might reveal session information to remote site [SME: 9924] |
35 |
|
|
36 |
|
* Tue Jul 19 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-13.sme |
37 |
|
- added missing template-begin for tkt.css [SME: 9676] |
38 |
|
|
39 |
|
* Tue Jul 19 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-12.sme |
40 |
|
- Update server-manager to Koozali branding [SME: 9676] |
41 |
|
- We thanks John Crisp for his wonderful work. |
42 |
|
|
43 |
|
* Wed Jun 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-11.sme |
44 |
|
- change link for donation to koozali.org [SME: 9599] |
45 |
|
|
46 |
|
* Wed Jun 15 2016 Daniel Berteaud <daniel@firewall-services.com> 2.8.0-10.sme |
47 |
|
- Fix syntax for removing Indexes options [SME: 9587] |
48 |
|
|
49 |
|
* Wed Jun 15 2016 Daniel Berteaud <daniel@firewall-services.com> 2.8.0-9.sme |
50 |
|
- Remove index option for manager's resources [SME: 9587] |
51 |
|
|
52 |
|
* Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-8.sme |
53 |
|
- fix 307 redirection to http when https is used [SME: 8825] [SME: 9583] |
54 |
|
- update syntaxe for TKT Auth |
55 |
|
- bump 8 for typo |
56 |
|
|
57 |
|
* Wed Jun 1 2016 Daniel Berteaud <daniel@firewall-services.com> 2.8.0-6.sme |
58 |
|
- Fix a syntax error in server-manager's logout script [SME: 9527] |
59 |
|
|
60 |
|
* Wed May 11 2016 Daniel Berteaud <daniel@firewall-services.com> 2.8.0-5.sme |
61 |
|
- Add a C wrapper to execute manager's cgi to replace perl-suid [SME: 9393] |
62 |
|
|
63 |
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-4.sme |
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-4.sme |
64 |
- fix syntax for httpd 2.4 [SME: 9365] |
- fix syntax for httpd 2.4 [SME: 9365] |
65 |
|
|
727 |
%prep |
%prep |
728 |
%setup |
%setup |
729 |
%patch0 -p1 |
%patch0 -p1 |
730 |
|
%patch1 -p1 |
731 |
|
%patch2 -p1 |
732 |
|
%patch3 -p1 |
733 |
|
%patch4 -p1 |
734 |
|
%patch5 -p1 |
735 |
|
%patch6 -p1 |
736 |
|
%patch7 -p1 |
737 |
|
|
738 |
%build |
%build |
739 |
perl createlinks |
perl createlinks |
740 |
|
gcc -o root/etc/e-smith/web/functions/wrapper manager.c |
741 |
mkdir -p root/home/e-smith/db/navigation |
mkdir -p root/home/e-smith/db/navigation |
742 |
mkdir -p root/etc/e-smith/web/common/css |
mkdir -p root/etc/e-smith/web/common/css |
743 |
|
|
751 |
mkdir -p root/etc/e-smith/web/panels/manager/html |
mkdir -p root/etc/e-smith/web/panels/manager/html |
752 |
for file in index initial |
for file in index initial |
753 |
do |
do |
754 |
ln -s ../../../functions/${file}.cgi root/etc/e-smith/web/panels/manager/html/${file}.cgi |
ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/manager/html/${file}.cgi |
755 |
done |
done |
756 |
|
|
757 |
# Force creation of potentially empty directories |
# Force creation of potentially empty directories |
782 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
783 |
--file /etc/e-smith/web/common/cgi-bin/login 'attr(0755,root,root)' \ |
--file /etc/e-smith/web/common/cgi-bin/login 'attr(0755,root,root)' \ |
784 |
--file /etc/e-smith/web/common/cgi-bin/logout 'attr(0755,root,root)' \ |
--file /etc/e-smith/web/common/cgi-bin/logout 'attr(0755,root,root)' \ |
785 |
|
--file /etc/e-smith/web/functions/wrapper 'attr(4750,root,admin)' \ |
786 |
--dir /var/service/httpd-admin 'attr(01755,root,root)' \ |
--dir /var/service/httpd-admin 'attr(01755,root,root)' \ |
787 |
--file /var/service/httpd-admin/down 'attr(0644,root,root)' \ |
--file /var/service/httpd-admin/down 'attr(0644,root,root)' \ |
788 |
--file /var/service/httpd-admin/run 'attr(0755,root,root)' \ |
--file /var/service/httpd-admin/run 'attr(0755,root,root)' \ |