Line 0
Link Here
|
|
|
1 |
# Created by: Ultima <ultima1252@gmail.com> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= guacamole-client |
5 |
PORTVERSION= 0.9.8 |
6 |
CATEGORIES= www java |
7 |
MASTER_SITES+= https://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo \ |
8 |
http://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo |
9 |
DISTNAME= ${PORTVERSION} |
10 |
DISTFILES= ${PORTVERSION}_GH${EXTRACT_SUFX} \ |
11 |
repository-${PORTVERSION}${EXTRACT_SUFX}:repo |
12 |
DIST_SUBDIR= ${PORTNAME} |
13 |
|
14 |
MAINTAINER= ultima1252@gmail.com |
15 |
COMMENT= HTML5 Clientless Remote Desktop |
16 |
|
17 |
LICENSE= MIT |
18 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
19 |
|
20 |
BUILD_DEPENDS= ${LOCALBASE}/share/java/maven31/bin/mvn:${PORTSDIR}/devel/maven31 |
21 |
|
22 |
USE_GITHUB= yes |
23 |
GH_ACCOUNT= glyptodon |
24 |
GH_TAGNAME= ${PORTVERSION} |
25 |
|
26 |
MVN= mvn |
27 |
MVN_ARGS= package -Duser.home=${WRKDIR} |
28 |
USE_JAVA= yes |
29 |
JAVA_VERSION= 1.6+ |
30 |
|
31 |
OPTIONS_DEFINE= MK_LINK SERVER TOMCAT |
32 |
OPTIONS_DEFAULT= MK_LINK SERVER TOMCAT |
33 |
OPTIONS_SUB= yes |
34 |
MK_LINK_DESC= Make sybolic links |
35 |
TOMCAT_RUN_DEPENDS= ${LOCALBASE}/apache-tomcat-8.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat8 |
36 |
TOMCAT_DESC= Use Tomcat as your servlet |
37 |
|
38 |
SERVER_RUN_DEPENDS= guacd:${PORTSDIR}/net/guacamole-server |
39 |
SERVER_DESC= Include Guacamole Server |
40 |
|
41 |
SUB_FILES= pkg-message |
42 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
43 |
FILESDIR= ${PORTSDIR}/www/${PORTNAME}/files |
44 |
GUACAMOLE_CONF= ${PREFIX}/etc/guacamole |
45 |
GUACAMOLE_DATA= ${PREFIX}/share/${PORTNAME} |
46 |
|
47 |
.include <bsd.port.pre.mk> |
48 |
|
49 |
do-build: |
50 |
cd ${WRKSRC} && ${MVN} ${MVN_ARGS} |
51 |
|
52 |
do-install: |
53 |
@${MKDIR} ${STAGEDIR}${GUACAMOLE_DATA} |
54 |
@${MKDIR} ${STAGEDIR}${GUACAMOLE_CONF} |
55 |
|
56 |
@${CP} ${WRKSRC}/guacamole/target/guacamole-${PORTVERSION}.war \ |
57 |
${STAGEDIR}${GUACAMOLE_DATA}/guacamole.war |
58 |
@${CP} ${WRKSRC}/extensions/guacamole-auth-jdbc/target/guacamole-auth-jdbc-${PORTVERSION}.tar.gz \ |
59 |
${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-jdbc.tar.gz |
60 |
@${CP} ${WRKSRC}/extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-${PORTVERSION}.tar.gz \ |
61 |
${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-ldap.tar.gz |
62 |
@${CP} ${WRKSRC}/extensions/guacamole-auth-noauth/target/guacamole-auth-noauth-${PORTVERSION}.tar.gz \ |
63 |
${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-noauth.tar.gz |
64 |
|
65 |
.if ${PORT_OPTIONS:MMK_LINK} |
66 |
@${MKDIR} ${STAGEDIR}/root |
67 |
@${MKDIR} ${STAGEDIR}${PREFIX}/apache-tomcat-8.0/webapps |
68 |
@${LN} -s ${GUACAMOLE_CONF} ${STAGEDIR}/root/.guacamole |
69 |
@${LN} -s ${GUACAMOLE_DATA}/guacamole.war \ |
70 |
${STAGEDIR}${PREFIX}/apache-tomcat-8.0/webapps/ |
71 |
.endif |
72 |
@${CP} ${FILESDIR}/user-mapping.xml.sample ${STAGEDIR}${GUACAMOLE_CONF}/ |
73 |
@${CP} ${FILESDIR}/logback.xml.sample ${STAGEDIR}${GUACAMOLE_CONF}/ |
74 |
@${CP} ${FILESDIR}/guacamole.properties.sample ${STAGEDIR}${GUACAMOLE_CONF}/ |
75 |
|
76 |
.include <bsd.port.post.mk> |