sysutils/tmux: Update to 3.6a

Based on a patch from diizzy.  See PR 292007.

Release notes:	https://github.com/tmux/tmux/releases/tag/3.6a
PR:		292007
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Joseph Mingrone
2026-01-03 15:06:35 -04:00
parent 4b78ca1642
commit 5c13992c8c
4 changed files with 18 additions and 54 deletions
+10 -25
View File
@@ -1,28 +1,18 @@
PORTNAME= tmux
PORTVERSION= 3.6
PORTREVISION= 1
PORTVERSION= 3.6a
CATEGORIES= sysutils
MASTER_SITES= https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MASTER_SITES= https://github.com/tmux/tmux/releases/download/${DISTVERSION}/
MAINTAINER= jrm@FreeBSD.org
COMMENT= Terminal Multiplexer
WWW= https://tmux.github.io/
LICENSE= GPLv2 ISCL
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC_bash}/COPYING
LICENSE_FILE_ISCL= ${WRKSRC}/COPYING
LICENSE_DISTFILES_GPLv2= ${DISTFILE_bash}
LICENSE_DISTFILES_ISCL= ${DISTNAME}${EXTRACT_SUFX}
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe pkgconfig
CPE_VENDOR= tmux_project
USE_GITHUB= nodefault
GH_TUPLE= imomaliev:tmux-bash-completion:8da7f79:bash
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-utempter \
--sysconfdir=${PREFIX}/etc
@@ -30,7 +20,6 @@ CONFIGURE_ARGS= --enable-utempter \
CONFLICTS_INSTALL= tmux23
PLIST_FILES= bin/tmux \
etc/bash_completion.d/tmux \
share/man/man1/tmux.1.gz
PORTDOCS= CHANGES README
@@ -44,10 +33,9 @@ UTF8PROC_DESC= Build with utf8proc support
LIBEVENT_STATIC_BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:devel/libevent
LIBEVENT_STATIC_LIB_DEPENDS_OFF= libevent.so:devel/libevent
LIBEVENT_STATIC_VARS= LESTATIC=${LOCALBASE}/lib/libevent.a
UTF8PROC_LIB_DEPENDS= libutf8proc.so:textproc/utf8proc
UTF8PROC_USES= localbase
UTF8PROC_CONFIGURE_ENABLE= utf8proc
UTF8PROC_LIB_DEPENDS= libutf8proc.so:textproc/utf8proc
UTF8PROC_USES= localbase
UTF8PROC_CONFIGURE_ENABLE= utf8proc
.include <bsd.port.pre.mk>
@@ -59,17 +47,14 @@ USES+= ncurses
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/etc/tmux.conf|${PREFIX}/etc/tmux.conf|g' ${WRKSRC}/CHANGES \
${WRKSRC}/tmux.h
@${REINPLACE_CMD} -e 's|/etc/tmux.conf|${PREFIX}/etc/tmux.conf|g' \
${PATCH_WRKSRC}/CHANGES ${PATCH_WRKSRC}/tmux.h
@${REINPLACE_CMD} -e 's|-O2||g' ${PATCH_WRKSRC}/Makefile.in
post-configure-LIBEVENT_STATIC-on:
${REINPLACE_CMD} -e '/LIBS/s|-levent[^[:blank:]]*|${LESTATIC}|' \
${WRKSRC}/${MAKEFILE}
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC_bash}/completions/tmux ${STAGEDIR}${PREFIX}/etc/bash_completion.d/tmux
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+3 -5
View File
@@ -1,5 +1,3 @@
TIMESTAMP = 1764148608
SHA256 (tmux-3.6.tar.gz) = 136db80cfbfba617a103401f52874e7c64927986b65b1b700350b6058ad69607
SIZE (tmux-3.6.tar.gz) = 750145
SHA256 (imomaliev-tmux-bash-completion-8da7f79_GH0.tar.gz) = 2ba28d9a0f0b419184229f234fcb20ed6d6f456b4ef592e4cd2eec79142e7502
SIZE (imomaliev-tmux-bash-completion-8da7f79_GH0.tar.gz) = 9438
TIMESTAMP = 1767466827
SHA256 (tmux-3.6a.tar.gz) = b6d8d9c76585db8ef5fa00d4931902fa4b8cbe8166f528f44fc403961a3f3759
SIZE (tmux-3.6a.tar.gz) = 750698
-24
View File
@@ -1,24 +0,0 @@
From bfa2f733351da5b2ee2674408eac744b067622fb Mon Sep 17 00:00:00 2001
From: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Wed, 26 Nov 2025 10:41:17 +0000
Subject: [PATCH] Need signal.h for utempter, from Yasuhiro Kimura.
---
server-fn.c | 1 +
1 file changed, 1 insertion(+)
diff --git server-fn.c server-fn.c
index 6ab7fa48..29802a60 100644
--- server-fn.c
+++ server-fn.c
@@ -20,6 +20,7 @@
#include <sys/wait.h>
#include <sys/uio.h>
+#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
--
2.52.0
+5
View File
@@ -10,4 +10,9 @@ you forgot to restart tmux:
open terminal failed: not a terminal
EOM
}
{
type: upgrade
maximum_version: "3.6a"
message: "The bash completions for tmux have been moved to the bash-completion package."
}
]