blob: f79f6f5d2785103ec11b44f257a51f036f570623 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# New ports collection makefile for: xrdp
# Date created: 2007-02-19
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= xrdp
PORTVERSION= 0.4.1
CATEGORIES= net
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= An open source Remote Desktop Protocol (RDP) server
USE_RC_SUBR= xrdp
.if defined(WITH_DEBUG)
CFLAGS+= -DXRDP_DEBUG
.endif
MAN5= sesman.ini.5 xrdp.ini.5
MAN8= sesman.8 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/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} -e 's|/etc/pam\.d/sesman|${PREFIX}&|' \
${WRKSRC}/sesman/verify_user_pam.c
post-install:
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.mk>
|