commit af3d7f30e1e2aef38cff1173b754a6a06823c751
parent 629adf9c36ce866ebd3639bab8b8ecf5b8bae7f3
Author: torter <koubbamohamedrayan@gmail.com>
Date: Sat, 14 Nov 2026 23:31:05 +0000
app-arch/bsdtar: tar from libarchive, pkgsrc's own turns bsdtar off in libarchive
Diffstat:
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/repo/PROVIDES b/repo/PROVIDES
@@ -26,3 +26,4 @@ devel/p5-gettext -
needs devel/libtirpc sys-libs/bsd-queue
devel/ninja-build devel/samurai
textproc/xmlto -
+archivers/bsdtar app-arch/bsdtar
diff --git a/repo/app-arch/bsdtar b/repo/app-arch/bsdtar
@@ -0,0 +1,12 @@
+desc: tar, cpio and cat for archives, from libarchive; what pkgsrc's own bsdtar builds with copies of zlib and bzip2 that mag does not bring along
+version: 3.8.11
+url: https://www.libarchive.org/downloads/libarchive-${version}.tar.xz
+sha256: a3dc0872b1b39da34dc18ef1b944f0f11ffd37425d70ae04be679279f1cf43d2
+deps: archivers/libarchive devel/zlib archivers/bzip2 archivers/xz archivers/zstd archivers/lz4 dev-build/libtool devel/gmake
+steps:
+ ./configure --prefix=$PREFIX --disable-static --enable-bsdtar=shared --enable-bsdcpio=shared --enable-bsdcat=shared --disable-bsdunzip --without-openssl --without-xml2 --without-expat --without-nettle --without-iconv --without-lz4 --disable-acl --disable-xattr
+ gmake -j$JOBS LIBTOOL=libtool
+ gmake LIBTOOL=libtool DESTDIR=$DESTDIR install
+ ln -sf bsdtar $DESTDIR$PREFIX/bin/tar
+ ln -sf bsdcpio $DESTDIR$PREFIX/bin/cpio
+ rm -rf $DESTDIR$PREFIX/lib $DESTDIR$PREFIX/include $DESTDIR$PREFIX/share