e7afbce747
changes by Simon Tatham unless otherwise stated, newest first: * 1e451997 2024-12-26 | Treat SOS and PM terminal escape sequences like APC (HEAD -> pre-0.83, origin/pre-0.83) * 98200d1b 2024-12-19 | Arm: turn on PSTATE.DIT if available and needed. * c2077f88 2024-12-19 | Fix compile warnings in tree234 tests. * 27550b02 2024-12-16 | Windows: inhibit all default application manifests. * 363debc7 2024-12-15 | lineedit: make both ^M and ^J terminate a line. * 1fc5f4af 2024-12-15 | wm_size_resize_term: update conf unconditionally. * 11c7c760 2024-12-15 | Remove bit-rotted RDB_DEBUG_PATCH. * c91437ba 2024-12-15 | Update cmake_minimum_required to avoid warnings on sid. * 7802932e 2024-12-15 | Document how to set GIT_SSH_COMMAND to plink -batch. * 09095a7d 2023-07-15 | Avoid treating non-X GDK display names as X ones [Ben Harris] * 1ce8ec9c 2024-12-08 | lineedit_send_line: batch up output characters. * edd5e13f 2024-12-14 | Fix assertion failure on Restart Session. * f8e1a2b3 2024-12-13 | Windows: rewrite request_file() to support Unicode. * 22dfc46f 2024-12-13 | Windows: add filename_to_wstr(). * 1ef0fbaa 2024-12-13 | Add helper function dupwcscat(). * 897ecf46 2024-12-11 | SUPDUP: make the TDCRL command clear to end of line. * 3c6a5139 2024-12-08 | Minimally document ML-KEM key exchange methods. [Jacob Nevins] * a3f22a2c 2024-12-08 | Use the new 'HYBRID' names for the hybrid KEX packets. * e98615f0 2024-12-07 | New post-quantum kex: ML-KEM, and three hybrids of it. * b36d490b 2024-12-07 | Give the kex selection list box a fixed height. * 16629d3b 2024-12-07 | Add more variants of SHAKE. * f08da2b6 2024-12-07 | Separate NTRU Prime from the hybridisation layer. * fcdc804b 2024-12-01 | Move some NTRU helper routines into a header file. * c2d7ea8e 2024-12-04 | Fix use of aligned_alloc() to be ASan-clean. * 7da34495 2024-12-07 | Fix error message when KEXINIT negotiation fails. * 296b6291 2024-12-07 | GTK: fix a crash when clicking Cancel on Change Settings. * 6a88b294 2024-12-04 | Unix PuTTY/pterm: fix UB with small keypad. [Jacob Nevins] * b97f20d0 2024-11-30 | release.pl: Adjust pscp/plink transcript updater. [Jacob Nevins] * 54f6fefe 2024-11-30 | Docs: pscp/plink now need -h/--help to print usage. [Jacob Nevins] * ebe24534 2024-11-28 | psftp: use cmdline_arg_to_filename for batch files. * d4e848a9 2024-11-28 | CHECKLST: update for some extra test builds. * 948a4c8e 2024-11-28 | Fix a compile warning when building with GTK 1. * 8805cf3d 2024-11-28 | Fix a build failure with NO_GSSAPI defined. * c72a8627 2024-11-28 | Fix build failures with NO_IPV6 defined.
113 lines
3.1 KiB
Makefile
113 lines
3.1 KiB
Makefile
PORTNAME= putty
|
|
# https://tartarus.org/~simon/putty-prerel-snapshots/putty-0.83~pre20250105.1e45199.tar.gz
|
|
DISTVERSION= 0.83~pre20250105
|
|
PORTREVISION= 0
|
|
DISTVERSIONSUFFIX= .1e45199
|
|
CATEGORIES= security
|
|
#MASTER_SITES= http://the.earth.li/~sgtatham/putty/${PORTVERSION}/ \
|
|
# ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-latest/ \
|
|
# LOCAL/mandree/
|
|
MASTER_SITES= https://tartarus.org/~simon/putty-prerel-snapshots/ \
|
|
LOCAL/mandree/
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
COMMENT= Secure shell and telnet client including xterm emulator
|
|
WWW= https://www.chiark.greenend.org.uk/~sgtatham/putty/
|
|
# test plan: test ALL 4 GSSAPI_* options, GTK3 yes/no, WITH_DEBUG=yes build.
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${PATCH_WRKSRC}/LICENCE
|
|
|
|
USES= cmake cpe perl5 pkgconfig
|
|
USE_PERL5= build
|
|
|
|
CONFLICTS_INSTALL?= pssh* putty-nogtk*
|
|
|
|
PATCH_STRIP= -p1
|
|
|
|
PLIST_FILES= bin/pageant \
|
|
bin/plink \
|
|
bin/pscp \
|
|
bin/psftp \
|
|
bin/psusan \
|
|
bin/puttygen \
|
|
share/man/man1/pageant.1.gz \
|
|
share/man/man1/plink.1.gz \
|
|
share/man/man1/pscp.1.gz \
|
|
share/man/man1/psftp.1.gz \
|
|
share/man/man1/psusan.1.gz \
|
|
share/man/man1/puttygen.1.gz
|
|
|
|
OPTIONS_DEFINE= GTK3
|
|
OPTIONS_DEFAULT= GSSAPI_BASE GTK3
|
|
OPTIONS_SINGLE= GSSAPI_SELECT
|
|
OPTIONS_SINGLE_GSSAPI_SELECT= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT \
|
|
GSSAPI_NONE
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
LDFLAGS+= -Wl,--as-needed
|
|
|
|
# XXX FIXME this is simplified on these assumptions:
|
|
# - we only support GTK3 in FreeBSD
|
|
# (Putty would support EOL GTK2 and GTK1 as well)
|
|
# - Putty 0.77 cannot have X11 without the gdk/gdkx.h header i. e. GTK.
|
|
.if ${PORT_OPTIONS:MGTK3} && !defined(WITHOUT_X11)
|
|
USES+= xorg
|
|
USE_XORG= x11
|
|
USES+= gnome
|
|
USE_GNOME= cairo gdkpixbuf2 gtk30
|
|
CMAKE_ARGS+= -DPUTTY_GTK_VERSION:STRING=3
|
|
|
|
PLIST_FILES+= bin/pterm \
|
|
bin/putty \
|
|
share/man/man1/pterm.1.gz \
|
|
share/man/man1/putty.1.gz \
|
|
share/pixmaps/putty.ico
|
|
DESKTOP_ENTRIES= "PuTTY" \
|
|
"${COMMENT}" \
|
|
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
|
|
"${PORTNAME}" \
|
|
"" \
|
|
false
|
|
.else
|
|
CMAKE_ARGS+= -DPUTTY_GTK_VERSION:STRING=NONE
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGSSAPI_BASE} # Heimdal-like in base system
|
|
USES+= gssapi:base,flags
|
|
CMAKE_ARGS+= -DKRB5_CONFIG:PATH=${KRB5CONFIG} \
|
|
-DPUTTY_GSSAPI:STRING=STATIC
|
|
.elif ${PORT_OPTIONS:MGSSAPI_HEIMDAL}
|
|
USES+= gssapi:heimdal,flags
|
|
CMAKE_ARGS+= -DKRB5_CONFIG:PATH=${KRB5CONFIG} \
|
|
-DPUTTY_GSSAPI:STRING=STATIC
|
|
.elif ${PORT_OPTIONS:MGSSAPI_MIT}
|
|
USES+= gssapi:mit,flags
|
|
CMAKE_ARGS+= -DKRB5_CONFIG:PATH=${KRB5CONFIG} \
|
|
-DPUTTY_GSSAPI:STRING=STATIC
|
|
.else
|
|
CMAKE_ARGS+= -DPUTTY_GSSAPI:STRING=OFF
|
|
.endif
|
|
|
|
post-patch:
|
|
# we don't want to inherit FreeBSD commits
|
|
# as PUTTY Git commit revisions,
|
|
# so pretend we do not have Git:
|
|
${REINPLACE_CMD} '/FindGit/d' \
|
|
${WRKSRC}/cmake/setup.cmake \
|
|
${WRKSRC}/doc/CMakeLists.txt
|
|
# nuke pkg-config detection of GSSAPI/Kerberos libs,
|
|
# it interferes with FreeBSD's krb5-config approach
|
|
${REINPLACE_CMD} '/pkg_check_modules(KRB5 krb5-gssapi)/d' \
|
|
${WRKSRC}/cmake/platforms/unix.cmake
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MGTK3}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
${INSTALL_DATA} ${WRKSRC}/windows/putty.ico \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|