aboutsummaryrefslogtreecommitdiffstats
path: root/www/selenium/Makefile
blob: 33076667ab016219f200accac59c51e2d190a518 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $FreeBSD$

PORTNAME=   selenium
PORTVERSION=    3.5.3
CATEGORIES= www devel java
MASTER_SITES=   http://selenium-release.storage.googleapis.com/3.5/
DISTNAME=   selenium-server-standalone-${PORTVERSION}
EXTRACT_SUFX=   .jar
EXTRACT_ONLY=

MAINTAINER= daniel@blodan.se
COMMENT=    Selenium Standalone Server, allows browser testing

LICENSE=    APACHE20

NO_ARCH=    yes

USE_JAVA=   yes
JAVA_VERSION=   1.8+
JAVA_RUN=   yes

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>