aboutsummaryrefslogtreecommitdiffstats
path: root/java/wildfly81/Makefile
blob: 3bc8162c1188bbf3783be0b0a2be0145bb0faaa7 (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
# Created by: Alexander Yerenkow <yerenkow@gmail.com>
# $FreeBSD$

PORTNAME=   wildfly81
PORTVERSION=    8.1.0
PORTREVISION=   2
CATEGORIES= java www
MASTER_SITES=   http://download.jboss.org/wildfly/${WILDFLY_VERSION}/
DISTNAME=   wildfly-${WILDFLY_VERSION}

MAINTAINER= yerenkow@gmail.com
COMMENT=    Replacement for JBoss Application Server

LICENSE=    GPLv2

USE_RC_SUBR=    wildfly81
USE_JAVA=   yes
JAVA_VERSION=   1.7+
USER=       www
GROUP=      www
VAR_DIR?=   /var
LOG_DIR?=   ${VAR_DIR}/log/${PORTNAME}
PID_FILE=   ${VAR_DIR}/run/${PORTNAME}.pid
WILDFLY_VERSION=8.1.0.Final
SUB_FILES=  pkg-message

SUB_LIST=   APP_SHORTNAME=${PORTNAME} \
        LOG_DIR=${LOG_DIR} \
        USER=${USER} \
        GROUP=${GROUP} \
        PID_FILE=${PID_FILE} \
        APP_HOME=${PREFIX}/wildfly-${PORTVERSION}
PLIST_SUB=  APP_HOME=wildfly-${PORTVERSION}

CONFIG_FILES=   appclient/configuration/appclient.xml \
        appclient/configuration/logging.properties \
        domain/configuration/application-roles.properties \
        domain/configuration/application-users.properties \
        domain/configuration/default-server-logging.properties \
        domain/configuration/domain.xml \
        domain/configuration/host-master.xml \
        domain/configuration/host-slave.xml \
        domain/configuration/host.xml \
        domain/configuration/logging.properties \
        domain/configuration/mgmt-groups.properties \
        domain/configuration/mgmt-users.properties \
        standalone/configuration/application-roles.properties \
        standalone/configuration/application-users.properties \
        standalone/configuration/logging.properties \
        standalone/configuration/mgmt-groups.properties \
        standalone/configuration/mgmt-users.properties \
        standalone/configuration/standalone-full-ha.xml \
        standalone/configuration/standalone-full.xml \
        standalone/configuration/standalone-ha.xml \
        standalone/configuration/standalone.xml

post-patch:
    ${RM} ${WRKSRC}/bin/add-user.sh.orig

do-build:
    ${RM} ${WRKSRC}/bin/*.bat
    ${RM} -rf ${WRKSRC}/bin/service
    ${RM} -rf ${WRKSRC}/bin/init.d

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}
    (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION})
    ${CHMOD} +x ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/bin/*.sh
    ${RMDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/.installation
.for FILE in ${CONFIG_FILES}
    ${MV} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/${FILE} \
        ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/${FILE}.sample
.endfor

.include <bsd.port.mk>