blob: f306f22cac0ec22c4ec5acca8953232853a40c15 (
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
|
# Created by: Timothy Beyer <beyert@cs.ucr.edu>
# $FreeBSD$
PORTNAME= opennx
PORTVERSION= 0.16.0.725
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/CI-source
MAINTAINER= beyert@cs.ucr.edu
COMMENT= Open source drop in replacement for NoMachine\'s NX client
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/bin/zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
smbclient:${PORTSDIR}/net/samba-libsmbclient \
cups:${PORTSDIR}/print/cups-base
WRKSRC= ${WRKDIR}/${PORTNAME}-0.16
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_XORG= xmu
USE_WX= 2.8+
WX_UNICODE= yes
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-wx-config=${WX_CONFIG}
CPPFLAGS+= -I${LOCALBASE}/include
INSTALLS_ICONS= yes
NO_PACKAGE= must generate a fresh private key at install time
SSH_KEYGEN?= ssh-keygen
.include <bsd.port.options.mk>
.if !${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=--disable-nls --localedir=/dev/null
PLIST_SUB+= NLS="@comment "
.else
USES+= gettext
PLIST_SUB+= NLS=""
.endif
# do not use default private key included with tarball
post-patch:
@${RM} ${WRKSRC}/share/keys/server.id_dsa.key
@${SSH_KEYGEN} -N '' -b 2048 -q -f ${WRKSRC}/share/keys/server.id_dsa.key
@${REINPLACE_CMD} 's|/usr/NX/bin/||' \
${WRKSRC}/extres/xdg/innovidata-opennx.desktop \
${WRKSRC}/extres/xdg/innovidata-opennx-admin.desktop \
${WRKSRC}/extres/xdg/innovidata-opennx-wizard.desktop
@${RM} ${WRKSRC}/extres/xdg/*.bak
post-install:
@${CHMOD} 440 ${PREFIX}/share/keys/server.id_dsa.key
.include <bsd.port.mk>
|