Skip to contentSkip to conversation

webmin: upgrade 1.850 -> 1.941

PATCH New Wang Mingyu 1 participant 1 message Apr 22, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 webmin: upgrade 1.850 -> 1.941

From: Wang Mingyu <[email protected]>

refresh the folloing patches:
disable-version-check.patch
net-generic.patch
net-lib.pl.patch

-License-Update: add "BSD 3-Clause License" to license file

---
 .../webmin/files/disable-version-check.patch  | 24 +++++++----
 .../webmin/files/net-generic.patch            | 43 +++++++++++--------
 .../webmin/files/net-lib.pl.patch             | 21 ++++++---
 .../{webmin_1.850.bb => webmin_1.941.bb}      |  6 +--
 4 files changed, 58 insertions(+), 36 deletions(-)
 rename meta-webserver/recipes-webadmin/webmin/{webmin_1.850.bb => webmin_1.941.bb} (97%)
meta-webserver/recipes-webadmin/webmin/files/disable-version-check.patch +15 -9
index 9aad894e0..dc2c0be6e 100644
@@ -6,12 +6,15 @@ the moment.
 Upstream-status: Inappropriate
 
 Signed-off-by: Paul Eggleton <[email protected]>
+---
+ webmin/webmin-lib.pl | 44 ++++++++++++++++++++++----------------------
+ 1 file changed, 22 insertions(+), 22 deletions(-)
 
-Index: webmin-1.850/webmin/webmin-lib.pl
-===================================================================
---- webmin-1.850.orig/webmin/webmin-lib.pl
-+++ webmin-1.850/webmin/webmin-lib.pl
-@@ -1112,28 +1112,28 @@ my %miniserv;
+diff --git a/webmin/webmin-lib.pl b/webmin/webmin-lib.pl
+index dad6cfc0..73821f01 100755
+--- a/webmin/webmin-lib.pl
++++ b/webmin/webmin-lib.pl
+@@ -1130,28 +1130,28 @@ my %miniserv;
  &load_theme_library();	# So that UI functions work
  
  # Need OS upgrade
@@ -24,12 +27,12 @@ Index: webmin-1.850/webmin/webmin-lib.pl
 -	my ($minor) = split(/\./, $gconfig{'os_version'});
 -	if ($realos{'os_type'} eq $gconfig{'os_type'} &&
 -	    $realminor == $minor) {
--		# Only the minor version number changed - no need to apply
+-		# Only the minor version number changed - just apply silently
 -		&apply_new_os_version(\%realos);
 -		}
 -	else {
 -		# Large enough change to tell the user
--		push(@notifs, 
+-		push(@notifs,
 -		    &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi").
 -		    &text('os_incorrect', $realos{'real_os_type'},
 -		    		          $realos{'real_os_version'})."<p>\n".
@@ -46,12 +49,12 @@ Index: webmin-1.850/webmin/webmin-lib.pl
 +#	my ($minor) = split(/\./, $gconfig{'os_version'});
 +#	if ($realos{'os_type'} eq $gconfig{'os_type'} &&
 +#	    $realminor == $minor) {
-+#		# Only the minor version number changed - no need to apply
++#		# Only the minor version number changed - just apply silently
 +#		&apply_new_os_version(\%realos);
 +#		}
 +#	else {
 +#		# Large enough change to tell the user
-+#		push(@notifs, 
++#		push(@notifs,
 +#		    &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi").
 +#		    &text('os_incorrect', $realos{'real_os_type'},
 +#		    		          $realos{'real_os_version'})."<p>\n".
@@ -62,3 +65,6 @@ Index: webmin-1.850/webmin/webmin-lib.pl
  
  # Password close to expiry
  my $warn_days = $config{'warn_days'};
+-- 
+2.17.1
+
meta-webserver/recipes-webadmin/webmin/files/net-generic.patch +26 -17

49 lines not on this page · raw message

meta-webserver/recipes-webadmin/webmin/files/net-lib.pl.patch +14 -7
index bdba5e73f..64105b187 100644
@@ -3,17 +3,24 @@ Upstream-Status: Inappropriate [config]
 XXX: need to work out a better fix.
 
 Signed-off-by: Dexuan Cui <[email protected]>
+---
+ net/net-lib.pl | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
 
-diff -Nru webmin-1.570.orig//net/net-lib.pl webmin-1.570/net/net-lib.pl
---- webmin-1.570.orig//net/net-lib.pl	2011-10-03 09:01:48.000000000 +0800
-+++ webmin-1.570/net/net-lib.pl	2011-10-28 13:52:56.138873664 +0800
-@@ -21,7 +21,8 @@
- 	do "$gconfig{'os_type'}-9.1-ALL-lib.pl";
+diff --git a/net/net-lib.pl b/net/net-lib.pl
+index affa1d11..5a47b9dd 100755
+--- a/net/net-lib.pl
++++ b/net/net-lib.pl
+@@ -26,7 +26,8 @@ elsif ($gconfig{'os_type'} eq 'debian-linux' && -d "/etc/netplan") {
+ 	do "netplan-lib.pl";
  	}
  else {
 -	do "$gconfig{'os_type'}-lib.pl";
-+	#do "$gconfig{'os_type'}-lib.pl";
-+	do "debian-linux-lib.pl";
++        #do "$gconfig{'os_type'}-lib.pl";
+++       do "debian-linux-lib.pl";
  	}
  
  # list_hosts()
+-- 
+2.17.1
+
meta-webserver/recipes-webadmin/webmin/webmin_1.941.bb renamed from meta-webserver/recipes-webadmin/webmin/webmin_1.850.bb +3 -3
similarity index 97%
rename from meta-webserver/recipes-webadmin/webmin/webmin_1.850.bb
rename to meta-webserver/recipes-webadmin/webmin/webmin_1.941.bb
index 112365d4b..067c7bf6d 100644
@@ -1,7 +1,7 @@
 SUMMARY = "Web-based administration interface"
 HOMEPAGE = "http://www.webmin.com"
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENCE;md5=0373ac9f611e542ddebe1ec6394afc3c"
+LIC_FILES_CHKSUM = "file://LICENCE;md5=0a6446108c96d0819d21e40b48109507"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \
            file://setup.sh \
@@ -21,8 +21,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \
            file://webmin.service \
             "
 
-SRC_URI[md5sum] = "cd6ee98f73f9418562197675b952d81b"
-SRC_URI[sha256sum] = "c66caa9e4cb50d5447bc8aceb7989d2284dde060278f404b13e171c7ce1690e1"
+SRC_URI[md5sum] = "bb8f63068a86a14269726f4d934b8d38"
+SRC_URI[sha256sum] = "3a19228d92556c7722c6fe56c9d4b73d477a19845b0dae3f018fc7fc0306b29a"
 
 UPSTREAM_CHECK_URI = "http://www.webmin.com/download.html"
 UPSTREAM_CHECK_REGEX = "webmin-(?P<pver>\d+(\.\d+)+).tar.gz"
Signature · 1 line
2.17.1