/[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.1 by jpp, Sun Feb 4 17:51:12 2018 UTC Revision 1.13 by michel, Wed Feb 19 20:05:06 2020 UTC
# Line 1  Line 1 
1  # $Id: e-smith-manager.spec,v 1.28 2017/04/17 15:21:57 unnilennium Exp $  # $Id: smeserver-manager.spec,v 1.12 2020/01/27 09:34:11 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 1  %define release 10
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    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    Patch9: smeserver-manager-0.1.0-domains_pseudos_hosts.patch
23  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
24  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
25  BuildRequires: gettext  BuildRequires: gettext
# Line 17  BuildRequires: gcc Line 27  BuildRequires: gcc
27  Requires: e-smith-lib >= 1.18.0-26  Requires: e-smith-lib >= 1.18.0-26
28  Requires: e-smith-manager >= 2.4.0-22  Requires: e-smith-manager >= 2.4.0-22
29  Requires: perl-Mojolicious >= 6.44  Requires: perl-Mojolicious >= 6.44
30    Requires: perl-Mojolicious-Plugin-I18N >= 1.6
31  Requires: pwauth  Requires: pwauth
32  Requires: perl(Apache::AuthTkt)  Requires: perl(Apache::AuthTkt)
33  Provides: server-manager2  #Requires: smeserver-manager-html
34    #Provides: server-manager2
35  AutoReqProv: no  AutoReqProv: no
36    
37  %changelog  %changelog
38    * Wed Feb 19 2020 Michel Begue <mab974@gmail.com> 0.1.0-10.sme
39    - add panels : domains, hostentries and pseudonyms
40    - remove old navigation menu
41    
42    * Mon Jan 27 2020 Michel Begue <mab974@gmail.com> 0.1.0-9.sme
43    - Fix messages without variables expansion
44    - add a theme switcher
45    - split navigation menu between controller and template
46    - template + event for .conf file
47    
48    * Thu Jan 23 2020 Michel Begue <mab974@gmail.com> 0.1.0-8.sme
49    - Fix errors in Navigation
50    
51    * Wed Jan 22 2020 Michel Begue <mab974@gmail.com> 0.1.0-7.sme
52    - Fix link between Navigation and Theme
53    - Add System and Domain names to available data (header)
54    - Move some data lists from template to controller (select_field)
55    - Integrate last Brian's changes in server-manager2.css (AdminLTE)
56    - Fix some warnings and typos
57    
58    * Fri Jan 17 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-6.sme
59    - Add in theme based on AdminLTE html template
60    - Fixes Server name in header (Needs Template expansion - added to Console-Save
61    
62    * Sun Jan 12 2020 Michel Begue <mab974@gmail.com> 0.1.0-5.sme
63    - new theme to come
64    - css enhancement (thanks to B. Read)
65    - panels: reboot and ibays
66    
67    * Wed Jan 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-4.sme
68    - fix setuid with wrapper (remove sudo)
69    - panels quota and groups
70    
71    * Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme
72    - simple architecture : basic mojolicious app running
73    - some panels
74    - requires perl-Mojolicious-Plugin-I18N
75    
76    * Tue Feb 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.0-2.sme
77    - Start adding some template files
78    
79  * 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
80  - first smeserver-manager package [SME: 10506]  - first smeserver-manager package [SME: 10506]
81    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
# Line 746  This RPM contributes the navigation bars Line 799  This RPM contributes the navigation bars
799    
800  %prep  %prep
801  %setup  %setup
802    %patch0 -p1
803    %patch1 -p1
804    %patch2 -p1
805    %patch3 -p1
806    %patch4 -p1
807    %patch5 -p1
808    %patch6 -p1
809    %patch7 -p1
810    %patch8 -p1
811    %patch9 -p1
812    
813  %build  %build
814    # Force creation of potentially empty directories
815  perl createlinks  perl createlinks
816  #gcc -o root/etc/e-smith/web/functions/wrapper manager.c  mkdir -p root/etc/e-smith/web/functions2
817  #mkdir -p root/home/e-smith/db/navigation  mkdir -p root/home/e-smith/db/navigation
818  #mkdir -p root/etc/e-smith/web/common/css  mkdir -p root/etc/e-smith/web/common/css
819    mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html}
820    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images
821    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public{css,images,js,tmp}
822    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/templates/{layouts,partials}
823    
824    gcc -o root/etc/e-smith/web/functions2/wrapper2 manager2.c
825    
826  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/
827  #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 760  perl createlinks Line 830  perl createlinks
830  #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
831  #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
832    
833  #mkdir -p  root/etc/e-smith/web/panels/manager/html  #mkdir -p  root/etc/e-smith/web/panels/manager2/html
834  #for file in index initial  for file in index               #initial
835  #do  do
836  #    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
837  #done  done
838    
839  # 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}  
840  #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}  
   
841  #mkdir -p root/service  #mkdir -p root/service
842  #mkdir -p root/etc/rc.d/init.d/supervise  #mkdir -p root/etc/rc.d/init.d/supervise
843  #for service in httpd-admin  #for service in httpd-admin
# Line 793  rm -rf $RPM_BUILD_ROOT Line 858  rm -rf $RPM_BUILD_ROOT
858  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
859  rm -f %{name}-%{version}-%{release}-filelist  rm -f %{name}-%{version}-%{release}-filelist
860  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
861    --file /etc/e-smith/web/panels/manager2/cgi-bin/wbl 'attr(4750,root,admin)' \
862    --file /etc/e-smith/web/panels/manager2/cgi-bin/useraccounts 'attr(4750,root,admin)' \
863    --dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \
864    --file /etc/e-smith/web/functions2/wrapper2 'attr(4750,root,admin)' \
865    --file /etc/e-smith/web/functions2/index.cgi 'attr(0500,root,root)' \
866    > %{name}-%{version}-%{release}-filelist
867    echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
868    
869    
870    # Samples only
871  #    --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)' \
872  #    --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)' \
873  #    --file /etc/e-smith/web/functions/wrapper 'attr(4750,root,admin)' \  #    --file /etc/e-smith/web/functions/wrapper 'attr(4750,root,admin)' \
# Line 804  rm -f %{name}-%{version}-%{release}-file Line 879  rm -f %{name}-%{version}-%{release}-file
879  #    --dir /var/service/httpd-admin/supervise 'attr(0700,root,root)' \  #    --dir /var/service/httpd-admin/supervise 'attr(0700,root,root)' \
880  #    --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \  #    --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \
881  #    --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \  #    --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \
882      > %{name}-%{version}-%{release}-filelist  #    > %{name}-%{version}-%{release}-filelist
 echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist  
883    
884  %clean  %clean
885  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
886    
887  %pre  %pre
888  %preun  %preun
889    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/css/sme_core.css
890    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/images/btn_donateCC_LG.gif
891    #rm -f /etc/e-smith/web/panels/manager2/cgi-bin/logout
892    
893  %post  %post
894  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \
895  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \
896  #    xargs grep -l Persisten | \  #    xargs grep -l Persisten | \
897  #    xargs rm -f  #    xargs rm -f
898    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
899    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
900    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
901    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
902    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
903    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
904    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
905    ln -s /etc/e-smith/web/common/cgi-bin/logout /etc/e-smith/web/panels/manager2/cgi-bin/logout
906    /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
907    chmod 0755 /etc/e-smith/web/panels/manager2/html/index.cgi
908    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
909    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
910    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
911    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
912    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js
913    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js
914    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
915    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
916    chown root:admin /etc/e-smith/web/functions2/wrapper2
917    chmod 4750  /etc/e-smith/web/functions2/wrapper2
918    
 %postun  
919    
920    %postun
921  %files -f %{name}-%{version}-%{release}-filelist  %files -f %{name}-%{version}-%{release}-filelist
922  %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