a6ffae73ce
Changelog: https://github.com/glyptodon/guacamole-client/commits/0.9.10-incubating * Updated to 0.9.10 * Updated license to APACHE20 PR: 216351 Submitted by: ultima1252@gmail.com (maintainer) Reviewed by: matthew Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D9283
72 lines
2.5 KiB
Makefile
72 lines
2.5 KiB
Makefile
# Created by: Ultima <ultima1252@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= guacamole-client
|
|
PORTVERSION= 0.9.10
|
|
DISTVERSIONSUFFIX= -incubating
|
|
CATEGORIES= www java
|
|
MASTER_SITES+= https://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo \
|
|
http://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo
|
|
DISTFILES= repository-${PORTVERSION}${EXTRACT_SUFX}:repo
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ultima1252@gmail.com
|
|
COMMENT= HTML5 Clientless Remote Desktop
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/java/maven33/bin/mvn:devel/maven33
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= apache
|
|
GH_PROJECT= incubator-guacamole-client
|
|
|
|
MVN= mvn
|
|
MVN_ARGS= package -Duser.home=${WRKDIR}
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.8+
|
|
|
|
OPTIONS_DEFINE= MK_LINK SERVER TOMCAT
|
|
OPTIONS_DEFAULT= MK_LINK SERVER TOMCAT
|
|
OPTIONS_SUB= yes
|
|
MK_LINK_DESC= Make sybolic links
|
|
TOMCAT_RUN_DEPENDS= ${LOCALBASE}/apache-tomcat-8.0/bin/bootstrap.jar:www/tomcat8
|
|
TOMCAT_DESC= Use Tomcat as your servlet
|
|
|
|
SERVER_RUN_DEPENDS= guacd:net/guacamole-server
|
|
SERVER_DESC= Include Guacamole Server
|
|
|
|
GUACAMOLE_CONF= ${PREFIX}/etc/guacamole
|
|
GUACAMOLE_DATA= ${PREFIX}/share/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${MVN} ${MVN_ARGS}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${GUACAMOLE_DATA}
|
|
@${MKDIR} ${STAGEDIR}${GUACAMOLE_CONF}
|
|
|
|
@${CP} ${WRKSRC}/guacamole/target/guacamole-${DISTVERSIONFULL}.war \
|
|
${STAGEDIR}${GUACAMOLE_DATA}/guacamole.war
|
|
@${CP} ${WRKSRC}/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/target/guacamole-auth-jdbc-${DISTVERSIONFULL}.tar.gz \
|
|
${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-jdbc.tar.gz
|
|
@${CP} ${WRKSRC}/extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-${DISTVERSIONFULL}.tar.gz \
|
|
${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-ldap.tar.gz
|
|
@${CP} ${WRKSRC}/extensions/guacamole-auth-noauth/target/guacamole-auth-noauth-${DISTVERSIONFULL}.tar.gz \
|
|
${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-noauth.tar.gz
|
|
|
|
.if ${PORT_OPTIONS:MMK_LINK}
|
|
@${MKDIR} ${STAGEDIR}/root
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/apache-tomcat-8.0/webapps
|
|
@${LN} -s ${GUACAMOLE_CONF} ${STAGEDIR}/root/.guacamole
|
|
@${LN} -s ${GUACAMOLE_DATA}/guacamole.war \
|
|
${STAGEDIR}${PREFIX}/apache-tomcat-8.0/webapps/
|
|
.endif
|
|
@${CP} ${FILESDIR}/user-mapping.xml.sample ${STAGEDIR}${GUACAMOLE_CONF}/
|
|
@${CP} ${FILESDIR}/logback.xml.sample ${STAGEDIR}${GUACAMOLE_CONF}/
|
|
@${CP} ${FILESDIR}/guacamole.properties.sample ${STAGEDIR}${GUACAMOLE_CONF}/
|
|
|
|
.include <bsd.port.post.mk>
|