git: 7221851dcfab - main - misc/github-copilot-cli: New port: CLI for GitHub Copilot
Date: Sat, 27 Jun 2026 23:45:13 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7221851dcfab9485e8e5abbf0a225ac5fc6e888b
commit 7221851dcfab9485e8e5abbf0a225ac5fc6e888b
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-27 23:23:55 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-27 23:23:55 +0000
misc/github-copilot-cli: New port: CLI for GitHub Copilot
---
misc/Makefile | 1 +
misc/github-copilot-cli/Makefile | 48 +++++++++++++++++++++++++++++++++++++++
misc/github-copilot-cli/distinfo | 5 ++++
misc/github-copilot-cli/pkg-descr | 4 ++++
4 files changed, 58 insertions(+)
diff --git a/misc/Makefile b/misc/Makefile
index 35067ad16755..3d66f877201a 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -175,6 +175,7 @@
SUBDIR += getopt
SUBDIR += ggml
SUBDIR += gimp-help-en
+ SUBDIR += github-copilot-cli
SUBDIR += github-copilot-cli-legacy
SUBDIR += github-copilot-language-server
SUBDIR += gitlogue
diff --git a/misc/github-copilot-cli/Makefile b/misc/github-copilot-cli/Makefile
new file mode 100644
index 000000000000..0e9960191a71
--- /dev/null
+++ b/misc/github-copilot-cli/Makefile
@@ -0,0 +1,48 @@
+PORTNAME= github-copilot-cli
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.65
+CATEGORIES= misc # machine-learning
+MASTER_SITES= https://github.com/github/copilot-cli/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/:amd64 \
+ https://github.com/github/copilot-cli/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/:aarch64
+DISTFILES= copilot-linux-x64.tar.gz:amd64 \
+ copilot-linux-arm64.tar.gz:aarch64
+DIST_SUBDIR= ${PORTNAME}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= CLI for GitHub Copilot
+WWW= https://github.com/github/copilot-cli
+
+ONLY_FOR_ARCHS= aarch64 amd64
+ONLY_FOR_ARCHS_REASON= is a Linux binary with a limited platform support
+
+USES= linux:rl9
+USE_LINUX= base
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+PLIST_FILES= bin/copilot
+
+find-new-version:
+ @TAB=$$(printf '\t'); \
+ new_ver=$$(${PORTSDIR}/Tools/scripts/github-get-latest-version.sh github copilot-cli | ${SED} 's/^v//'); \
+ current_ver=$$(make -V DISTVERSION); \
+ if [ "$$new_ver" != "$$current_ver" ]; then \
+ ${SED} -i '' "s/^DISTVERSION=.*/DISTVERSION=$${TAB}$$new_ver/" ${.CURDIR}/Makefile; \
+ echo "=> New version available: $$current_ver -> $$new_ver"; \
+ else \
+ echo "=> No new version available (current: $$current_ver)"; \
+ fi
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == aarch64
+EXTRACT_ONLY= copilot-linux-arm64.tar.gz
+.else
+EXTRACT_ONLY= copilot-linux-x64.tar.gz
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/copilot ${STAGEDIR}${PREFIX}/bin/copilot
+
+.include <bsd.port.post.mk>
diff --git a/misc/github-copilot-cli/distinfo b/misc/github-copilot-cli/distinfo
new file mode 100644
index 000000000000..594c71e99b1d
--- /dev/null
+++ b/misc/github-copilot-cli/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1782601817
+SHA256 (github-copilot-cli-1.0.65/copilot-linux-x64.tar.gz) = da36be29a5afc7c6cef63b25ac10ee1862216a0f5efabed502ed42c4e0f62af8
+SIZE (github-copilot-cli-1.0.65/copilot-linux-x64.tar.gz) = 76344302
+SHA256 (github-copilot-cli-1.0.65/copilot-linux-arm64.tar.gz) = e9f4e570cfe85e7be4a3be4b74eb6564c3f96e97cb1162bcc6282cd1f820c686
+SIZE (github-copilot-cli-1.0.65/copilot-linux-arm64.tar.gz) = 78514928
diff --git a/misc/github-copilot-cli/pkg-descr b/misc/github-copilot-cli/pkg-descr
new file mode 100644
index 000000000000..36847e2f63d6
--- /dev/null
+++ b/misc/github-copilot-cli/pkg-descr
@@ -0,0 +1,4 @@
+GitHub Copilot CLI is a command-line tool 'copilot' for interacting with
+GitHub Copilot AI pair programmer.
+
+copilot is a closed source Linux binary working through Linuxlator.