aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2026-04-18 00:29:04 +0000
committerJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2026-04-18 00:30:11 +0000
commit4521f52774d5423339c1a2ce9c5734c0f5a1e644 (patch)
tree2a5e0ab295143ba4b0c0d71ec93c3bd1e52a22c3
parentaee4262e55a9ab39ee7e1e021a6b9256742a4068 (diff)
sysutils/bin: New port: Effortless binary manager
bin is a lightweight, cross-platform binary manager designed to simplify the installation and management of single-binary applications, which are gaining popularity due to languages such as Go, Rust or Deno. Features: * Zero Configuration * No Root Required * Version Management * Lightweight * Multiple Sources WWW: https://github.com/marcosnils/bin/
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/bin/Makefile33
-rw-r--r--sysutils/bin/distinfo5
-rw-r--r--sysutils/bin/pkg-descr11
4 files changed, 50 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 1238a20ffe8c..8232bf14f65e 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -123,6 +123,7 @@
SUBDIR += bhyve-firmware
SUBDIR += bhyve-rc
SUBDIR += bhyvemgr
+ SUBDIR += bin
SUBDIR += biosfont
SUBDIR += bkpupsd
SUBDIR += bksh
diff --git a/sysutils/bin/Makefile b/sysutils/bin/Makefile
new file mode 100644
index 000000000000..ab9232b4b622
--- /dev/null
+++ b/sysutils/bin/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= bin
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.24.3
+CATEGORIES= sysutils
+
+MAINTAINER= dtxdf@FreeBSD.org
+COMMENT= Effortless binary manager
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+USE_GITHUB= yes
+GH_ACCOUNT= marcosnils
+
+GO_MOD_DIST= github
+GO_MODULE= github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_BUILDFLAGS= -ldflags "\
+ -X 'main.version=${DISTVERSIONFULL}' \
+ -X 'main.commit=${GITID}' \
+ -X 'main.date=${BUILD_DATE}' \
+ -X 'main.BuiltBy=FreeBSD Ports'"
+CGO_ENABLED= 0
+
+PLIST_FILES= bin/${PORTNAME}
+#
+# Run 'git checkout ${DISTVERSIONPREFIX}${DISTVERSION} && git rev-parse --short HEAD'
+# in the Bin repository to get the value of GITID.
+GITID= cc30b9bd761c71afbdbc30ee9a768efc84b564be
+
+BUILD_DATE= $$(date -u "+%Y-%m-%dT%H:%M:%SZ")
+
+.include <bsd.port.mk>
diff --git a/sysutils/bin/distinfo b/sysutils/bin/distinfo
new file mode 100644
index 000000000000..3665ccb879df
--- /dev/null
+++ b/sysutils/bin/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1776468509
+SHA256 (go/sysutils_bin/marcosnils-bin-v0.24.3_GH0/go.mod) = 12d6741a92493599395e40faf98ef37b00d34e9d262f6aa697310a534a948031
+SIZE (go/sysutils_bin/marcosnils-bin-v0.24.3_GH0/go.mod) = 3653
+SHA256 (go/sysutils_bin/marcosnils-bin-v0.24.3_GH0/marcosnils-bin-v0.24.3_GH0.tar.gz) = b108b87f59ed7c25c14bf34a7195d23c92443c5afd0cf1179020bf44c9052790
+SIZE (go/sysutils_bin/marcosnils-bin-v0.24.3_GH0/marcosnils-bin-v0.24.3_GH0.tar.gz) = 43387
diff --git a/sysutils/bin/pkg-descr b/sysutils/bin/pkg-descr
new file mode 100644
index 000000000000..4c851f5391d8
--- /dev/null
+++ b/sysutils/bin/pkg-descr
@@ -0,0 +1,11 @@
+bin is a lightweight, cross-platform binary manager designed to
+simplify the installation and management of single-binary applications,
+which are gaining popularity due to languages such as Go, Rust or Deno.
+
+Features:
+
+* Zero Configuration
+* No Root Required
+* Version Management
+* Lightweight
+* Multiple Sources