mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
e79433c0f8
present a GUI to the user. The goal of this project is to provide a fully functional Linux terminal server, capable of accepting connections from rdesktop and Microsoft's own terminal server / remote desktop clients. Unlike Windows NT/2000/2003 server, xrdp will not display a Windows desktop but an X window desktop to the user. Xrdp uses Xvnc or X11rdp to manage the X session. WWW: http://xrdp.sourceforge.net/
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# New ports collection makefile for: xrdp
|
|
# Date created: 2007-02-19
|
|
# Whom: alepulver
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xrdp
|
|
PORTVERSION= 0.3.2
|
|
CATEGORIES= net
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
|
COMMENT= An open source Remote Desktop Protocol (RDP) server
|
|
|
|
USE_RC_SUBR= xrdp
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CFLAGS+= -DXRDP_DEBUG
|
|
.endif
|
|
|
|
MAN5= xrdp_sesman.ini.5 xrdp.ini.5
|
|
MAN8= xrdp_sesman.8 xrdp_sesrun.8 xrdp.8
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -type f -name Makefile | \
|
|
${XARGS} ${REINPLACE_CMD} -e \
|
|
's|/usr/local/xrdp|${PREFIX}/lib/${PORTNAME}|; \
|
|
s|/etc/xrdp|${PREFIX}/etc/${PORTNAME}|; \
|
|
s|/usr/local/man|${MANPREFIX}/man|; \
|
|
s|/usr/doc/xrdp|${DOCSDIR}|; \
|
|
s|CFLAGS =|CFLAGS +=|; s|gcc|${CC}|; s|-ldl||'
|
|
@${REINPLACE_CMD} -e \
|
|
's|startwm\.sh|${PREFIX}/lib/${PORTNAME}/&|; \
|
|
s|\./sesman\.log|/var/log/xrdp_sesman.log|' \
|
|
${WRKSRC}/sesman/sesman.ini
|
|
@${REINPLACE_CMD} -e 's|Tahoma-10\.fv1|${PREFIX}/lib/${PORTNAME}/&|' \
|
|
${WRKSRC}/xrdp/xrdp_font.c
|
|
@${REINPLACE_CMD} -Ee \
|
|
's,(xrdp|ad)256\.bmp,${PREFIX}/lib/${PORTNAME}/&,' \
|
|
${WRKSRC}/xrdp/xrdp_login_wnd.c
|
|
@${REINPLACE_CMD} -e 's|cursor[01]\.cur|${PREFIX}/lib/${PORTNAME}/&|' \
|
|
${WRKSRC}/xrdp/xrdp_wm.c
|
|
@${REINPLACE_CMD} -Ee 's|/(etc/pam\.d/)(sesman)|${PREFIX}/\1xrdp_\2|' \
|
|
${WRKSRC}/sesman/verify_user_pam.c
|
|
|
|
post-install:
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
.include <bsd.port.mk>
|