blob: e3714517bb69793cd9edae180b00e28c04ef3867 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# New ports collection makefile for: xrdp
# Date created: 2007-02-19
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= xrdp
PORTVERSION= 0.6.0.20110117
CATEGORIES= net
MASTER_SITES= http://www.club.kyutech.ac.jp/~meta/distfiles/ \
http://key2.jp/~meta/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION}cvs
DIST_SUBDIR?= ${PORTNAME}
PATCH_SITES= http://www.club.kyutech.ac.jp/~meta/patches/xrdp/0.6.0/ \
http://key2.jp/~meta/patches/xrdp/0.6.0/
MAINTAINER= meta@club.kyutech.ac.jp
COMMENT= An open source Remote Desktop Protocol (RDP) server
USE_XORG= x11 xfixes
USE_AUTOTOOLS= autoconf:env automake:env libtool
GNU_CONFIGURE= yes
USE_RC_SUBR= xrdp
CONFIGURE_ARGS= --localstatedir=/var
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
RUN_DEPENDS+= Xvnc:${PORTSDIR}/net/vnc
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_LDCONFIG= ${PREFIX}/lib/xrdp
OPTIONS= DEBUG "Build with debugging symbols" off \
JP106 "Install Japanese JP106 Keymap" on
.include <bsd.port.options.mk>
.if defined(WITH_DEBUG)
CFLAGS+= -DXRDP_DEBUG
.endif
.if defined(WITH_JP106)
PATCHFILES+= patch-instfiles__Makefile.am \
patch-instfiles__km-0411.ini \
patch-instfiles__km-e0010411.ini \
patch-instfiles__km-e0200411.ini \
patch-instfiles__km-e0210411.ini
PLIST_SUB+= JP106=""
.else
PLIST_SUB+= JP106="@comment "
.endif
MAN5= sesman.ini.5 xrdp.ini.5
MAN8= xrdp-sesman.8 xrdp-sesrun.8 xrdp.8
SUB_FILES= pkg-message
post-patch:
.for f in sesman/sesman.ini sesman/startwm.sh xrdp/rsakeys.ini xrdp/xrdp.ini
@${MV} ${WRKSRC}/$f ${WRKSRC}/$f.sample
.endfor
pre-configure:
@cd ${WRKSRC} && ./bootstrap
post-install:
.for f in rsakeys.ini 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
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.mk>
|