1 |
# $Id: smeserver-manager.spec,v 1.3 2018/02/04 18:11:07 jpp Exp $ |
# $Id: smeserver-manager.spec,v 1.11 2020/01/23 09:10:27 michel Exp $ |
2 |
|
|
3 |
Summary: smeserver manager 2 navigation module |
Summary: Sme server navigation module : manager 2 |
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 2 |
%define release 9 |
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: 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 |
16 |
|
Patch3: smeserver-manager-0.1.0-setuid_groups.patch |
17 |
|
Patch4: smeserver-manager-0.1.0-reboot_ibays_theme.patch |
18 |
|
Patch5: smeserver-manager-0.1.0-add-adminlte.patch |
19 |
|
Patch6: smeserver-manager-0.1.0-navigation_header_listes.patch |
20 |
|
Patch7: smeserver-manager-0.1.0-navigation_errors.patch |
21 |
|
Patch8: smeserver-manager-0.1.0-theme_navig_message.patch |
22 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
24 |
BuildRequires: gettext |
BuildRequires: gettext |
26 |
Requires: e-smith-lib >= 1.18.0-26 |
Requires: e-smith-lib >= 1.18.0-26 |
27 |
Requires: e-smith-manager >= 2.4.0-22 |
Requires: e-smith-manager >= 2.4.0-22 |
28 |
Requires: perl-Mojolicious >= 6.44 |
Requires: perl-Mojolicious >= 6.44 |
29 |
|
Requires: perl-Mojolicious-Plugin-I18N >= 1.6 |
30 |
Requires: pwauth |
Requires: pwauth |
31 |
Requires: perl(Apache::AuthTkt) |
Requires: perl(Apache::AuthTkt) |
32 |
Requires: smeserver-manager-html |
#Requires: smeserver-manager-html |
33 |
Provides: server-manager2 |
#Provides: server-manager2 |
34 |
AutoReqProv: no |
AutoReqProv: no |
35 |
|
|
36 |
%changelog |
%changelog |
37 |
|
* Mon Jan 27 2020 Michel Begue <mab974@gmail.com> 0.1.0-9.sme |
38 |
|
- Fix messages without variables expansion |
39 |
|
- add a theme switcher |
40 |
|
- split navigation menu between controller and template |
41 |
|
- template + event for .conf file |
42 |
|
|
43 |
|
* Thu Jan 23 2020 Michel Begue <mab974@gmail.com> 0.1.0-8.sme |
44 |
|
- Fix errors in Navigation |
45 |
|
|
46 |
|
* Wed Jan 22 2020 Michel Begue <mab974@gmail.com> 0.1.0-7.sme |
47 |
|
- Fix link between Navigation and Theme |
48 |
|
- Add System and Domain names to available data (header) |
49 |
|
- Move some data lists from template to controller (select_field) |
50 |
|
- Integrate last Brian's changes in server-manager2.css (AdminLTE) |
51 |
|
- Fix some warnings and typos |
52 |
|
|
53 |
|
* Fri Jan 17 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-6.sme |
54 |
|
- Add in theme based on AdminLTE html template |
55 |
|
- Fixes Server name in header (Needs Template expansion - added to Console-Save |
56 |
|
|
57 |
|
* Sun Jan 12 2020 Michel Begue <mab974@gmail.com> 0.1.0-5.sme |
58 |
|
- new theme to come |
59 |
|
- css enhancement (thanks to B. Read) |
60 |
|
- panels: reboot and ibays |
61 |
|
|
62 |
|
* Wed Jan 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-4.sme |
63 |
|
- fix setuid with wrapper (remove sudo) |
64 |
|
- panels quota and groups |
65 |
|
|
66 |
|
* Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme |
67 |
|
- simple architecture : basic mojolicious app running |
68 |
|
- some panels |
69 |
|
- requires perl-Mojolicious-Plugin-I18N |
70 |
|
|
71 |
* Tue Feb 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.0-2.sme |
* Tue Feb 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.0-2.sme |
72 |
- Start adding some template files |
- Start adding some template files |
73 |
|
|
796 |
%setup |
%setup |
797 |
%patch0 -p1 |
%patch0 -p1 |
798 |
%patch1 -p1 |
%patch1 -p1 |
799 |
|
%patch2 -p1 |
800 |
|
%patch3 -p1 |
801 |
|
%patch4 -p1 |
802 |
|
%patch5 -p1 |
803 |
|
%patch6 -p1 |
804 |
|
%patch7 -p1 |
805 |
|
%patch8 -p1 |
806 |
|
|
807 |
%build |
%build |
808 |
|
# Force creation of potentially empty directories |
809 |
perl createlinks |
perl createlinks |
810 |
#gcc -o root/etc/e-smith/web/functions/wrapper manager.c |
mkdir -p root/etc/e-smith/web/functions2 |
811 |
#mkdir -p root/home/e-smith/db/navigation |
mkdir -p root/home/e-smith/db/navigation |
812 |
#mkdir -p root/etc/e-smith/web/common/css |
mkdir -p root/etc/e-smith/web/common/css |
813 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html} |
814 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images |
815 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public{css,images,js,tmp} |
816 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/templates/{layouts,partials} |
817 |
|
|
818 |
|
gcc -o root/etc/e-smith/web/functions2/wrapper2 manager2.c |
819 |
|
|
820 |
#mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/ |
#mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/ |
821 |
#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 |
824 |
#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 |
825 |
#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 |
826 |
|
|
827 |
#mkdir -p root/etc/e-smith/web/panels/manager/html |
#mkdir -p root/etc/e-smith/web/panels/manager2/html |
828 |
#for file in index initial |
for file in index #initial |
829 |
#do |
do |
830 |
# 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 |
831 |
#done |
done |
832 |
|
|
833 |
# 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} |
|
834 |
#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} |
|
|
|
|
835 |
#mkdir -p root/service |
#mkdir -p root/service |
836 |
#mkdir -p root/etc/rc.d/init.d/supervise |
#mkdir -p root/etc/rc.d/init.d/supervise |
837 |
#for service in httpd-admin |
#for service in httpd-admin |
855 |
--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)' \ |
856 |
--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)' \ |
857 |
--dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \ |
--dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \ |
858 |
|
--file /etc/e-smith/web/functions2/wrapper2 'attr(4750,root,admin)' \ |
859 |
|
--file /etc/e-smith/web/functions2/index.cgi 'attr(0500,root,root)' \ |
860 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
861 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
862 |
|
|
880 |
|
|
881 |
%pre |
%pre |
882 |
%preun |
%preun |
883 |
|
#rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/css/sme_core.css |
884 |
|
#rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/images/btn_donateCC_LG.gif |
885 |
|
#rm -f /etc/e-smith/web/panels/manager2/cgi-bin/logout |
886 |
|
|
887 |
%post |
%post |
888 |
#find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \ |
#find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \ |
889 |
# sed -n '/\/[0-9a-z]\{32\}$/p' | \ |
# sed -n '/\/[0-9a-z]\{32\}$/p' | \ |
890 |
# xargs grep -l Persisten | \ |
# xargs grep -l Persisten | \ |
891 |
# xargs rm -f |
# xargs rm -f |
892 |
|
ln -s /etc/e-smith/web/common/css/sme_core.css /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/css/sme_core.css |
893 |
|
ln -s /etc/e-smith/web/common/css/sme_main.css /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/css/sme_main.css |
894 |
|
ln -s /etc/e-smith/web/common/css/sme_menu.css /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/css/sme_menu.css |
895 |
|
ln -s /etc/e-smith/web/common/btn_donateCC_LG.gif /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images/btn_donateCC_LG.gif |
896 |
|
ln -s /etc/e-smith/web/common/smeserver_logo.jpg /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images/smeserver_logo.jpg |
897 |
|
ln -s /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/conf/srvmngr.conf /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/srvmngr.conf |
898 |
|
ln -s /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/script/srvmngr.pl /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/srvmngr.pl |
899 |
|
ln -s /etc/e-smith/web/common/cgi-bin/logout /etc/e-smith/web/panels/manager2/cgi-bin/logout |
900 |
|
/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf |
901 |
|
chmod 0755 /etc/e-smith/web/panels/manager2/html/index.cgi |
902 |
|
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log |
903 |
|
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log |
904 |
|
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js |
905 |
|
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js |
906 |
|
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js |
907 |
|
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js |
908 |
|
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
909 |
|
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
910 |
|
chown root:admin /etc/e-smith/web/functions2/wrapper2 |
911 |
|
chmod 4750 /etc/e-smith/web/functions2/wrapper2 |
912 |
|
|
|
%postun |
|
913 |
|
|
914 |
|
%postun |
915 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
916 |
%defattr(-,root,root) |
%defattr(-,root,root) |