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