/[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.18 by brianr, Tue Apr 7 17:56:02 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.17 2020/04/07 13:29:49 brianr 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 15
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    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    Patch12: smeserver-manager-0.1.0-localnetworks-remove-db-call-from-del.patch
26    Patch13: smeserver-manager-0.1.0-portforwarding-localnetwork-cleanup.patch
27    Patch14: smeserver-manager-0.1.0-portforwarding-rule-comment-missing.patch
28  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
29  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
30  BuildRequires: gettext  BuildRequires: gettext
# Line 19  BuildRequires: gcc Line 32  BuildRequires: gcc
32  Requires: e-smith-lib >= 1.18.0-26  Requires: e-smith-lib >= 1.18.0-26
33  Requires: e-smith-manager >= 2.4.0-22  Requires: e-smith-manager >= 2.4.0-22
34  Requires: perl-Mojolicious >= 6.44  Requires: perl-Mojolicious >= 6.44
35    Requires: perl-Mojolicious-Plugin-I18N >= 1.6
36  Requires: pwauth  Requires: pwauth
37  Requires: perl(Apache::AuthTkt)  Requires: perl(Apache::AuthTkt)
38  Requires: smeserver-manager-html  #Requires: smeserver-manager-html
39  Provides: server-manager2  #Provides: server-manager2
40  AutoReqProv: no  AutoReqProv: no
41    
42  %changelog  %changelog
43    * Tue Apr 07 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-14.sme
44    - Sort out rule comment in portforwarding add panel
45    
46    * Tue Apr 07 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-14.sme
47    - Add in portforwarding panel
48    - Clean up localnetwork panel code
49    
50    * Sun Mar 29 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-13.sme
51    - Remove Db call in LN_del template
52    - Use Sme-error css class and make sure parameters applied to error message
53    - Remove creation of AdminLTE directories on install
54    
55    * Fri Mar 20 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-12.sme
56    - Add panels : localnetworks
57    - Delete AdminLTE code  - will get added into new rpm
58    
59    * Sat Feb 29 2020 Michel Begue <mab974@gmail.com> 0.1.0-11.sme
60    - Add panels : remoteaccess, useraccounts and viewlogfiles
61    - Fix 'bugreport' download
62    - css enhancement in default theme
63    - Fix warnings and typos
64    
65    * Wed Feb 19 2020 Michel Begue <mab974@gmail.com> 0.1.0-10.sme
66    - add panels : domains, hostentries and pseudonyms
67    - remove old navigation menu
68    
69    * Mon Jan 27 2020 Michel Begue <mab974@gmail.com> 0.1.0-9.sme
70    - Fix messages without variables expansion
71    - add a theme switcher
72    - split navigation menu between controller and template
73    - template + event for .conf file
74    
75    * Thu Jan 23 2020 Michel Begue <mab974@gmail.com> 0.1.0-8.sme
76    - Fix errors in Navigation
77    
78    * Wed Jan 22 2020 Michel Begue <mab974@gmail.com> 0.1.0-7.sme
79    - Fix link between Navigation and Theme
80    - Add System and Domain names to available data (header)
81    - Move some data lists from template to controller (select_field)
82    - Integrate last Brian's changes in server-manager2.css (AdminLTE)
83    - Fix some warnings and typos
84    
85    * Fri Jan 17 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-6.sme
86    - Add in theme based on AdminLTE html template
87    - Fixes Server name in header (Needs Template expansion - added to Console-Save
88    
89    * Sun Jan 12 2020 Michel Begue <mab974@gmail.com> 0.1.0-5.sme
90    - new theme to come
91    - css enhancement (thanks to B. Read)
92    - panels: reboot and ibays
93    
94    * Wed Jan 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-4.sme
95    - fix setuid with wrapper (remove sudo)
96    - panels quota and groups
97    
98    * Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme
99    - simple architecture : basic mojolicious app running
100    - some panels
101    - requires perl-Mojolicious-Plugin-I18N
102    
103  * 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
104  - Start adding some template files  - Start adding some template files
105    
# Line 754  This RPM contributes the navigation bars Line 828  This RPM contributes the navigation bars
828  %setup  %setup
829  %patch0 -p1  %patch0 -p1
830  %patch1 -p1  %patch1 -p1
831    %patch2 -p1
832    %patch3 -p1
833    %patch4 -p1
834    %patch5 -p1
835    %patch6 -p1
836    %patch7 -p1
837    %patch8 -p1
838    %patch9 -p1
839    %patch10 -p1
840    %patch11 -p1
841    %patch12 -p1
842    %patch13 -p1
843    %patch14 -p1
844    
845  %build  %build
846    # Force creation of potentially empty directories
847  perl createlinks  perl createlinks
848  #gcc -o root/etc/e-smith/web/functions/wrapper manager.c  mkdir -p root/etc/e-smith/web/functions2
849  #mkdir -p root/home/e-smith/db/navigation  mkdir -p root/home/e-smith/db/navigation
850  #mkdir -p root/etc/e-smith/web/common/css  mkdir -p root/etc/e-smith/web/common/css
851    mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html}
852    mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/images
853    #mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public{css,images,js,tmp}
854    #mkdir -p root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/templates/{layouts,partials}
855    
856    gcc -o root/etc/e-smith/web/functions2/wrapper2 manager2.c
857    
858  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/  #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/
859  #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 862  perl createlinks
862  #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
863  #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
864    
865  #mkdir -p  root/etc/e-smith/web/panels/manager/html  #mkdir -p  root/etc/e-smith/web/panels/manager2/html
866  #for file in index initial  for file in index               #initial
867  #do  do
868  #    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
869  #done  done
870    
871  # 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}  
872  #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}  
   
873  #mkdir -p root/service  #mkdir -p root/service
874  #mkdir -p root/etc/rc.d/init.d/supervise  #mkdir -p root/etc/rc.d/init.d/supervise
875  #for service in httpd-admin  #for service in httpd-admin
# Line 804  rm -f %{name}-%{version}-%{release}-file Line 893  rm -f %{name}-%{version}-%{release}-file
893  --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)' \
894  --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)' \
895  --dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \  --dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \
896    --file /etc/e-smith/web/functions2/wrapper2 'attr(4750,root,admin)' \
897    --file /etc/e-smith/web/functions2/index.cgi 'attr(0500,root,root)' \
898  > %{name}-%{version}-%{release}-filelist  > %{name}-%{version}-%{release}-filelist
899  echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist  echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
900    
# Line 827  rm -rf $RPM_BUILD_ROOT Line 918  rm -rf $RPM_BUILD_ROOT
918    
919  %pre  %pre
920  %preun  %preun
921    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/css/sme_core.css
922    #rm -f /etc/e-smith/web/panels/manager2/srvmngr/public/images/btn_donateCC_LG.gif
923    #rm -f /etc/e-smith/web/panels/manager2/cgi-bin/logout
924    
925  %post  %post
926  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \  #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \
927  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \  #    sed -n '/\/[0-9a-z]\{32\}$/p' | \
928  #    xargs grep -l Persisten | \  #    xargs grep -l Persisten | \
929  #    xargs rm -f  #    xargs rm -f
930    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
931    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
932    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
933    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
934    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
935    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
936    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
937    ln -s /etc/e-smith/web/common/cgi-bin/logout /etc/e-smith/web/panels/manager2/cgi-bin/logout
938    /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
939    chmod 0755 /etc/e-smith/web/panels/manager2/html/index.cgi
940    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
941    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/log/development.log
942    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
943    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/public/js/navigation.js
944    #chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js
945    #chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/AdminLTE/public/js/navigation.js
946    chown root:admin /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
947    chmod 0660 /etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/themes/default/templates/partials/_navig.html.ep
948    chown root:admin /etc/e-smith/web/functions2/wrapper2
949    chmod 4750  /etc/e-smith/web/functions2/wrapper2
950    
 %postun  
951    
952    %postun
953  %files -f %{name}-%{version}-%{release}-filelist  %files -f %{name}-%{version}-%{release}-filelist
954  %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