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

Collapse All | Expand All

(-)net/guacamole-server/Makefile (+67 lines)
Line 0 Link Here
1
# Created by: Ultima <ultima1252@gmail.com>
2
# $FreeBSD$
3
4
PORTNAME=	guacamole-server
5
PORTVERSION=	0.9.8
6
CATEGORIES=	net
7
8
MAINTAINER=	ultima1252@gmail.com
9
COMMENT=	HTML5 Clientless Remote Desktop
10
11
LICENSE_FILE=	LICENSE
12
13
LIB_DEPENDS=	libuuid.so:${PORTSDIR}/misc/ossp-uuid \
14
		libpng.so:${PORTSDIR}/graphics/png \
15
		libcairo.so:${PORTSDIR}/graphics/cairo \
16
		libjpeg.so:${PORTSDIR}/graphics/jpeg-turbo
17
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	glyptodon
20
GH_TAGNAME=	${PORTVERSION}
21
22
USES=		autoreconf libtool localbase pkgconfig shebangfix
23
SHEBANG_FILES=	${WRKSRC}/src/protocols/rdp/keymaps/generate.pl
24
25
GNU_CONFIGURE=	yes
26
CONFIGURE_ARGS+=	--with-guacd-conf=${PREFIX}/etc/guacd/guacd.conf
27
USE_LDCONFIG=	yes
28
MAKE_JOBS_UNSAFE=	yes
29
USE_RC_SUBR=	guacd
30
31
OPTIONS_DEFINE=		RDP SSH VNC VORBIS PULSEAUDIO
32
OPTIONS_DEFAULT=	SSH
33
OPTIONS_SUB=		yes
34
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:${PORTSDIR}/audio/pulseaudio
35
PULSEAUDIO_DESC?=	VNC audio support (Experimental)
36
RDP_LIB_DEPENDS=	libfreerdp.so:${PORTSDIR}/net/freerdp
37
RDP_DESC?=		RDP Protocal Support
38
SSH_LIB_DEPENDS=	libpango-1.0.so:${PORTSDIR}/x11-toolkits/pango \
39
			libssh2.so:${PORTSDIR}/security/libssh2
40
SSH_DESC?=		SSH Support
41
VNC_LIB_DEPENDS=	libvncserver.so:${PORTSDIR}/net/libvncserver
42
VNC_DESC?=		VNC Protocol Support
43
VORBIS_LIB_DEPENDS=	libvorbis.so:${PORTSDIR}/audio/libvorbis
44
VORBIS_DESC?=		Ogg Vorbis for compression
45
46
.include <bsd.port.pre.mk>
47
48
post-patch:
49
	@${REINPLACE_CMD} 's|/etc/ssl|${PREFIX}/etc/ssl|g ; \
50
			 s|/etc/guacamole|${PREFIX}/etc/guacd|g' \
51
			 ${WRKSRC}/src/guacd/man/guacd.conf.5
52
post-install:
53
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac.so.10.0.0
54
.if ${PORT_OPTIONS:MSSH}
55
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac-client-ssh.so.0.0.0
56
.endif
57
.if ${PORT_OPTIONS:MRDP}
58
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freerdp/guacsnd-client.so
59
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freerdp/guacdr-client.so
60
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freerdp/guacsvc-client.so
61
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac-client-rdp.so.0.0.0
62
.endif
63
.if ${PORT_OPTIONS:MVNC}
64
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac-client-vnc.so.0.0.0
65
.endif
66
67
.include <bsd.port.post.mk>
(-)net/guacamole-server/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (glyptodon-guacamole-server-0.9.8_GH0.tar.gz) = ff29250755335f30ea187d062e2404776b6fc3c0d8074ad013e9ede42c024b9d
2
SIZE (glyptodon-guacamole-server-0.9.8_GH0.tar.gz) = 276979
(-)net/guacamole-server/files/guacd.in (+44 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: guacd
6
# REQUIRE: LOGIN
7
#
8
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
9
# to enable this service:
10
#
11
# guacd_enable (bool):	Set to NO by default.
12
#				Set it to YES to enable guacd.
13
# guacd_pidfile (str): default: "/var/run/guacd/guacd.pid"
14
#
15
16
. /etc/rc.subr
17
18
name=guacd
19
rcvar=${name}_enable
20
21
load_rc_config ${name}
22
23
: ${guacd_enable:="NO"}
24
: ${guacd_pidfile=/var/run/${name}/${name}.pid}
25
: ${guacd_user="nobody"}
26
: ${guacd_group="nobody"}
27
28
command=%%PREFIX%%/sbin/guacd
29
pidfile=${guacd_pidfile}
30
31
command_args="-p ${pidfile}"
32
33
start_precmd="guacd_prestart"
34
guacd_prestart() {
35
        if [ -f ${pidfile} ]; then
36
                rm -f ${pidfile}
37
                echo "Removing stale pidfile."
38
        elif [ ! -d ${pidfile%/*} ]; then
39
                install -d -o ${guacd_user} -g ${guacd_group} ${pidfile%/*}
40
        fi
41
}
42
43
44
run_rc_command "$1"
(-)net/guacamole-server/pkg-descr (+10 lines)
Line 0 Link Here
1
The guacamole-server package is a set of software which forms the basis of the
2
Guacamole stack. It consists of guacd, libguac, and several protocol support
3
libraries.
4
5
guacd is the Guacamole proxy daemon used by the Guacamole web application and
6
framework. As JavaScript cannot handle binary protocols (like VNC and remote
7
desktop) efficiently, a new test-based protocol was developed which would
8
contain a common superset of the operations needed for efficient remote desktop
9
access, but would be easy for JavaScript programs to process. guacd is the
10
proxy which translates between arbitrary protocols and the Guacamole protocol.
(-)net/guacamole-server/pkg-plist (+55 lines)
Line 0 Link Here
1
include/guacamole/audio-fntypes.h
2
include/guacamole/audio-types.h
3
include/guacamole/audio.h
4
include/guacamole/client-constants.h
5
include/guacamole/client-fntypes.h
6
include/guacamole/client-types.h
7
include/guacamole/client.h
8
include/guacamole/error-types.h
9
include/guacamole/error.h
10
include/guacamole/hash.h
11
include/guacamole/instruction-constants.h
12
include/guacamole/instruction-types.h
13
include/guacamole/instruction.h
14
include/guacamole/layer-types.h
15
include/guacamole/layer.h
16
include/guacamole/object-types.h
17
include/guacamole/object.h
18
include/guacamole/plugin-constants.h
19
include/guacamole/plugin-types.h
20
include/guacamole/plugin.h
21
include/guacamole/pool-types.h
22
include/guacamole/pool.h
23
include/guacamole/protocol-types.h
24
include/guacamole/protocol.h
25
include/guacamole/socket-constants.h
26
include/guacamole/socket-fntypes.h
27
include/guacamole/socket-types.h
28
include/guacamole/socket.h
29
include/guacamole/stream-types.h
30
include/guacamole/stream.h
31
include/guacamole/timestamp-types.h
32
include/guacamole/timestamp.h
33
include/guacamole/unicode.h
34
%%RDP%%lib/freerdp/guacdr-client.so
35
%%RDP%%lib/freerdp/guacsnd-client.so
36
%%RDP%%lib/freerdp/guacsvc-client.so
37
%%RDP%%lib/libguac-client-rdp.a
38
%%RDP%%lib/libguac-client-rdp.so
39
%%RDP%%lib/libguac-client-rdp.so.0
40
%%RDP%%lib/libguac-client-rdp.so.0.0.0
41
%%SSH%%lib/libguac-client-ssh.a
42
%%SSH%%lib/libguac-client-ssh.so
43
%%SSH%%lib/libguac-client-ssh.so.0
44
%%SSH%%lib/libguac-client-ssh.so.0.0.0
45
%%VNC%%lib/libguac-client-vnc.a
46
%%VNC%%lib/libguac-client-vnc.so
47
%%VNC%%lib/libguac-client-vnc.so.0
48
%%VNC%%lib/libguac-client-vnc.so.0.0.0
49
lib/libguac.a
50
lib/libguac.so
51
lib/libguac.so.10
52
lib/libguac.so.10.0.0
53
man/man5/guacd.conf.5.gz
54
man/man8/guacd.8.gz
55
sbin/guacd

Return to bug 202754