aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-06-20 11:56:14 +0800
committerswills <swills@FreeBSD.org>2013-06-20 11:56:14 +0800
commite21f068ef3dabada78dccd750a86b0b17254ae13 (patch)
tree13c90e4daa3e352040135aa67e87e17d1bc0a9f6 /net
parentcedff1714cd3202e0d83764bfa58c610b54e2bee (diff)
downloadfreebsd-ports-gnome-e21f068ef3dabada78dccd750a86b0b17254ae13.tar.gz
freebsd-ports-gnome-e21f068ef3dabada78dccd750a86b0b17254ae13.tar.zst
freebsd-ports-gnome-e21f068ef3dabada78dccd750a86b0b17254ae13.zip
- Make pointyhat happy: by changing RSA key pair generation behaviour now key
will be generated on first xrdp daemon start - Add options to select VNC variants - Build with freerdp since net/freerdp has been updated to 1.0.2 PR: ports/179542 Submitted by: Koichiro IWAO <meta+ports@vmeta.jp> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/xrdp/Makefile38
-rw-r--r--net/xrdp/files/xrdp.in5
-rw-r--r--net/xrdp/pkg-plist6
3 files changed, 35 insertions, 14 deletions
diff --git a/net/xrdp/Makefile b/net/xrdp/Makefile
index 5ae5e6099680..b98d4ef2e809 100644
--- a/net/xrdp/Makefile
+++ b/net/xrdp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= xrdp
PORTVERSION= 0.6.0
-PORTREVISION= 3
+PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= SF/xrdp/xrdp/${PORTVERSION}
@@ -24,20 +24,40 @@ USE_AUTOTOOLS= autoconf:env automake:env libtool
GNU_CONFIGURE= yes
USE_RC_SUBR= xrdp
-CONFIGURE_ARGS= --localstatedir=/var
+CONFIGURE_ARGS= --localstatedir=/var --enable-freerdp1
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
CONFLICTS= xrdp-devel-[0-9]*
+BUILD_DEPENDS+= freerdp>=1.0.2:${PORTSDIR}/net/freerdp
USE_LDCONFIG= ${PREFIX}/lib/xrdp
-OPTIONS_DEFINE= DEBUG GATEWAY JP106
-OPTIONS_DEFAULT= JP106
-GATEWAY_DESC= Install xrdp as RDP gateway (no VNC backend)
+OPTIONS_DEFINE= DEBUG JP106
+OPTIONS_DEFAULT= JP106 TIGERVNC
+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
JP106_DESC= Install Japanese JP106 keymap
.include <bsd.port.options.mk>
+# 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
+
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-xrdpdebug
CFLAGS+= -DXRDP_DEBUG
@@ -54,10 +74,6 @@ PLIST_SUB+= JP106=""
PLIST_SUB+= JP106="@comment "
.endif
-.if !${PORT_OPTIONS:MGATEWAY}
-RUN_DEPENDS+= Xvnc:${PORTSDIR}/net/vnc
-.endif
-
MAN5= sesman.ini.5 xrdp.ini.5
MAN8= xrdp-sesman.8 xrdp-sesrun.8 xrdp.8
@@ -72,13 +88,11 @@ pre-configure:
@cd ${WRKSRC} && ./bootstrap
post-install:
-.for f in rsakeys.ini sesman.ini startwm.sh xrdp.ini
+.for f in sesman.ini startwm.sh xrdp.ini
@if [ ! -f ${PREFIX}/etc/xrdp/$f ]; then \
${CP} -p ${PREFIX}/etc/xrdp/$f.sample ${PREFIX}/etc/xrdp/$f ; \
fi
.endfor
- @if cmp -s ${PREFIX}/etc/xrdp/rsakeys.ini.sample ${PREFIX}/etc/xrdp/rsakeys.ini; then \
- ${PREFIX}/bin/xrdp-keygen xrdp ${PREFIX}/etc/xrdp/rsakeys.ini; fi
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.mk>
diff --git a/net/xrdp/files/xrdp.in b/net/xrdp/files/xrdp.in
index 5009343e2aa7..24d4aabefa77 100644
--- a/net/xrdp/files/xrdp.in
+++ b/net/xrdp/files/xrdp.in
@@ -38,6 +38,11 @@ xrdp_cmd() {
if [ "${rc_arg}" = "stop" ] ; then
xrdp_daemons=$(reverse_list ${xrdp_daemons})
fi
+ # Generate rsakeys.ini on start
+ if [ "${rc_arg}" = "start" -a ! -f %%PREFIX%%/etc/xrdp/rsakeys.ini ] ; then
+ %%PREFIX%%/bin/xrdp-keygen xrdp %%PREFIX%%/etc/xrdp/rsakeys.ini
+ fi
+
# Apply to all the daemons.
for name in ${xrdp_daemons}; do
rcvar=${name}_enable
diff --git a/net/xrdp/pkg-plist b/net/xrdp/pkg-plist
index 4bcd243c5eeb..94418a95b0e9 100644
--- a/net/xrdp/pkg-plist
+++ b/net/xrdp/pkg-plist
@@ -33,6 +33,10 @@ lib/xrdp/libxup.a
lib/xrdp/libxup.la
lib/xrdp/libxup.so
lib/xrdp/libxup.so.0
+lib/xrdp/libxrdpfreerdp1.la
+lib/xrdp/libxrdpfreerdp1.a
+lib/xrdp/libxrdpfreerdp1.so
+lib/xrdp/libxrdpfreerdp1.so.0
etc/pam.d/xrdp-sesman
etc/xrdp/km-0407.ini
etc/xrdp/km-0409.ini
@@ -52,8 +56,6 @@ etc/xrdp/rsakeys.ini.sample
etc/xrdp/sesman.ini.sample
etc/xrdp/startwm.sh.sample
etc/xrdp/xrdp.ini.sample
-@comment backup pre-compile-time keypair and generate new one
-@exec if [ -f %D/etc/xrdp/rsakeys.ini ]; then cp -a %D/etc/xrdp/rsakeys.ini %D/etc/xrdp/rsakeys.ini.bak`date +%%Y%%m%%d`; %D/bin/xrdp-keygen xrdp %D/etc/xrdp/rsakeys.ini; fi
@exec [ -f %D/etc/xrdp/sesman.ini ] || cp -p %D/etc/xrdp/sesman.ini.sample %D/etc/xrdp/sesman.ini
@exec [ -f %D/etc/xrdp/startwm.sh ] || cp -p %D/etc/xrdp/startwm.sh.sample %D/etc/xrdp/startwm.sh
@exec [ -f %D/etc/xrdp/xrdp.ini ] || cp -p %D/etc/xrdp/xrdp.ini.sample %D/etc/xrdp/xrdp.ini