aboutsummaryrefslogtreecommitdiff
path: root/devel/zanata-platform/Makefile
blob: 300542db58551a52e2256d5f870ec5b9481c42f0 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PORTNAME=	zanata-platform
PORTVERSION=	4.6.2
PORTREVISION=	1
CATEGORIES=	devel java
MASTER_SITES=	https://github.com/zanata/zanata-platform/releases/download/platform-${PORTVERSION}/ \
		https://repo1.maven.org/maven2/mysql/mysql-connector-java/${MYSQL_CONNECTOR_JAVA_VERSION}/:database
DISTFILES=	zanata-war-${PORTVERSION}.war \
		mysql-connector-java-${MYSQL_CONNECTOR_JAVA_VERSION}.jar:database
EXTRACT_ONLY=

MAINTAINER=	dbaio@FreeBSD.org
COMMENT=	Web-based translation platform
WWW=		http://zanata.org/

LICENSE=	GPLv2 LGPL21+
LICENSE_COMB=	multi

NO_ARCH=	yes
NO_BUILD=	yes

# It's needed this specific version, databases/mysql-connector-java51 is
# currently with 5.1.47 version.
MYSQL_CONNECTOR_JAVA_VERSION=	5.1.26

PLIST_SUB=	APP_HOME=${APP_HOME}

OPTIONS_DEFINE=		CLAMAV

OPTIONS_SINGLE=		WF
OPTIONS_SINGLE_WF=	WILDFLY10 WILDFLY11 WILDFLY12 WILDFLY13 WILDFLY14 \
		WILDFLY15 WILDFLY16 WILDFLY90
OPTIONS_DEFAULT=	WILDFLY10

CLAMAV_DESC=		Clam AntiVirus
CLAMAV_RUN_DEPENDS=	clamav>=0:security/clamav

WILDFLY10_DESC=		WildFly version 10.0
WILDFLY10_VARS=		APP_HOME=${PREFIX}/wildfly10
WILDFLY10_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly10

WILDFLY11_DESC=		WildFly version 11.0
WILDFLY11_VARS=		APP_HOME=${PREFIX}/wildfly11
WILDFLY11_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly11

WILDFLY12_DESC=		WildFly version 12.0
WILDFLY12_VARS=		APP_HOME=${PREFIX}/wildfly12
WILDFLY12_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly12

WILDFLY13_DESC=		WildFly version 13.0
WILDFLY13_VARS=		APP_HOME=${PREFIX}/wildfly13
WILDFLY13_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly13

WILDFLY14_DESC=		WildFly version 14.0
WILDFLY14_VARS=		APP_HOME=${PREFIX}/wildfly14
WILDFLY14_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly14

WILDFLY15_DESC=		WildFly version 15.0
WILDFLY15_VARS=		APP_HOME=${PREFIX}/wildfly15
WILDFLY15_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly15

WILDFLY16_DESC=		WildFly version 16.0
WILDFLY16_VARS=		APP_HOME=${PREFIX}/wildfly16
WILDFLY16_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly16

WILDFLY90_DESC=		WildFly version 9.0
WILDFLY90_VARS=		APP_HOME=${PREFIX}/wildfly90
WILDFLY90_RUN_DEPENDS=	${APP_HOME}/bin/standalone.sh:java/wildfly90

do-install:
	@${MKDIR} ${STAGEDIR}/var/lib/zanata
	@${MKDIR} ${STAGEDIR}${APP_HOME}/standalone/deployments \
		${STAGEDIR}${APP_HOME}/standalone/configuration
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/zanata-war-${PORTVERSION}.war \
		${STAGEDIR}/${APP_HOME}/standalone/deployments/ROOT.war
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/mysql-connector-java-${MYSQL_CONNECTOR_JAVA_VERSION}.jar \
		${STAGEDIR}/${APP_HOME}/standalone/deployments/mysql-connector-java.jar
	${INSTALL_DATA} ${FILESDIR}/standalone-zanata.xml.sample \
		${STAGEDIR}/${APP_HOME}/standalone/configuration

.include <bsd.port.mk>