Lines 6-56
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= ssvnc |
8 |
PORTNAME= ssvnc |
9 |
PORTVERSION= 1.0.20 |
9 |
PORTVERSION= 1.0.22 |
10 |
PORTREVISION= 7 |
|
|
11 |
CATEGORIES= net security |
10 |
CATEGORIES= net security |
12 |
MASTER_SITES= http://www.karlrunge.com/x11vnc/etv/ |
11 |
MASTER_SITES= SF |
|
|
12 |
DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX} |
13 |
|
13 |
|
14 |
MAINTAINER= alepulver@FreeBSD.org |
14 |
MAINTAINER= alepulver@FreeBSD.org |
15 |
COMMENT= Enhanced TightVNC Viewer (SSVNC: SSL/SSH VNC viewer) |
15 |
COMMENT= Enhanced TightVNC Viewer (SSVNC: SSL/SSH VNC viewer) |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= imake:${PORTSDIR}/devel/imake |
17 |
BUILD_DEPENDS= imake:${PORTSDIR}/devel/imake |
18 |
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg |
18 |
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg |
19 |
RUN_DEPENDS= stunnel:${PORTSDIR}/security/stunnel |
19 |
RUN_DEPENDS= stunnel:${PORTSDIR}/security/stunnel \ |
|
|
20 |
xterm:${PORTSDIR}/x11/xterm |
20 |
|
21 |
|
21 |
USE_XORG= xi xmu xt xaw |
22 |
OPTIONS= ULTRAFTP "UltraVNC File Transfer support (Java required)" off |
|
|
23 |
|
24 |
USE_GMAKE= yes |
25 |
USE_XORG= xi xmu xt xaw ice xpm xext sm |
22 |
USE_TCL_RUN= 84 |
26 |
USE_TCL_RUN= 84 |
23 |
USE_TK_RUN= 84 |
27 |
USE_TK_RUN= 84 |
24 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
28 |
USE_PERL5_RUN= yes |
|
|
29 |
|
30 |
.if defined(WITH_ULTRAFTP) |
31 |
USE_JAVA= yes |
32 |
PLIST_SUB+= ULTRAFTP="" |
33 |
.else |
34 |
PLIST_SUB+= ULTRAFTP="@comment " |
35 |
.endif |
36 |
.if defined(NOPORTDOCS) |
37 |
MAKE_ARGS+= DOCS="" |
38 |
.endif |
39 |
|
40 |
MAN1= ssvnc-gui.1 \ |
41 |
ssvncviewer.1 |
42 |
|
43 |
PLIST_SUB+= LIBDIR=lib/${PORTNAME} DESKTOPDIR=${_DESKTOPDIR_REL} |
25 |
|
44 |
|
26 |
post-patch: |
45 |
post-patch: |
27 |
@${REINPLACE_CMD} -e \ |
46 |
@${REINPLACE_CMD} -e 's|exec wish|exec ${WISH}|' ${WRKSRC}/scripts/util/ssvnc.tcl |
28 |
's|/usr/local|${LOCALBASE}|g; s|/usr/X11R6|${LOCALBASE}|g' \ |
47 |
@${REINPLACE_CMD} -e 's|grep Linux|grep ${OPSYS}|' ${WRKSRC}/scripts/util/ss_vncviewer |
29 |
${WRKSRC}/build.unix |
48 |
@${REINPLACE_CMD} -e 's|[[:<:]]ssvnc[[:>:]]|ssvnc-gui|' ${WRKSRC}/man/man1/ssvnc.1 |
30 |
@${REINPLACE_CMD} -e \ |
49 |
.if !defined(WITH_ULTRAFTP) |
31 |
's|exec wish|exec ${WISH}|; \ |
50 |
@${REINPLACE_CMD} -e "s|sh -c 'type javac'||" \ |
32 |
303,$$s|ss_vncviewer|ssvnc-stunnel|; \ |
51 |
-e "s|sh -c 'type jar'||" \ |
33 |
s|ssvnc_cmd|ssvnc-stunnel|' \ |
52 |
-e 's|cd $$(JSRC);|@#|' \ |
34 |
${WRKSRC}/bin/util/ssvnc.tcl |
53 |
-e 's|cp -p $$(ARCHIVE)|@#|' \ |
35 |
@${REINPLACE_CMD} -e \ |
54 |
${WRKSRC}/Makefile |
36 |
's|ss_vncviewer|ssvnc-stunnel|; \ |
|
|
37 |
s|-vncviewer|-ssvnc|; \ |
38 |
s|grep Linux|grep ${OPSYS}|' \ |
39 |
${WRKSRC}/bin/util/ss_vncviewer |
40 |
|
41 |
do-build: |
42 |
@cd ${WRKSRC} && ${SETENV} UNAME="${OPSYS}" ${SH} build.unix |
43 |
|
44 |
do-install: |
45 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${OPSYS}/vncviewer ${PREFIX}/bin/ssvnc |
46 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/util/ss_vncviewer \ |
47 |
${PREFIX}/bin/ssvnc-stunnel |
48 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/util/ssvnc.tcl ${PREFIX}/bin/ssvnc-gui |
49 |
.if !defined(NOPORTDOCS) |
50 |
${MKDIR} ${DOCSDIR} |
51 |
cd ${WRKSRC} && ${INSTALL_DATA} README bin/util/stunnel-server.conf \ |
52 |
${DOCSDIR} |
53 |
.endif |
55 |
.endif |
|
|
56 |
|
57 |
do-configure: |
58 |
@cd ${WRKSRC} && ${GMAKE} config |
59 |
|
60 |
post-install: |
54 |
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} |
61 |
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} |
55 |
|
62 |
|
56 |
.include <bsd.port.mk> |
63 |
.include <bsd.port.mk> |