Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2017 18:53:52 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447957 - in head/www/selenium: . files
Message-ID:  <201708141853.v7EIrqjS009004@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Mon Aug 14 18:53:51 2017
New Revision: 447957
URL: https://svnweb.freebsd.org/changeset/ports/447957

Log:
  www/selenium: update 0.6.1 -> 3.4.0
  
  PR:		219031
  Relnotes:	https://github.com/SeleniumHQ/selenium/releases
  Submitted by:	Daniel Ylitalo <daniel@blodan.se>
  Approved by:	kaworu@users.sourceforge.jp (maintainer timeout)

Added:
  head/www/selenium/files/selenium.in   (contents, props changed)
Deleted:
  head/www/selenium/pkg-plist
Modified:
  head/www/selenium/Makefile
  head/www/selenium/distinfo
  head/www/selenium/files/pkg-message.in
  head/www/selenium/pkg-descr

Modified: head/www/selenium/Makefile
==============================================================================
--- head/www/selenium/Makefile	Mon Aug 14 18:50:15 2017	(r447956)
+++ head/www/selenium/Makefile	Mon Aug 14 18:53:51 2017	(r447957)
@@ -1,21 +1,42 @@
-# Created by: kaworu
 # $FreeBSD$
 
 PORTNAME=	selenium
-PORTVERSION=	0.6.1
-CATEGORIES=	www
-MASTER_SITES=	SFJP/${PORTNAME}/17210
+PORTVERSION=	3.4.0
+CATEGORIES=	www devel java
+MASTER_SITES=	http://selenium-release.storage.googleapis.com/3.4/
+DISTNAME=	selenium-server-standalone-${PORTVERSION}
+EXTRACT_SUFX=	.jar
+EXTRACT_ONLY=
 
 MAINTAINER=	kaworu@users.sourceforge.jp
-COMMENT=	Selenium is web application test tool!
+COMMENT=	Selenium Standalone Server, allows browser testing
 
-HAS_CONFIGURE=	yes
-MAKE_ARGS=	PREFIX=${STAGEDIR}${PREFIX}
+LICENSE=	APACHE20
+
 NO_ARCH=	yes
 
-SUB_FILES=	pkg-message
+USE_JAVA=	yes
+JAVA_VERSION=	1.8+
+JAVA_RUN=	yes
 
-post-patch:
-	@${REINPLACE_CMD} 's,-o root -g wheel,,' ${WRKSRC}/configure
+NO_BUILD=	yes
+
+USE_RC_SUBR=	selenium
+
+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}
+
+do-install:
+	${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${SELENIUM_HOME}
+	${INSTALL_DATA} ${DISTDIR}${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
+		${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>

Modified: head/www/selenium/distinfo
==============================================================================
--- head/www/selenium/distinfo	Mon Aug 14 18:50:15 2017	(r447956)
+++ head/www/selenium/distinfo	Mon Aug 14 18:53:51 2017	(r447957)
@@ -1,2 +1,3 @@
-SHA256 (selenium-0.6.1.tar.gz) = 784e83cc093574227c89172772bc0130e9687791a7a6ebc01cc573a28c4965dc
-SIZE (selenium-0.6.1.tar.gz) = 1933742
+TIMESTAMP = 1493730833
+SHA256 (selenium-server-standalone-3.4.0.jar) = 21cbbd775678821b6b72c208b8d59664a4c7381b3c50b008b331914d2834ec8d
+SIZE (selenium-server-standalone-3.4.0.jar) = 21763199

Modified: head/www/selenium/files/pkg-message.in
==============================================================================
--- head/www/selenium/files/pkg-message.in	Mon Aug 14 18:50:15 2017	(r447956)
+++ head/www/selenium/files/pkg-message.in	Mon Aug 14 18:53:51 2017	(r447957)
@@ -16,3 +16,17 @@ Run selenium.
 Documentation.
 
 	http://localhost/selenium/doc/
+
+To automate browsers you need one or more of these ports:
+www/firefox
+www/chromium
+
+With one or more of these complementary ports:
+www/geckodriver
+x11-servers/xorg-vfbserver
+x11-fonts/xorg-fonts
+x11-fonts/webfonts
+x11/xauth
+x11/xkeyboard-config
+x11/xkbcomp
+

Added: head/www/selenium/files/selenium.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/selenium/files/selenium.in	Mon Aug 14 18:53:51 2017	(r447957)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: selenium
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="selenium"
+rcvar=selenium_enable
+
+load_rc_config "${name}"
+
+: ${selenium_enable="NO"}
+: ${selenium_args=""}
+: ${selenium_java_home="%%JAVA_HOME%%"}
+: ${selenium_java_opts=""}
+: ${selenium_user="selenium"}
+: ${selenium_group="selenium"}
+: ${selenium_jar="%%DATADIR%%/selenium-server-standalone-%%SELENIUM_VERSION%%.jar"}
+: ${selenium_log_file="/var/log/selenium.log"}
+
+pidfile="/var/run/selenium/selenium.pid"
+command="/usr/sbin/daemon"
+java_cmd="${selenium_java_home}/bin/java"
+procname="${java_cmd}"
+command_args="-p ${pidfile} ${java_cmd} ${selenium_java_opts} -jar ${selenium_jar} ${selenium_args} >> ${selenium_log_file} 2>&1"
+required_files="${java_cmd}"
+
+start_precmd="selenium_prestart"
+start_cmd="selenium_start"
+
+selenium_prestart() {
+        if [ ! -f "${selenium_log_file}" ]; then
+                touch "${selenium_log_file}"
+                chown "${selenium_user}:${selenium_group}" "${selenium_log_file}"
+                chmod 644 "${selenium_log_file}"
+        fi
+        if [ ! -d "/var/run/selenium" ]; then
+                install -d -o "${selenium_user}" -g "${selenium_group}" -m 750 "/var/run/selenium"
+        fi
+}
+
+selenium_start()
+{
+        check_startmsgs && echo "Starting ${name}."
+        su -l ${selenium_user} -c "exec ${command} ${command_args}"
+}
+
+run_rc_command "$1"
+

Modified: head/www/selenium/pkg-descr
==============================================================================
--- head/www/selenium/pkg-descr	Mon Aug 14 18:50:15 2017	(r447956)
+++ head/www/selenium/pkg-descr	Mon Aug 14 18:53:51 2017	(r447957)
@@ -1,6 +1,9 @@
-Selenium is a test tool for web applications. Selenium tests run
-directly in a browsers, just as real users do. And they run in Internet
-Explorer, Mozilla and Firefox on Windows, Linux and Macintosh. No other
-test tool covers such a wide array of platforms.
+Selenium Standalone Server allows browser testing. It automates browsers.
 
-WWW: http://selenium.thoughtworks.com/
+Selenium tests run directly in a browsers, just as real users do.
+
+What you do with that power is entirely up to you.
+Primarily, it is for automating web applications for testing purposes,
+but is certainly not limited to just that.
+
+WWW: http://www.seleniumhq.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708141853.v7EIrqjS009004>