Index: head/www/selenium/pkg-plist =================================================================== --- head/www/selenium/pkg-plist (revision 447956) +++ head/www/selenium/pkg-plist (nonexistent) @@ -1,241 +0,0 @@ -man/man1/selenium.1.gz -www/selenium/devtests/meta/page.html -www/selenium/devtests/TestClickInFrame.html -www/selenium/devtests/TestOpenInFrame.html -www/selenium/devtests/TestOpenInNewWindow.html -www/selenium/devtests/TestOpenMeta.html -www/selenium/devtests/TestSuite.html -www/selenium/dom-images/butmin.gif -www/selenium/dom-images/butplus.gif -www/selenium/dom-styles/default.css -www/selenium/html-xpath/carnation.jpg -www/selenium/html-xpath/example.html -www/selenium/html-xpath/html-xpath-patched.js -www/selenium/html-xpath/html-xpath.js -www/selenium/html-xpath/license.txt -www/selenium/html-xpath/rainbow.jpg -www/selenium/jsmock/mock-tests.html -www/selenium/jsmock/mock.js -www/selenium/jsunit/app/css/jsUnitStyle.css -www/selenium/jsunit/app/css/readme -www/selenium/jsunit/app/emptyPage.html -www/selenium/jsunit/app/jsUnitCore.js -www/selenium/jsunit/app/jsUnitTestManager.js -www/selenium/jsunit/app/jsUnitTestSuite.js -www/selenium/jsunit/app/jsUnitTracer.js -www/selenium/jsunit/app/main-counts-errors.html -www/selenium/jsunit/app/main-counts-failures.html -www/selenium/jsunit/app/main-counts-runs.html -www/selenium/jsunit/app/main-counts.html -www/selenium/jsunit/app/main-data.html -www/selenium/jsunit/app/main-errors.html -www/selenium/jsunit/app/main-frame.html -www/selenium/jsunit/app/main-loader.html -www/selenium/jsunit/app/main-progress.html -www/selenium/jsunit/app/main-results.html -www/selenium/jsunit/app/main-status.html -www/selenium/jsunit/app/testContainer.html -www/selenium/jsunit/app/testContainerController.html -www/selenium/jsunit/app/xbDebug.js -www/selenium/jsunit/css/jsUnitStyle.css -www/selenium/jsunit/images/green.gif -www/selenium/jsunit/images/logo_jsunit.gif -www/selenium/jsunit/images/red.gif -www/selenium/jsunit/intellij/JsUnit.iml -www/selenium/jsunit/intellij/JsUnit.ipr -www/selenium/jsunit/java/bin/jsunit.jar -www/selenium/jsunit/java/lib/javax.servlet.jar -www/selenium/jsunit/java/lib/jdom.jar -www/selenium/jsunit/java/lib/jetty.jar -www/selenium/jsunit/java/lib/junit.jar -www/selenium/jsunit/java/lib/xerces.jar -www/selenium/jsunit/licenses/JDOM_license.txt -www/selenium/jsunit/licenses/Jetty_license.html -www/selenium/jsunit/licenses/MPL-1.1.txt -www/selenium/jsunit/licenses/gpl-2.txt -www/selenium/jsunit/licenses/index.html -www/selenium/jsunit/licenses/lgpl-2.1.txt -www/selenium/jsunit/licenses/mpl-tri-license-c.txt -www/selenium/jsunit/licenses/mpl-tri-license-html.txt -www/selenium/jsunit/tests/data/data.html -www/selenium/jsunit/tests/data/staff.css -www/selenium/jsunit/tests/data/staff.dtd -www/selenium/jsunit/tests/data/staff.xml -www/selenium/jsunit/tests/index.html -www/selenium/jsunit/tests/jsUnitAssertionTests.html -www/selenium/jsunit/tests/jsUnitDeclAssertionTests.html -www/selenium/jsunit/tests/jsUnitDeclFrameworkUtilityTests.html -www/selenium/jsunit/tests/jsUnitDeclOnLoadTests.html -www/selenium/jsunit/tests/jsUnitDeclSetUpTearDownTests.html -www/selenium/jsunit/tests/jsUnitDeclTestFailures.html -www/selenium/jsunit/tests/jsUnitDeclTestLoadData.html -www/selenium/jsunit/tests/jsUnitDeclTestSetUpPages.html -www/selenium/jsunit/tests/jsUnitDeclTestSetUpPagesSuite.html -www/selenium/jsunit/tests/jsUnitDeclTestSuite.html -www/selenium/jsunit/tests/jsUnitDeclUtilityTests.html -www/selenium/jsunit/tests/jsUnitDeclarationTests.html -www/selenium/jsunit/tests/jsUnitFrameworkUtilityTests.html -www/selenium/jsunit/tests/jsUnitOnLoadTests.html -www/selenium/jsunit/tests/jsUnitSetUpTearDownTests.html -www/selenium/jsunit/tests/jsUnitTestFailures.html -www/selenium/jsunit/tests/jsUnitTestLoadData.html -www/selenium/jsunit/tests/jsUnitTestLoadStaff.html -www/selenium/jsunit/tests/jsUnitTestSetUpPages.html -www/selenium/jsunit/tests/jsUnitTestSetUpPagesSuite.html -www/selenium/jsunit/tests/jsUnitTestSuite.html -www/selenium/jsunit/tests/jsUnitUtilityTests.html -www/selenium/jsunit/build.xml -www/selenium/jsunit/changelist.txt -www/selenium/jsunit/jsunit.properties.sample -www/selenium/jsunit/readme.txt -www/selenium/jsunit/testRunner.html -www/selenium/tests/browserbot/alert-handling-tests.html -www/selenium/tests/browserbot/assert-tests.html -www/selenium/tests/browserbot/browserbot-tests.html -www/selenium/tests/browserbot/command-factory-tests.html -www/selenium/tests/browserbot/command-handler-tests.html -www/selenium/tests/browserbot/confirm-handling-tests.html -www/selenium/tests/browserbot/error-checking-command-tests.html -www/selenium/tests/browserbot/event-bubble-tests.html -www/selenium/tests/browserbot/optionlocator-tests.html -www/selenium/tests/browserbot/pagebot-accessor-tests.html -www/selenium/tests/browserbot/pagebot-action-tests.html -www/selenium/tests/browserbot/pagebot-attribute-tests.html -www/selenium/tests/browserbot/pagebot-locator-tests-include.html -www/selenium/tests/browserbot/pagebot-locator-tests.html -www/selenium/tests/browserbot/pagebot-property-tests.html -www/selenium/tests/browserbot/pattern-matcher-tests.html -www/selenium/tests/browserbot/selenium-api-tests.html -www/selenium/tests/browserbot/selenium-parameter-tests.html -www/selenium/tests/browserbot/suite.html -www/selenium/tests/browserbot/testloop-handle-error-tests.html -www/selenium/tests/events/TestButtonEvents.html -www/selenium/tests/events/TestCheckboxEvents.html -www/selenium/tests/events/TestFireEvents.html -www/selenium/tests/events/TestLinkEvents.html -www/selenium/tests/events/TestRadioEvents.html -www/selenium/tests/events/TestSelectEvents.html -www/selenium/tests/events/TestTextEvents.html -www/selenium/tests/events/readme.txt -www/selenium/tests/html/banner.gif -www/selenium/tests/html/test_async_event.html -www/selenium/tests/html/test_click_javascript_page.html -www/selenium/tests/html/test_click_page1.html -www/selenium/tests/html/test_click_page2.html -www/selenium/tests/html/test_confirm.html -www/selenium/tests/html/test_dummy_page.html -www/selenium/tests/html/test_editable.html -www/selenium/tests/html/test_focus_on_blur.html -www/selenium/tests/html/test_form_events.html -www/selenium/tests/html/test_framed_page.html -www/selenium/tests/html/test_just_text.html -www/selenium/tests/html/test_locators.html -www/selenium/tests/html/test_modal_dialog.html -www/selenium/tests/html/test_modal_dialog_dialog.html -www/selenium/tests/html/test_open.html -www/selenium/tests/html/test_prompt.html -www/selenium/tests/html/test_reload_onchange_page.html -www/selenium/tests/html/test_select.html -www/selenium/tests/html/test_select_window.html -www/selenium/tests/html/test_select_window_popup.html -www/selenium/tests/html/test_slowloading_page.html -www/selenium/tests/html/test_store_value.html -www/selenium/tests/html/test_type_page1.html -www/selenium/tests/html/test_type_page2.html -www/selenium/tests/html/test_verifications.html -www/selenium/tests/html/test_verify_alert.html -www/selenium/tests/html/test_visibility.html -www/selenium/tests/tableparser/tableparser-tests.html -www/selenium/tests/ErrorCheckingTestSuite.html -www/selenium/tests/GoogleTestSearch.html -www/selenium/tests/GoogleTestSuite.html -www/selenium/tests/JsUnitSuite.html -www/selenium/tests/TestClick.html -www/selenium/tests/TestClickJavascriptHref.html -www/selenium/tests/TestCommandError.html -www/selenium/tests/TestConfirmations.html -www/selenium/tests/TestErrorChecking.html -www/selenium/tests/TestFailingAssert.html -www/selenium/tests/TestFailingVerifications.html -www/selenium/tests/TestFocusOnBlur.html -www/selenium/tests/TestGoBack.html -www/selenium/tests/TestImplicitLocators.html -www/selenium/tests/TestJavascriptParameters.html -www/selenium/tests/TestLocators.html -www/selenium/tests/TestModalDialog.html -www/selenium/tests/TestModalDialogDialog.html -www/selenium/tests/TestOpen.html -www/selenium/tests/TestPatternMatching.html -www/selenium/tests/TestPause.html -www/selenium/tests/TestPrompting.html -www/selenium/tests/TestProxy.html -www/selenium/tests/TestSelect.html -www/selenium/tests/TestSelectWindow.html -www/selenium/tests/TestStore.html -www/selenium/tests/TestSuite-InternetExplorer.html -www/selenium/tests/TestSuite-Konqueror.html -www/selenium/tests/TestSuite-Safari.html -www/selenium/tests/TestSuite.html -www/selenium/tests/TestType.html -www/selenium/tests/TestUserExtensions.html -www/selenium/tests/TestVerifications.html -www/selenium/tests/TestVerifyAlerts.html -www/selenium/tests/TestVerifyAlertsFailures.html -www/selenium/tests/TestVerifyConfirmationFailures.html -www/selenium/tests/TestVerifyEditable.html -www/selenium/tests/TestVerifyEditableFailures.html -www/selenium/tests/TestVisibility.html -www/selenium/tests/TestVisibilityFailures.html -www/selenium/tests/TestWait.html -www/selenium/tests/TestWaitFor.html -www/selenium/tests/TestWaitInPopupWindow.html -www/selenium/tests/TestXPathLocators.html -www/selenium/tests/readme.txt -www/selenium/tests/tinyWebServer.py -www/selenium/SeleneseRunner.html -www/selenium/SeleniumLog.html -www/selenium/TestRunner-splash.html -www/selenium/TestRunner.hta -www/selenium/TestRunner.html -www/selenium/domviewer.html -www/selenium/htmlutils.js -www/selenium/index.html -www/selenium/selenium-api.js -www/selenium/selenium-browserbot.js -www/selenium/selenium-commandhandlers.js -www/selenium/selenium-domviewer.js -www/selenium/selenium-fitrunner.js -www/selenium/selenium-executionloop.js -www/selenium/selenium-logging.js -www/selenium/selenium-logo.png -www/selenium/selenium-tableparser.js -www/selenium/selenium.css -www/selenium/user-extensions.js.sample -www/selenium/version.txt -www/selenium/xmlextras.js -www/selenium/xpath.js -www/selenium/TestRunner2.hta -www/selenium/TestRunner2.html -www/selenium/doc/images/Adjacent.png -www/selenium/doc/images/Embedded.png -www/selenium/doc/images/SmallAdjacent.png -www/selenium/doc/images/SmallEmbedded.png -www/selenium/doc/images/SmallStandalone.png -www/selenium/doc/images/Standalone.png -www/selenium/doc/images/localhostAut.png -www/selenium/doc/images/localhostDriver.png -www/selenium/doc/images/localhostSelenium.png -www/selenium/doc/images/stockmeister.png -www/selenium/doc/images/tested-with-selenium.png -www/selenium/doc/FAQ.html -www/selenium/doc/contact.html -www/selenium/doc/developingdrivers.html -www/selenium/doc/driven.html -www/selenium/doc/home-page.html -www/selenium/doc/index.html -www/selenium/doc/jsrmi.html -www/selenium/doc/release-notes.html -www/selenium/doc/seleniumReference.html -www/selenium/doc/testrunner.html -www/selenium/doc/usage.html -@dir www/selenium/jsunit/java/src Property changes on: head/www/selenium/pkg-plist ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/selenium/Makefile =================================================================== --- head/www/selenium/Makefile (revision 447956) +++ head/www/selenium/Makefile (revision 447957) @@ -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 Index: head/www/selenium/distinfo =================================================================== --- head/www/selenium/distinfo (revision 447956) +++ head/www/selenium/distinfo (revision 447957) @@ -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 Index: head/www/selenium/files/pkg-message.in =================================================================== --- head/www/selenium/files/pkg-message.in (revision 447956) +++ head/www/selenium/files/pkg-message.in (revision 447957) @@ -1,18 +1,32 @@ selenium ======== Edit your apache configuration file. % vi %%LOCALBASE%%/etc/apache*/httpd.conf Add the following line. Alias /selenium/ "%%PREFIX%%/www/selenium" Run selenium. http://localhost/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 + Index: head/www/selenium/files/selenium.in =================================================================== --- head/www/selenium/files/selenium.in (nonexistent) +++ head/www/selenium/files/selenium.in (revision 447957) @@ -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" + Property changes on: head/www/selenium/files/selenium.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/selenium/pkg-descr =================================================================== --- head/www/selenium/pkg-descr (revision 447956) +++ head/www/selenium/pkg-descr (revision 447957) @@ -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