Question: Is there a need to support multiple licenses, or just one file? support.pl uses whiptail (now provided by newt) it is very ugly on SME 9 It is possible to use dialog with --textbox to display a license file I have added a new method in console.pm, and then modifying support.pl =head2 textbox A text box lets you display the contents of a text file in a dialog box. It is like a simple text file viewer. =cut sub textbox { my $self = shift; my %params = @_; my $title = $params{title}; my $file = $params{file}; my $height = $params{height} || '20'; my $width = $params{width} || SCREEN_COLUMNS; $self->screen("--title", $title, "--textbox", $file, $height, $width, ); } It needs more work after I return, maybe multiple bugs. Introduce textbox in console.pm Move support.pl to smeserver-support from e-smith-base Modify support.pl to display correct license for SME Server Modify support.pl to display correct header for SME Server (and not the current "Mitel Networks Corporation support and licensing information") newt and authconfig may longer be needed.
*** Bug 2535 has been marked as a duplicate of this bug. ***
*** Bug 2657 has been marked as a duplicate of this bug. ***
Closing, released in Beta 4
Bug is Verified
Created attachment 4616 [details] SME9b4 licence screen Licence screen showing changes etc
Created attachment 4615 [details] SME9b3 licence screen VERIFICATION = Environment: SME9.0b3 and SME9.0b4 ESXi 5.5 VM. = Original problem: Bug 8264 - Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264] = Resolution: This removes the old support.pl e-smith-base-5.4.0-61.el6.sme.noarch %changelog * Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 5.4.0-61.sme - Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264] With this update the support menu is removed from the console options. The new updated support.pl will be created in smeserver-support next = Current version installed: [root@sme9364 ~]# cat /etc/e-smith-release SME Server release 9.0beta3 [root@sme9364 ~]# uname -r 2.6.32-431.3.1.el6.x86_64 [root@sme9364 ~]# rpm -qa e-smith-base e-smith-base-5.4.0-55.el6.sme.noarch [root@sme9364 ~]# rpm -qa e-smith-lib e-smith-lib-2.4.0-11.el6.sme.noarch [root@sme9364 ~]# rpm -qa smeserver-support smeserver-support-2.4.0-20.el6.sme.noarch =Testing: [root@sme9364 ~]# console Select item 7 View Support and Licensing Information 1) check the license screen with SME Beta 3 or earlier to see the 'ugly' view See attached image 3) check support.pl has moved from e-smith-base to smeserver-support [root@sme9364 ~]# rpm -ql e-smith-base | grep support.pl /sbin/e-smith/console-menu-items/support.pl [root@sme9364 ~]# rpm -ql smeserver-support | grep support.pl [root@sme9364 ~]# = Updated version installed: [root@sme9b464 ~]# cat /etc/e-smith-release SME Server release 9.0beta4 [root@sme9b464 ~]# uname -r 2.6.32-431.11.2.el6.x86_64 [root@sme9b464 ~]# rpm -qa e-smith-base e-smith-base-5.6.0-4.el6.sme.noarch [root@sme9b464 ~]# rpm -qa e-smith-lib e-smith-lib-2.4.0-14.el6.sme.noarch [root@sme9b464 ~]# rpm -qa smeserver-support smeserver-support-2.6.0-1.el6.sme.noarch [root@sme9364 ~]# console Select item 7 View Support and Licensing Information 2) With Beta 4 verify that the license screen has changed See attached image of SME9b4 in comment above 3) check support.pl has moved from e-smith-base to smeserver-support [root@sme9b464 ~]# rpm -ql e-smith-base | grep support.pl [root@sme9b464 ~]# rpm -ql smeserver-support | grep support.pl /sbin/e-smith/console-menu-items/support.pl = Problem fixed: Remove support.pl from e-smith-base and move to smeserver-support = Verified or Reopen: VERIFIED = DOCUMENTATION IMPACT: Nil = Suggested release notes: %changelog * Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 5.4.0-61.sme - Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264]
OK, I will look after this one
(In reply to Stephane de Labrusse from comment #5) > question how verify this bug since the packages asked are more recent. In general it is OK to use a newer package. To verify this bug I would like to see 1) check the license screen with SME Beta 3 or earlier to see the 'ugly' view 2) With Beta 4 verify that the license screen has changed 3) check support.pl has moved from e-smith-base to smeserver-support (rpm -ql e-smith-base | grep support.pl and rpm -ql smeserver-support | grep support.pl preferably for SME 9 Beta 3 and Beta 4 - I may have the RPM command slightly wrong as its from memory.)
(In reply to Ian Wells from comment #4) > Three packages are needed for the full fix > > e-smith-lib-2.4.0-13.el6.sme.noarch > e-smith-base-5.4.0-61.el6.sme.noarch > smeserver-support-2.4.0-21.el6.sme.noarch > > > Updated support.pl added back in smeserver-support-2.4.0-21.el6.sme.noarch question how verify this bug since the packages asked are more recent. # rpm -qa e-smith-lib e-smith-lib-2.4.0-14.el6.sme.noarch # rpm -qa e-smith-base e-smith-base-5.6.0-4.el6.sme.noarch # rpm -qa smeserver-support smeserver-support-2.6.0-1.el6.sme.noarch
Three packages are needed for the full fix e-smith-lib-2.4.0-13.el6.sme.noarch e-smith-base-5.4.0-61.el6.sme.noarch smeserver-support-2.4.0-21.el6.sme.noarch Updated support.pl added back in smeserver-support-2.4.0-21.el6.sme.noarch %changelog * Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 2.4.0-21.sme - Move support.pl from e-smith-base to smeserver-support [SME: 8264] - This console license page now uses dialog's textbox. support.pl is now essentially the following #------------------------------------------------------------ # SUPPORT: #------------------------------------------------------------ my ($self, $console, $db) = @_; my $licenseFile = esmith::util::getLicenseFile(); my ($rc, $choice) = $console->textbox ( title => gettext('Support and licensing information'), file => $licenseFile, ); The removal of whiptail use itself will be a new bug.
This removes the old support.pl e-smith-base-5.4.0-61.el6.sme.noarch %changelog * Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 5.4.0-61.sme - Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264] With this update the support menu is removed from the console options. The new updated support.pl will be created in smeserver-support next.
Part 1 Add new functions to e-smith-lib e-smith-lib-2.4.0-13.el6.sme.noarch %changelog * Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 2.4.0-13.sme - Add textbox() to console.pm, getLicenseFile to util.pm [SME: 8264] getLicenseFile() will return the first license file, alphabetically. In SME Server 9.0 there is only one file. It will also pick the correct language variant if there is one. textbox() is a simple text file viewer, which can be used to display the license file. Part 2 will change support.pl to use these new functions.
(In reply to Ian Wells from comment #0) > It needs more work after I return, maybe multiple bugs. > > Introduce textbox in console.pm > Move support.pl to smeserver-support from e-smith-base > Modify support.pl to display correct license for SME Server > Modify support.pl to display correct header for SME Server (and not the > current "Mitel Networks Corporation support and licensing information") Sounds good. > newt and authconfig may longer be needed. I guess you mean "may no longer" ...