Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2016 20:59:29 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408311 - in head/www: . guacamole-client guacamole-client/files
Message-ID:  <201602062059.u16KxTQW077683@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sat Feb  6 20:59:29 2016
New Revision: 408311
URL: https://svnweb.freebsd.org/changeset/ports/408311

Log:
  New port: www/guacamole-client
  
  guacamole-client is the superproject containing all Maven-based
  projects that make Guacamole, an HTML5 web application that provides
  access to your desktop using remote desktop protocols.
  
  guacamole-client is used to build the subprojects that make up
  Guacamole, and to provide a common central repository. Each project
  contained here is completely independent of guacamole-client and
  can be built separately, though the others may have to be built
  first. If all projects are built using guacamole-client, Maven will
  take care of the proper build order.
  
  WWW: https://github.com/glyptodon/guacamole-client
  
  PR:		202755
  Submitted by:	ultima1252@gmail.com

Added:
  head/www/guacamole-client/
  head/www/guacamole-client/Makefile   (contents, props changed)
  head/www/guacamole-client/distinfo   (contents, props changed)
  head/www/guacamole-client/files/
  head/www/guacamole-client/files/guacamole.properties.sample   (contents, props changed)
  head/www/guacamole-client/files/logback.xml.sample   (contents, props changed)
  head/www/guacamole-client/files/pkg-message.in   (contents, props changed)
  head/www/guacamole-client/files/user-mapping.xml.sample   (contents, props changed)
  head/www/guacamole-client/pkg-descr   (contents, props changed)
  head/www/guacamole-client/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Sat Feb  6 18:51:01 2016	(r408310)
+++ head/www/Makefile	Sat Feb  6 20:59:29 2016	(r408311)
@@ -246,6 +246,7 @@
     SUBDIR += gstreamer1-plugins-neon
     SUBDIR += gtkhtml3
     SUBDIR += gtkhtml4
+    SUBDIR += guacamole-client
     SUBDIR += guile-www
     SUBDIR += gurlchecker
     SUBDIR += h2o

Added: head/www/guacamole-client/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/Makefile	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,73 @@
+# Created by: Ultima <ultima1252@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	guacamole-client
+PORTVERSION=	0.9.9
+CATEGORIES=	www java
+MASTER_SITES+=	https://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo \
+		http://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo
+DISTNAME=	${PORTVERSION}
+DISTFILES=	${PORTVERSION}_GH${EXTRACT_SUFX} \
+		repository-${PORTVERSION}${EXTRACT_SUFX}:repo
+DIST_SUBDIR=	${PORTNAME}
+
+MAINTAINER=	ultima1252@gmail.com
+COMMENT=	HTML5 Clientless Remote Desktop
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/share/java/maven33/bin/mvn:${PORTSDIR}/devel/maven33
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	glyptodon
+GH_TAGNAME=	${PORTVERSION}
+
+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:${PORTSDIR}/www/tomcat8
+TOMCAT_DESC=		Use Tomcat as your servlet
+
+SERVER_RUN_DEPENDS=	guacd:${PORTSDIR}/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-${PORTVERSION}.war \
+			${STAGEDIR}${GUACAMOLE_DATA}/guacamole.war
+		@${CP} ${WRKSRC}/extensions/guacamole-auth-jdbc/target/guacamole-auth-jdbc-${PORTVERSION}.tar.gz \
+			${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-jdbc.tar.gz
+		@${CP} ${WRKSRC}/extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-${PORTVERSION}.tar.gz \
+			 ${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-ldap.tar.gz
+		@${CP} ${WRKSRC}/extensions/guacamole-auth-noauth/target/guacamole-auth-noauth-${PORTVERSION}.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>

Added: head/www/guacamole-client/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/distinfo	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,4 @@
+SHA256 (guacamole-client/0.9.9_GH.tar.gz) = d6a1f824115c2dc87c9d611b4a6cbe2a489604a512227af5c79a832c2690783f
+SIZE (guacamole-client/0.9.9_GH.tar.gz) = 1698262
+SHA256 (guacamole-client/repository-0.9.9.tar.gz) = 79bc3064fac3add03842d96f21d3eb24677dffcea19f6a72cdeb200734ad71f6
+SIZE (guacamole-client/repository-0.9.9.tar.gz) = 42806341

Added: head/www/guacamole-client/files/guacamole.properties.sample
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/files/guacamole.properties.sample	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,10 @@
+###
+### guacamole.properties.sample
+###
+
+
+### The Host the Guacamole proxy daemon (guacd) is listening on.
+#
+guacd-host:	localhost
+guacd-port: 	4822
+#guacd-ssl: 	true     ### default is false

Added: head/www/guacamole-client/files/logback.xml.sample
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/files/logback.xml.sample	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Guacamole logs all messages to console by default. Servlet containers
+  like Tomcat will automattically redirect these messages to a log file,
+  catalina.out in the case of Tomcat. Valid levels= error, warn, info,  
+   debug -->
+<configuration>
+
+    <!-- Appender for debugging -->
+    <appender name="GUAC-DEBUG" class="ch.qos.logback.core.ConsoleAppender">
+        <encoder>
+            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <!-- Log at DEBUG level -->
+    <root level="debug">
+        <appender-ref ref="GUAC-DEBUG"/>
+    </root>
+
+</configuration>

Added: head/www/guacamole-client/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/files/pkg-message.in	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,8 @@
+###	Guacamole-client requires authentecation to start.
+###	cp %%PREFIX%%/etc/guacamole/user-mapping.xml.sample \
+###	%%PREFIX%%/etc/guacamole/user-mapping.xml
+###
+###	Once tomcat8 and guacd are running
+###	http://localhost:8080/guacamole Only ssh is installed
+###	by default. To add more protocols, rebuild guacamole-
+###	server.

Added: head/www/guacamole-client/files/user-mapping.xml.sample
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/files/user-mapping.xml.sample	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Guacamole's default authentication module is a simple xml file.
+  Each user is specified with a corresponding <authorized> tag. This
+  tag contains all authorized connections for that user each denoted
+  with a <connections> tag. Each <connection> tag contains a
+  protocol and set of protocol-specific parameters, specified with
+  the <protocol> and <param> tags respectively. For more information
+  visit http://guac-dev.org/doc/gug/configuring-guacamole.html -->
+
+
+<user-mapping>
+	
+    <!-- Per-user authentication and config information -->
+    <authorize username="guacamole" password="guacamole">
+<!--	<connection name="vnc">
+		<protocol>vnc</protocol>
+		<param name="hostname">localhost</param>
+		<param name="port">5901</param>
+	</connection>
+	<connection name="rdp">
+		<protocol>rdp</protocol>
+		<param name="hostname">localhost</param>
+		<param name="port">3389</param>
+	</connection> -->
+	<connection name="ssh">
+        	<protocol>ssh</protocol>
+        	<param name="hostname">localhost</param>
+        	<param name="port">22</param>
+		<param name="font-name">monospace</param>
+	</connection>
+	<connection name="delete me">
+	<protocol>ssh</protocol>
+	<param name="hostname">none</param>
+	<param name="port">22</param>
+	<param name="font-name">monospace</param>
+	</connection>
+    </authorize>
+
+</user-mapping>

Added: head/www/guacamole-client/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/pkg-descr	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,12 @@
+guacamole-client is the superproject containing all Maven-based
+projects that make Guacamole, an HTML5 web application that provides
+access to your desktop using remote desktop protocols.
+
+guacamole-client is used to build the subprojects that make up
+Guacamole, and to provide a common central repository. Each project
+contained here is completely independent of guacamole-client and
+can be built separately, though the others may have to be built
+first. If all projects are built using guacamole-client, Maven will
+take care of the proper build order.
+
+WWW: https://github.com/glyptodon/guacamole-client

Added: head/www/guacamole-client/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/guacamole-client/pkg-plist	Sat Feb  6 20:59:29 2016	(r408311)
@@ -0,0 +1,9 @@
+%%MK_LINK%%/root/.guacamole
+%%TOMCAT%%apache-tomcat-8.0/webapps/guacamole.war
+etc/guacamole/guacamole.properties.sample
+etc/guacamole/logback.xml.sample
+etc/guacamole/user-mapping.xml.sample
+%%DATADIR%%/guacamole-auth-jdbc.tar.gz
+%%DATADIR%%/guacamole-auth-ldap.tar.gz
+%%DATADIR%%/guacamole-auth-noauth.tar.gz
+%%DATADIR%%/guacamole.war



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602062059.u16KxTQW077683>