/[smeserver]/rpms/smeserver-manager/sme10/smeserver-manager.spec
ViewVC logotype

Diff of /rpms/smeserver-manager/sme10/smeserver-manager.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by jcrisp, Mon Dec 17 12:01:03 2018 UTC Revision 1.9 by brianr, Tue Jan 21 07:34:29 2020 UTC
# Line 1  Line 1 
1  # $Id: smeserver-manager.spec,v 1.3 2018/02/04 18:11:07 jpp Exp $  # $Id: smeserver-manager.spec,v 1.8 2020/01/12 20:09:06 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 2  %define release 6
8  Version: %{version}  Version: %{version}
9  Release: %{release}%{?dist}  Release: %{release}%{?dist}
10  License: GPL  License: GPL
# Line 12  Group: Networking/Daemons Line 12  Group: Networking/Daemons
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  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
21  BuildRequires: gettext  BuildRequires: gettext
# Line 19  BuildRequires: gcc Line 23  BuildRequires: gcc
23  Requires: e-smith-lib >= 1.18.0-26  Requires: e-smith-lib >= 1.18.0-26
24  Requires: e-smith-manager >= 2.4.0-22  Requires: e-smith-manager >= 2.4.0-22
25  Requires: perl-Mojolicious >= 6.44  Requires: perl-Mojolicious >= 6.44
26    Requires: perl-Mojolicious-Plugin-I18N >= 1.6
27  Requires: pwauth  Requires: pwauth
28  Requires: perl(Apache::AuthTkt)  Requires: perl(Apache::AuthTkt)
29  Requires: smeserver-manager-html  #Requires: smeserver-manager-html
30  Provides: server-manager2  #Provides: server-manager2
31  AutoReqProv: no  AutoReqProv: no
32    
33  %changelog  %changelog
34    * Fri Jan 17 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-6.sme
35    - Add in theme based on AdminLTE html template
36    - Fixes Server name in header (Needs Template expansion - added to Console-Save
37    
38    * Sun Jan 12 2020 Michel Begue <mab974@gmail.com> 0.1.0-5.sme
39    - new theme to come
40    - css enhancement (thanks to B. Read)
41    - panels: reboot and ibays
42    
43    * Wed Jan 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-4.sme
44    - fix setuid with wrapper (remove sudo)
45    - panels quota and groups
46    
47    * Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme
48    - simple architecture : basic mojolicious app running
49    - some panels
50    - requires perl-Mojolicious-Plugin-I18N
51    
52  * 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
53  - Start adding some template files  - Start adding some template files
54    
# Line 754  This RPM contributes the navigation bars Line 777  This RPM contributes the navigation bars
777  %setup  %setup
778  %patch0 -p1  %patch0 -p1
779  %patch1 -p1  %patch1 -p1
780    %patch2 -p1
781    %patch3 -p1
782    %patch4 -p1
783    %patch5 -p1
784    
785  %build  %build
786    # Force creation of potentially empty directories
787  perl createlinks  perl createlinks
788  #gcc -o root/etc/e-smith/web/functions/wrapper manager.c  mkdir -p root/etc/e-smith/web/functions2
789  #mkdir -p root/home/e-smith/db/navigation  mkdir -p root/home/e-smith/db/navigation
790  #mkdir -p root/etc/e-smith/web/common/css  mkdir -p root/etc/e-smith/web/common/css
791    mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html}
792    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images
793    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public{css,images,js,tmp}
794    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/templates/{layouts,partials}
795    
796    gcc -o root/etc/e-smith/web/functions2/wrapper2 manager2.c
797    
798  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/
799  #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
# Line 768  perl createlinks Line 802  perl createlinks
802  #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
803  #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
804    
805  #mkdir -p  root/etc/e-smith/web/panels/manager/html  #mkdir -p  root/etc/e-smith/web/panels/manager2/html
806  #for file in index initial  for file in index               #initial
807  #do  do
808  #    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
809  #done  done
810    
811  # 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}  
812  #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}  
   
813  #mkdir -p root/service  #mkdir -p root/service
814  #mkdir -p root/etc/rc.d/init.d/supervise  #mkdir -p root/etc/rc.d/init.d/supervise
815  #for service in httpd-admin  #for service in httpd-admin
# Line 804  rm -f %{name}-%{version}-%{release}-file Line 833  rm -f %{name}-%{version}-%{release}-file
833  --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)' \
834  --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)' \
835  --dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \  --dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \
836    --file /etc/e-smith/web/functions2/wrapper2 'attr(4750,root,admin)' \
837    --file /etc/e-smith/web/functions2/index.cgi 'attr(0500,root,root)' \
838  > %{name}-%{version}-%{release}-filelist  > %{name}-%{version}-%{release}-filelist
839  echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist  echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
840    
# Line 827  rm -rf $RPM_BUILD_ROOT Line 858  rm -rf $RPM_BUILD_ROOT
858    
859  %pre  %pre
860  %preun  %preun
861    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/css/sme_core.css
862    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/images/btn_donateCC_LG.gif
863    #rm -f /etc/e-smith/web/panels/manager2/cgi-bin/logout
864    
865  %post  %post
866  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \
867  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \
868  #    xargs grep -l Persisten | \  #    xargs grep -l Persisten | \
869  #    xargs rm -f  #    xargs rm -f
870    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
871    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
872    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
873    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
874    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
875    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
876    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
877    ln -s /etc/e-smith/web/common/cgi-bin/logout /etc/e-smith/web/panels/manager2/cgi-bin/logout
878    /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
879    chmod 0755 /etc/e-smith/web/panels/manager2/html/index.cgi
880    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
881    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
882    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
883    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
884    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
885    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
886    chown root:admin /etc/e-smith/web/functions2/wrapper2
887    chmod 4750  /etc/e-smith/web/functions2/wrapper2
888    
 %postun  
889    
890    %postun
891  %files -f %{name}-%{version}-%{release}-filelist  %files -f %{name}-%{version}-%{release}-filelist
892  %defattr(-,root,root)  %defattr(-,root,root)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed