1 |
# $Id: smeserver-manager.spec,v 1.4 2018/12/17 12:01:03 jcrisp Exp $ |
# $Id: smeserver-manager.spec,v 1.7 2020/01/12 20:07:49 michel Exp $ |
2 |
|
|
3 |
Summary: smeserver manager 2 navigation module |
Summary: smeserver manager 2 navigation module |
4 |
%define name smeserver-manager |
%define name smeserver-manager |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 0.1.0 |
%define version 0.1.0 |
7 |
%define release 3 |
%define release 5 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
13 |
Patch0: smeserver-manager-0.1.0-bz10506.patch |
Patch0: smeserver-manager-0.1.0-bz10506.patch |
14 |
Patch1: smeserver-manager-add-basic-files.patch |
Patch1: smeserver-manager-add-basic-files.patch |
15 |
Patch2: smeserver-manager-0.1.0-mojo_struct.patch |
Patch2: smeserver-manager-0.1.0-mojo_struct.patch |
16 |
|
Patch3: smeserver-manager-0.1.0-setuid_groups.patch |
17 |
|
Patch4: smeserver-manager-0.1.0-reboot_ibays_theme.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
20 |
BuildRequires: gettext |
BuildRequires: gettext |
30 |
AutoReqProv: no |
AutoReqProv: no |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Sun Jan 12 2020 Michel Begue <mab974@gmail.com> 0.1.0-5.sme |
34 |
|
- new theme to come |
35 |
|
- css enhancement (thanks to B. Read) |
36 |
|
- panels: reboot and ibays |
37 |
|
|
38 |
|
* Wed Jan 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-4.sme |
39 |
|
- fix setuid with wrapper (remove sudo) |
40 |
|
- panels quota and groups |
41 |
|
|
42 |
* Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme |
* Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme |
43 |
- simple architecture : basic mojolicious app running |
- simple architecture : basic mojolicious app running |
44 |
- some panels |
- some panels |
773 |
%patch0 -p1 |
%patch0 -p1 |
774 |
%patch1 -p1 |
%patch1 -p1 |
775 |
%patch2 -p1 |
%patch2 -p1 |
776 |
|
%patch3 -p1 |
777 |
|
%patch4 -p1 |
778 |
|
|
779 |
%build |
%build |
780 |
|
# Force creation of potentially empty directories |
781 |
perl createlinks |
perl createlinks |
782 |
#gcc -o root/etc/e-smith/web/functions/wrapper manager.c |
mkdir -p root/etc/e-smith/web/functions2 |
783 |
#mkdir -p root/home/e-smith/db/navigation |
mkdir -p root/home/e-smith/db/navigation |
784 |
#mkdir -p root/etc/e-smith/web/common/css |
mkdir -p root/etc/e-smith/web/common/css |
785 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html} |
786 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images |
787 |
|
|
788 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public{css,images,js,tmp} |
789 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/templates/{layouts,partials} |
790 |
|
|
791 |
|
gcc -o root/etc/e-smith/web/functions2/wrapper2 manager2.c |
792 |
|
|
793 |
#mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/ |
#mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/ |
794 |
#xgettext -o root/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright |
#xgettext -o root/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright |
797 |
#ln -s head.tmpl root/etc/e-smith/web/common/noframes_head.tmpl |
#ln -s head.tmpl root/etc/e-smith/web/common/noframes_head.tmpl |
798 |
#ln -s foot.tmpl root/etc/e-smith/web/common/noframes_foot.tmpl |
#ln -s foot.tmpl root/etc/e-smith/web/common/noframes_foot.tmpl |
799 |
|
|
800 |
#mkdir -p root/etc/e-smith/web/panels/manager/html |
#mkdir -p root/etc/e-smith/web/panels/manager2/html |
801 |
#for file in index initial |
for file in index #initial |
802 |
#do |
do |
803 |
# ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/manager/html/${file}.cgi |
ln -s ../../../functions2/wrapper2 root/etc/e-smith/web/panels/manager2/html/${file}.cgi |
804 |
#done |
done |
805 |
|
|
806 |
# Force creation of potentially empty directories |
# Force creation of potentially empty directories |
|
#mkdir -p root/etc/e-smith/web/{common,functions} |
|
|
#mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,html} |
|
|
#mkdir -p root/etc/e-smith/web/panels/password/{cgi-bin,html} |
|
807 |
#mkdir -p root/etc/httpd/admin-conf |
#mkdir -p root/etc/httpd/admin-conf |
|
mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html} |
|
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images |
|
|
|
|
808 |
#mkdir -p root/service |
#mkdir -p root/service |
809 |
#mkdir -p root/etc/rc.d/init.d/supervise |
#mkdir -p root/etc/rc.d/init.d/supervise |
810 |
#for service in httpd-admin |
#for service in httpd-admin |
828 |
--file /etc/e-smith/web/panels/manager2/cgi-bin/wbl 'attr(4750,root,admin)' \ |
--file /etc/e-smith/web/panels/manager2/cgi-bin/wbl 'attr(4750,root,admin)' \ |
829 |
--file /etc/e-smith/web/panels/manager2/cgi-bin/useraccounts 'attr(4750,root,admin)' \ |
--file /etc/e-smith/web/panels/manager2/cgi-bin/useraccounts 'attr(4750,root,admin)' \ |
830 |
--dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \ |
--dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \ |
831 |
|
--file /etc/e-smith/web/functions2/wrapper2 'attr(4750,root,admin)' \ |
832 |
|
--file /etc/e-smith/web/functions2/index.cgi 'attr(0500,root,root)' \ |
833 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
834 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
835 |
|
|
878 |
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js |
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js |
879 |
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
880 |
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
881 |
|
chown root:admin /etc/e-smith/web/functions2/wrapper2 |
882 |
|
chmod 4750 /etc/e-smith/web/functions2/wrapper2 |
883 |
|
|
884 |
|
|
885 |
%postun |
%postun |