1 |
# $Id: smeserver-manager.spec,v 1.1 2018/02/04 17:51:12 jpp Exp $ |
# $Id: smeserver-manager.spec,v 1.4 2018/12/17 12:01:03 jcrisp 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 1 |
%define release 3 |
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: smeserver-manager-0.1.0-bz10506.patch |
14 |
|
Patch1: smeserver-manager-add-basic-files.patch |
15 |
|
Patch2: smeserver-manager-0.1.0-mojo_struct.patch |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
18 |
BuildRequires: gettext |
BuildRequires: gettext |
20 |
Requires: e-smith-lib >= 1.18.0-26 |
Requires: e-smith-lib >= 1.18.0-26 |
21 |
Requires: e-smith-manager >= 2.4.0-22 |
Requires: e-smith-manager >= 2.4.0-22 |
22 |
Requires: perl-Mojolicious >= 6.44 |
Requires: perl-Mojolicious >= 6.44 |
23 |
|
Requires: perl-Mojolicious-Plugin-I18N >= 1.6 |
24 |
Requires: pwauth |
Requires: pwauth |
25 |
Requires: perl(Apache::AuthTkt) |
Requires: perl(Apache::AuthTkt) |
26 |
Provides: server-manager2 |
#Requires: smeserver-manager-html |
27 |
|
#Provides: server-manager2 |
28 |
AutoReqProv: no |
AutoReqProv: no |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme |
32 |
|
- simple architecture : basic mojolicious app running |
33 |
|
- some panels |
34 |
|
- requires perl-Mojolicious-Plugin-I18N |
35 |
|
|
36 |
|
* Tue Feb 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.0-2.sme |
37 |
|
- Start adding some template files |
38 |
|
|
39 |
* Sun Feb 04 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.0-1.sme |
* Sun Feb 04 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.0-1.sme |
40 |
- first smeserver-manager package [SME: 10506] |
- first smeserver-manager package [SME: 10506] |
41 |
this is a sandbox to dev the next server-manager based on mojolicious |
this is a sandbox to dev the next server-manager based on mojolicious |
759 |
|
|
760 |
%prep |
%prep |
761 |
%setup |
%setup |
762 |
|
%patch0 -p1 |
763 |
|
%patch1 -p1 |
764 |
|
%patch2 -p1 |
765 |
|
|
766 |
%build |
%build |
767 |
perl createlinks |
perl createlinks |
788 |
#mkdir -p root/etc/e-smith/web/panels/password/{cgi-bin,html} |
#mkdir -p root/etc/e-smith/web/panels/password/{cgi-bin,html} |
789 |
#mkdir -p root/etc/httpd/admin-conf |
#mkdir -p root/etc/httpd/admin-conf |
790 |
mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html} |
mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html} |
791 |
|
mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images |
792 |
|
|
793 |
#mkdir -p root/service |
#mkdir -p root/service |
794 |
#mkdir -p root/etc/rc.d/init.d/supervise |
#mkdir -p root/etc/rc.d/init.d/supervise |
810 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
811 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
812 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
813 |
|
--file /etc/e-smith/web/panels/manager2/cgi-bin/wbl 'attr(4750,root,admin)' \ |
814 |
|
--file /etc/e-smith/web/panels/manager2/cgi-bin/useraccounts 'attr(4750,root,admin)' \ |
815 |
|
--dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \ |
816 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
817 |
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
818 |
|
|
819 |
|
|
820 |
|
# Samples only |
821 |
# --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)' \ |
822 |
# --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)' \ |
823 |
# --file /etc/e-smith/web/functions/wrapper 'attr(4750,root,admin)' \ |
# --file /etc/e-smith/web/functions/wrapper 'attr(4750,root,admin)' \ |
830 |
# --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \ |
# --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \ |
831 |
# --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \ |
# --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \ |
832 |
# > %{name}-%{version}-%{release}-filelist |
# > %{name}-%{version}-%{release}-filelist |
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
|
833 |
|
|
834 |
%clean |
%clean |
835 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
836 |
|
|
837 |
%pre |
%pre |
838 |
%preun |
%preun |
839 |
|
#rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/css/sme_core.css |
840 |
|
#rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/images/btn_donateCC_LG.gif |
841 |
|
#rm -f /etc/e-smith/web/panels/manager2/cgi-bin/logout |
842 |
|
|
843 |
%post |
%post |
844 |
#find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \ |
#find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \ |
845 |
# sed -n '/\/[0-9a-z]\{32\}$/p' | \ |
# sed -n '/\/[0-9a-z]\{32\}$/p' | \ |
846 |
# xargs grep -l Persisten | \ |
# xargs grep -l Persisten | \ |
847 |
# xargs rm -f |
# xargs rm -f |
848 |
|
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 |
849 |
|
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 |
850 |
|
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 |
851 |
|
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 |
852 |
|
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 |
853 |
|
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 |
854 |
|
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 |
855 |
|
ln -s /etc/e-smith/web/common/cgi-bin/logout /etc/e-smith/web/panels/manager2/cgi-bin/logout |
856 |
|
/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf |
857 |
|
chmod 0755 /etc/e-smith/web/panels/manager2/html/index.cgi |
858 |
|
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log |
859 |
|
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log |
860 |
|
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js |
861 |
|
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js |
862 |
|
chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
863 |
|
chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep |
864 |
|
|
|
%postun |
|
865 |
|
|
866 |
|
|
867 |
|
%postun |
868 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
869 |
%defattr(-,root,root) |
%defattr(-,root,root) |