2012-12-26 13:27:15 +01:00
|
|
|
# Created by: alepulver
|
2007-05-04 03:12:47 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xrdp
|
2013-10-22 15:09:10 +02:00
|
|
|
PORTVERSION= 0.6.1
|
2014-02-14 19:57:15 +01:00
|
|
|
PORTREVISION= 3
|
2012-10-06 03:25:46 +02:00
|
|
|
PORTEPOCH= 1
|
2007-05-04 03:12:47 +02:00
|
|
|
CATEGORIES= net
|
2013-10-22 15:09:10 +02:00
|
|
|
MASTER_SITES= GH
|
2011-04-27 11:29:03 +02:00
|
|
|
DIST_SUBDIR?= ${PORTNAME}
|
|
|
|
|
2012-06-02 20:32:38 +02:00
|
|
|
MAINTAINER= meta+ports@vmeta.jp
|
2013-10-22 15:09:10 +02:00
|
|
|
COMMENT= Open source Remote Desktop Protocol (RDP) server
|
2007-05-04 03:12:47 +02:00
|
|
|
|
2012-06-02 20:32:38 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-13 03:21:55 +02:00
|
|
|
USES= pkgconfig
|
2010-11-10 17:29:36 +01:00
|
|
|
USE_XORG= x11 xfixes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:env automake:env libtool
|
2010-02-16 16:12:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-05-04 03:12:47 +02:00
|
|
|
USE_RC_SUBR= xrdp
|
2013-11-15 02:26:42 +01:00
|
|
|
USE_LDCONFIG= ${STAGEDIR}${PREFIX}/lib/xrdp
|
2013-10-22 15:09:10 +02:00
|
|
|
USE_GITHUB= yes
|
2014-01-25 18:00:15 +01:00
|
|
|
GH_ACCOUNT= neutrinolabs
|
2013-10-22 15:09:10 +02:00
|
|
|
GH_PROJECT= xrdp
|
|
|
|
GH_COMMIT= 5d53758
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
2007-05-04 03:12:47 +02:00
|
|
|
|
2014-01-25 18:00:15 +01:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-02-14 19:57:15 +01:00
|
|
|
CONFLICTS_INSTALL= xrdp-devel-[0-9]* x11rdp-devel-[0-9]*
|
2011-04-27 11:29:03 +02:00
|
|
|
|
2013-11-15 02:26:42 +01:00
|
|
|
OPTIONS_DEFINE= DEBUG
|
2014-02-14 19:57:15 +01:00
|
|
|
OPTIONS_DEFAULT= JP106 X11RDP
|
|
|
|
OPTIONS_GROUP= KEYMAP XSERVER
|
2013-12-17 16:50:00 +01:00
|
|
|
OPTIONS_GROUP_KEYMAP= JP106
|
2014-02-14 19:57:15 +01:00
|
|
|
OPTIONS_GROUP_XSERVER= X11RDP
|
2013-06-20 05:56:14 +02:00
|
|
|
OPTIONS_RADIO= XVNC
|
|
|
|
OPTIONS_RADIO_XVNC= REALVNC TIGERVNC TIGHTVNC TRIDIAVNC
|
|
|
|
REALVNC_DESC= Use RealVNC
|
|
|
|
TIGERVNC_DESC= Use TigerVNC (recommended)
|
|
|
|
TIGHTVNC_DESC= Use TightVNC
|
|
|
|
TRIDIAVNC_DESC= Use TridiaVNC
|
2014-02-14 19:57:15 +01:00
|
|
|
X11RDP_DESC= Use X11rdp (most recommended)
|
2012-08-06 13:55:56 +02:00
|
|
|
JP106_DESC= Install Japanese JP106 keymap
|
2010-11-10 17:29:36 +01:00
|
|
|
|
2011-04-27 11:29:03 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2010-02-16 16:12:20 +01:00
|
|
|
|
2013-06-20 05:56:14 +02:00
|
|
|
# Which Xserver to use
|
|
|
|
.if ${PORT_OPTIONS:MREALVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/vnc
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTIGERVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/tigervnc
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTIGHTVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/tightvnc
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTRIDIAVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/tridiavnc
|
|
|
|
.endif
|
2014-02-14 19:57:15 +01:00
|
|
|
# X11rdp
|
|
|
|
.if ${PORT_OPTIONS:MX11RDP} || exists(${LOCALBASE}/bin/X11rdp)
|
|
|
|
RUN_DEPENDS+= X11rdp:${PORTSDIR}/x11-servers/x11rdp
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-x11rdp_xrdp.ini
|
|
|
|
.endif
|
2013-06-20 05:56:14 +02:00
|
|
|
|
2012-08-06 13:55:56 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2012-10-06 03:25:46 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-xrdpdebug
|
2007-05-04 03:12:47 +02:00
|
|
|
CFLAGS+= -DXRDP_DEBUG
|
|
|
|
.endif
|
|
|
|
|
2012-08-06 13:55:56 +02:00
|
|
|
.if ${PORT_OPTIONS:MJP106}
|
2013-11-15 02:26:42 +01:00
|
|
|
KEYMAP_FILES+= km-0411.ini km-e0010411.ini \
|
|
|
|
km-e0200411.ini km-e0210411.ini
|
2011-04-27 11:29:03 +02:00
|
|
|
PLIST_SUB+= JP106=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JP106="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-05-04 03:12:47 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
post-patch:
|
2010-10-05 21:57:56 +02:00
|
|
|
.for f in sesman/sesman.ini sesman/startwm.sh xrdp/rsakeys.ini xrdp/xrdp.ini
|
|
|
|
@${MV} ${WRKSRC}/$f ${WRKSRC}/$f.sample
|
|
|
|
.endfor
|
2010-02-16 16:12:20 +01:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ./bootstrap
|
2007-05-04 03:12:47 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-06-20 05:56:14 +02:00
|
|
|
.for f in sesman.ini startwm.sh xrdp.ini
|
2013-10-22 15:09:10 +02:00
|
|
|
@if [ ! -f ${STAGEDIR}${PREFIX}/etc/xrdp/$f ]; then \
|
|
|
|
${CP} -p ${STAGEDIR}${PREFIX}/etc/xrdp/$f.sample ${STAGEDIR}${PREFIX}/etc/xrdp/$f ; \
|
2010-02-16 16:12:20 +01:00
|
|
|
fi
|
2010-10-05 21:57:56 +02:00
|
|
|
.endfor
|
2013-11-15 02:26:42 +01:00
|
|
|
.for f in ${KEYMAP_FILES}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/$f ${STAGEDIR}${PREFIX}/etc/xrdp
|
|
|
|
.endfor
|
2007-05-04 03:12:47 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|