From owner-svn-ports-head@freebsd.org Mon Aug 14 18:53:53 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB51BDDD8C9; Mon, 14 Aug 2017 18:53:53 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94BF269EE5; Mon, 14 Aug 2017 18:53:53 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7EIrq8X009009; Mon, 14 Aug 2017 18:53:52 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7EIrqjS009004; Mon, 14 Aug 2017 18:53:52 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201708141853.v7EIrqjS009004@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Mon, 14 Aug 2017 18:53:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447957 - in head/www/selenium: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/www/selenium: . files X-SVN-Commit-Revision: 447957 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 18:53:53 -0000 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 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 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