git: 5e92d4485ceb - main - www/selenium: Update to 4.1.3

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 20 Jun 2022 20:51:44 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5e92d4485ceb0ad5316ef32b01756e84adcfe018

commit 5e92d4485ceb0ad5316ef32b01756e84adcfe018
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2022-06-20 06:05:32 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-06-20 20:47:59 +0000

    www/selenium: Update to 4.1.3
    
    ChangeLog: https://github.com/SeleniumHQ/selenium/releases/tag/selenium-4.1.0
    
    Add UPDATING note to warn about parameter change in rc.conf
    
    PR:     263081
    Reported by:    einar@isnic.is
    Approved by:    daniel@blodan.se (maintainer)
---
 UPDATING                       |  7 +++++++
 www/selenium/Makefile          | 19 ++++++++-----------
 www/selenium/distinfo          |  4 ++--
 www/selenium/files/selenium.in |  4 ++--
 4 files changed, 19 insertions(+), 15 deletions(-)

diff --git a/UPDATING b/UPDATING
index 84e42b3888be..3684a2974f4b 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,13 @@ they are unavoidable.
 You should get into the habit of checking this file for changes each time
 you update your ports collection, before attempting any port upgrades.
 
+20220620:
+AFFECTS: users of www/selenium
+  AUTHOR: fernape@FreeBSD.org
+
+  The port has changed startup args so if you are using selenium_args= in
+  rc.conf you need to add the parameter "standalone" manually.
+
 20220616:
   AFFECTS: users of net-mgmt/netbox
   AUTHOR: kai@FreeBSD.org
diff --git a/www/selenium/Makefile b/www/selenium/Makefile
index a400801f860e..7ee1672042a5 100644
--- a/www/selenium/Makefile
+++ b/www/selenium/Makefile
@@ -1,8 +1,8 @@
 PORTNAME=	selenium
-PORTVERSION=	3.141.59
+PORTVERSION=	4.1.3	
 CATEGORIES=	www devel java
-MASTER_SITES=	http://selenium-release.storage.googleapis.com/3.141/
-DISTNAME=	selenium-server-standalone-${PORTVERSION}
+MASTER_SITES=	https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/
+DISTNAME=	selenium-server-${PORTVERSION}
 EXTRACT_SUFX=	.jar
 EXTRACT_ONLY=
 
@@ -12,27 +12,24 @@ COMMENT=	Selenium Standalone Server, allows browser testing
 LICENSE=	APACHE20
 
 USES=		cpe
-
 CPE_VENDOR=	jenkins
 
-NO_ARCH=	yes
-
 USE_JAVA=	yes
 JAVA_VERSION=	1.8+
 JAVA_RUN=	yes
 
-NO_BUILD=	yes
-
 USE_RC_SUBR=	selenium
 
+NO_ARCH=	yes
+NO_BUILD=	yes
+SUB_LIST+=	JAVA_HOME=${JAVA_HOME} \
+		SELENIUM_VERSION=${PORTVERSION}
+
 SELENIUM_HOME=	${PREFIX}/selenium
 
 USERS=		selenium
 GROUPS=		selenium
 
-SUB_LIST+=	JAVA_HOME=${JAVA_HOME} \
-		SELENIUM_VERSION=${PORTVERSION}
-
 PLIST_FILES=	\@dir\(${USERS},${GROUPS},\)\ selenium \
 		${DATADIR}/${DISTNAME}${EXTRACT_SUFX}
 
diff --git a/www/selenium/distinfo b/www/selenium/distinfo
index c6b37e7406e7..8a25216d4921 100644
--- a/www/selenium/distinfo
+++ b/www/selenium/distinfo
@@ -1,3 +1,3 @@
 TIMESTAMP = 1563315821
-SHA256 (selenium-server-standalone-3.141.59.jar) = acf71b77d1b66b55db6fb0bed6d8bae2bbd481311bcbedfeff472c0d15e8f3cb
-SIZE (selenium-server-standalone-3.141.59.jar) = 10649948
+SHA256 (selenium-server-4.1.3.jar) = 4bd34eeb04a33edbd5a18d22d71a4d22993e974971911f57c0d3c0e8ffea99ab 
+SIZE (selenium-server-4.1.3.jar) = 24229982 
diff --git a/www/selenium/files/selenium.in b/www/selenium/files/selenium.in
index 6b55a17a6493..448b4381327b 100644
--- a/www/selenium/files/selenium.in
+++ b/www/selenium/files/selenium.in
@@ -12,12 +12,12 @@ rcvar=selenium_enable
 load_rc_config "${name}"
 
 : ${selenium_enable="NO"}
-: ${selenium_args=""}
+: ${selenium_args="standalone"}
 : ${selenium_java_home="%%JAVA_HOME%%"}
 : ${selenium_java_opts=""}
 : ${selenium_user="selenium"}
 : ${selenium_group="selenium"}
-: ${selenium_jar="%%DATADIR%%/selenium-server-standalone-%%SELENIUM_VERSION%%.jar"}
+: ${selenium_jar="%%DATADIR%%/selenium-server-%%SELENIUM_VERSION%%.jar"}
 : ${selenium_log_file="/var/log/selenium.log"}
 
 pidfile="/var/run/selenium/selenium.pid"