/[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.15 by brianr, Fri Mar 20 15:48:27 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.14 2020/02/29 19:08:19 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 12
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    Patch10: smeserver-manager-0.1.0-remotax_users_logs.patch
24    Patch11: smeserver-manager-0.1.0-localnetworks-panel-remove-adminlte.patch
25  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
26  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
27  BuildRequires: gettext  BuildRequires: gettext
# Line 17  BuildRequires: gcc Line 29  BuildRequires: gcc
29  Requires: e-smith-lib >= 1.18.0-26  Requires: e-smith-lib >= 1.18.0-26
30  Requires: e-smith-manager >= 2.4.0-22  Requires: e-smith-manager >= 2.4.0-22
31  Requires: perl-Mojolicious >= 6.44  Requires: perl-Mojolicious >= 6.44
32    Requires: perl-Mojolicious-Plugin-I18N >= 1.6
33  Requires: pwauth  Requires: pwauth
34  Requires: perl(Apache::AuthTkt)  Requires: perl(Apache::AuthTkt)
35  Provides: server-manager2  #Requires: smeserver-manager-html
36    #Provides: server-manager2
37  AutoReqProv: no  AutoReqProv: no
38    
39  %changelog  %changelog
40    * Fri Mar 20 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-12.sme
41    - Add panels : localnetworks
42    - Delete AdminLTE code  - will get added into new rpm
43    
44    * Sat Feb 29 2020 Michel Begue <mab974@gmail.com> 0.1.0-11.sme
45    - Add panels : remoteaccess, useraccounts and viewlogfiles
46    - Fix 'bugreport' download
47    - css enhancement in default theme
48    - Fix warnings and typos
49    
50    * Wed Feb 19 2020 Michel Begue <mab974@gmail.com> 0.1.0-10.sme
51    - add panels : domains, hostentries and pseudonyms
52    - remove old navigation menu
53    
54    * Mon Jan 27 2020 Michel Begue <mab974@gmail.com> 0.1.0-9.sme
55    - Fix messages without variables expansion
56    - add a theme switcher
57    - split navigation menu between controller and template
58    - template + event for .conf file
59    
60    * Thu Jan 23 2020 Michel Begue <mab974@gmail.com> 0.1.0-8.sme
61    - Fix errors in Navigation
62    
63    * Wed Jan 22 2020 Michel Begue <mab974@gmail.com> 0.1.0-7.sme
64    - Fix link between Navigation and Theme
65    - Add System and Domain names to available data (header)
66    - Move some data lists from template to controller (select_field)
67    - Integrate last Brian's changes in server-manager2.css (AdminLTE)
68    - Fix some warnings and typos
69    
70    * Fri Jan 17 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-6.sme
71    - Add in theme based on AdminLTE html template
72    - Fixes Server name in header (Needs Template expansion - added to Console-Save
73    
74    * Sun Jan 12 2020 Michel Begue <mab974@gmail.com> 0.1.0-5.sme
75    - new theme to come
76    - css enhancement (thanks to B. Read)
77    - panels: reboot and ibays
78    
79    * Wed Jan 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-4.sme
80    - fix setuid with wrapper (remove sudo)
81    - panels quota and groups
82    
83    * Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme
84    - simple architecture : basic mojolicious app running
85    - some panels
86    - requires perl-Mojolicious-Plugin-I18N
87    
88    * Tue Feb 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.0-2.sme
89    - Start adding some template files
90    
91  * 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
92  - first smeserver-manager package [SME: 10506]  - first smeserver-manager package [SME: 10506]
93    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 811  This RPM contributes the navigation bars
811    
812  %prep  %prep
813  %setup  %setup
814    %patch0 -p1
815    %patch1 -p1
816    %patch2 -p1
817    %patch3 -p1
818    %patch4 -p1
819    %patch5 -p1
820    %patch6 -p1
821    %patch7 -p1
822    %patch8 -p1
823    %patch9 -p1
824    %patch10 -p1
825    %patch11 -p1
826    
827  %build  %build
828    # Force creation of potentially empty directories
829  perl createlinks  perl createlinks
830  #gcc -o root/etc/e-smith/web/functions/wrapper manager.c  mkdir -p root/etc/e-smith/web/functions2
831  #mkdir -p root/home/e-smith/db/navigation  mkdir -p root/home/e-smith/db/navigation
832  #mkdir -p root/etc/e-smith/web/common/css  mkdir -p root/etc/e-smith/web/common/css
833    mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html}
834    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images
835    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public{css,images,js,tmp}
836    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/templates/{layouts,partials}
837    
838    gcc -o root/etc/e-smith/web/functions2/wrapper2 manager2.c
839    
840  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/
841  #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 844  perl createlinks
844  #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
845  #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
846    
847  #mkdir -p  root/etc/e-smith/web/panels/manager/html  #mkdir -p  root/etc/e-smith/web/panels/manager2/html
848  #for file in index initial  for file in index               #initial
849  #do  do
850  #    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
851  #done  done
852    
853  # 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}  
854  #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}  
   
855  #mkdir -p root/service  #mkdir -p root/service
856  #mkdir -p root/etc/rc.d/init.d/supervise  #mkdir -p root/etc/rc.d/init.d/supervise
857  #for service in httpd-admin  #for service in httpd-admin
# Line 793  rm -rf $RPM_BUILD_ROOT Line 872  rm -rf $RPM_BUILD_ROOT
872  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
873  rm -f %{name}-%{version}-%{release}-filelist  rm -f %{name}-%{version}-%{release}-filelist
874  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
875    --file /etc/e-smith/web/panels/manager2/cgi-bin/wbl 'attr(4750,root,admin)' \
876    --file /etc/e-smith/web/panels/manager2/cgi-bin/useraccounts 'attr(4750,root,admin)' \
877    --dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \
878    --file /etc/e-smith/web/functions2/wrapper2 'attr(4750,root,admin)' \
879    --file /etc/e-smith/web/functions2/index.cgi 'attr(0500,root,root)' \
880    > %{name}-%{version}-%{release}-filelist
881    echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
882    
883    
884    # Samples only
885  #    --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)' \
886  #    --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)' \
887  #    --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 893  rm -f %{name}-%{version}-%{release}-file
893  #    --dir /var/service/httpd-admin/supervise 'attr(0700,root,root)' \  #    --dir /var/service/httpd-admin/supervise 'attr(0700,root,root)' \
894  #    --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \  #    --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \
895  #    --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \  #    --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \
896      > %{name}-%{version}-%{release}-filelist  #    > %{name}-%{version}-%{release}-filelist
 echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist  
897    
898  %clean  %clean
899  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
900    
901  %pre  %pre
902  %preun  %preun
903    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/css/sme_core.css
904    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/images/btn_donateCC_LG.gif
905    #rm -f /etc/e-smith/web/panels/manager2/cgi-bin/logout
906    
907  %post  %post
908  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \
909  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \
910  #    xargs grep -l Persisten | \  #    xargs grep -l Persisten | \
911  #    xargs rm -f  #    xargs rm -f
912    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
913    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
914    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
915    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
916    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
917    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
918    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
919    ln -s /etc/e-smith/web/common/cgi-bin/logout /etc/e-smith/web/panels/manager2/cgi-bin/logout
920    /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
921    chmod 0755 /etc/e-smith/web/panels/manager2/html/index.cgi
922    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
923    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
924    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
925    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
926    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js
927    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js
928    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
929    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
930    chown root:admin /etc/e-smith/web/functions2/wrapper2
931    chmod 4750  /etc/e-smith/web/functions2/wrapper2
932    
 %postun  
933    
934    %postun
935  %files -f %{name}-%{version}-%{release}-filelist  %files -f %{name}-%{version}-%{release}-filelist
936  %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