View | Details | Raw Unified | Return to bug 202755 | Differences between
and this patch

Collapse All | Expand All

(-)www/Makefile (+1 lines)
Lines 255-260 Link Here
255
    SUBDIR += gstreamer1-plugins-neon
255
    SUBDIR += gstreamer1-plugins-neon
256
    SUBDIR += gtkhtml3
256
    SUBDIR += gtkhtml3
257
    SUBDIR += gtkhtml4
257
    SUBDIR += gtkhtml4
258
    SUBDIR += guacamole-client
258
    SUBDIR += guile-www
259
    SUBDIR += guile-www
259
    SUBDIR += gurlchecker
260
    SUBDIR += gurlchecker
260
    SUBDIR += h2o
261
    SUBDIR += h2o
(-)www/guacamole-client/Makefile (+76 lines)
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>
(-)www/guacamole-client/distinfo (+4 lines)
Line 0 Link Here
1
SHA256 (guacamole-client/0.9.8_GH.tar.gz) = 274332b1189c0af5dd49e984bf6b506f804639259607424a8eabca60481dddfc
2
SIZE (guacamole-client/0.9.8_GH.tar.gz) = 1658572
3
SHA256 (guacamole-client/repository-0.9.8.tar.gz) = 65431cbce835099c0360a8a113f1bff05513550aaac0b8609951fabba189b812
4
SIZE (guacamole-client/repository-0.9.8.tar.gz) = 39589755
(-)www/guacamole-client/files/guacamole.properties.sample (+10 lines)
Line 0 Link Here
1
###
2
### guacamole.properties.sample
3
###
4
5
6
### The Host the Guacamole proxy daemon (guacd) is listening on.
7
#
8
guacd-host:	localhost
9
guacd-port: 	4822
10
#guacd-ssl: 	true     ### default is false
(-)www/guacamole-client/files/logback.xml.sample (+20 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- Guacamole logs all messages to console by default. Servlet containers
3
  like Tomcat will automattically redirect these messages to a log file,
4
  catalina.out in the case of Tomcat. Valid levels= error, warn, info,  
5
   debug -->
6
<configuration>
7
8
    <!-- Appender for debugging -->
9
    <appender name="GUAC-DEBUG" class="ch.qos.logback.core.ConsoleAppender">
10
        <encoder>
11
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
12
        </encoder>
13
    </appender>
14
15
    <!-- Log at DEBUG level -->
16
    <root level="debug">
17
        <appender-ref ref="GUAC-DEBUG"/>
18
    </root>
19
20
</configuration>
(-)www/guacamole-client/files/pkg-message.in (+8 lines)
Line 0 Link Here
1
###	Guacamole-client requires authentecation to start.
2
###	cp %%PREFIX%%/etc/guacamole/user-mapping.xml.sample \
3
###	%%PREFIX%%/etc/guacamole/user-mapping.xml
4
###
5
###	Once tomcat8 and guacd are running
6
###	http://localhost:8080/guacamole Only ssh is installed
7
###	by default. To add more protocols, rebuild guacamole-
8
###	server.
(-)www/guacamole-client/files/user-mapping.xml.sample (+39 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- Guacamole's default authentication module is a simple xml file.
3
  Each user is specified with a corresponding <authorized> tag. This
4
  tag contains all authorized connections for that user each denoted
5
  with a <connections> tag. Each <connection> tag contains a
6
  protocol and set of protocol-specific parameters, specified with
7
  the <protocol> and <param> tags respectively. For more information
8
  visit http://guac-dev.org/doc/gug/configuring-guacamole.html -->
9
10
11
<user-mapping>
12
	
13
    <!-- Per-user authentication and config information -->
14
    <authorize username="guacamole" password="guacamole">
15
<!--	<connection name="vnc">
16
		<protocol>vnc</protocol>
17
		<param name="hostname">localhost</param>
18
		<param name="port">5901</param>
19
	</connection>
20
	<connection name="rdp">
21
		<protocol>rdp</protocol>
22
		<param name="hostname">localhost</param>
23
		<param name="port">3389</param>
24
	</connection> -->
25
	<connection name="ssh">
26
        	<protocol>ssh</protocol>
27
        	<param name="hostname">localhost</param>
28
        	<param name="port">22</param>
29
		<param name="font-name">monospace</param>
30
	</connection>
31
	<connection name="delete me">
32
	<protocol>ssh</protocol>
33
	<param name="hostname">none</param>
34
	<param name="port">22</param>
35
	<param name="font-name">monospace</param>
36
	</connection>
37
    </authorize>
38
39
</user-mapping>
(-)www/guacamole-client/pkg-descr (+9 lines)
Line 0 Link Here
1
guacamole-client is the superproject containing all Maven-based projects that
2
make Guacamole, an HTML5 web application that provides access to your desktop
3
using remote desktop protocols.
4
5
guacamole-client is used to build the subprojects that make up Guacamole, and
6
to provide a common central repository. Each project contained here is
7
completely independent of guacamole-client and can be built separately, though
8
the others may have to be built first. If all projects are built using
9
guacamole-client, Maven will take care of the proper build order.
(-)www/guacamole-client/pkg-plist (+9 lines)
Line 0 Link Here
1
%%MK_LINK%%/root/.guacamole
2
%%TOMCAT%%apache-tomcat-8.0/webapps/guacamole.war
3
etc/guacamole/guacamole.properties.sample
4
etc/guacamole/logback.xml.sample
5
etc/guacamole/user-mapping.xml.sample
6
%%DATADIR%%/guacamole-auth-jdbc.tar.gz
7
%%DATADIR%%/guacamole-auth-ldap.tar.gz
8
%%DATADIR%%/guacamole-auth-noauth.tar.gz
9
%%DATADIR%%/guacamole.war

Return to bug 202755