diff options
| author | Mikhail Teterin <mi@FreeBSD.org> | 2026-09-01 00:52:54 +0000 |
|---|---|---|
| committer | Michael Osipov <michaelo@FreeBSD.org> | 2026-09-13 09:55:00 +0000 |
| commit | 0c790035b4e42878ae34f1495134906cb7fa017a (patch) | |
| tree | 4d865c75168c1c319346b4a6c8ba40b1f0df8ea9 | |
| parent | c23260105dff4697aa3fc70b1a434198880b86d9 (diff) | |
archivers/unhare: new port
unhare extracts the filesystem that Bun embeds in a standalone
executable. It finds the bundle through the ELF section holding it, or
by scanning the whole file where there is no such section -- which is
what the Mach-O and PE executables Bun builds on other systems need --
and writes the bundled modules out as ordinary files.
PR: 298005
| -rw-r--r-- | archivers/Makefile | 1 | ||||
| -rw-r--r-- | archivers/unhare/Makefile | 22 | ||||
| -rw-r--r-- | archivers/unhare/distinfo | 3 | ||||
| -rw-r--r-- | archivers/unhare/pkg-descr | 5 |
4 files changed, 31 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index cae2a8203ac3..69265e8849a0 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -282,6 +282,7 @@ SUBDIR += unarr SUBDIR += undms SUBDIR += unfoo + SUBDIR += unhare SUBDIR += unlzx SUBDIR += unmakeself SUBDIR += unmass diff --git a/archivers/unhare/Makefile b/archivers/unhare/Makefile new file mode 100644 index 000000000000..5169cb49a13b --- /dev/null +++ b/archivers/unhare/Makefile @@ -0,0 +1,22 @@ +PORTNAME= unhare +DISTVERSION= 1.1.1 +CATEGORIES= archivers +MASTER_SITES= https://github.com/UnitedMarsupials/unhare/releases/download/v${DISTVERSION}/ + +MAINTAINER= ports@virtual-estates.net +COMMENT= Extract the filesystem bundled into a Bun standalone binary +WWW= https://github.com/UnitedMarsupials/unhare + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= tar:xz uidfix + +MAKEFILE= BSDmakefile + +TEST_TARGET= test + +PLIST_FILES= bin/${PORTNAME} \ + share/man/man1/${PORTNAME}.1.gz + +.include <bsd.port.mk> diff --git a/archivers/unhare/distinfo b/archivers/unhare/distinfo new file mode 100644 index 000000000000..14a51fe948c9 --- /dev/null +++ b/archivers/unhare/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1788223786 +SHA256 (unhare-1.1.1.tar.xz) = a18af074cfaa535ddc94e8de56b01c8930863ab4bf37598662d85de68b91f097 +SIZE (unhare-1.1.1.tar.xz) = 35224 diff --git a/archivers/unhare/pkg-descr b/archivers/unhare/pkg-descr new file mode 100644 index 000000000000..6237ae94e470 --- /dev/null +++ b/archivers/unhare/pkg-descr @@ -0,0 +1,5 @@ +unhare extracts the filesystem that Bun embeds in a standalone +executable. It finds the bundle through the ELF section holding it, or +by scanning the whole file where there is no such section -- which is +what the Mach-O and PE executables Bun builds on other systems need -- +and writes the bundled modules out as ordinary files. |
