summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-15 22:26:29 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-15 22:26:29 +0000
commit07279386c828d10a6b93d57529e8c252e46e9e5a (patch)
tree9036a64beff94652bd5f68fd245fa555b8c9c57c /archivers
parentade209a669bca8dd55454c56e8a0ea762bc49e05 (diff)
downloadpkgsrc-07279386c828d10a6b93d57529e8c252e46e9e5a.tar.gz
Import bsdtar, a tar-frontend for libarchive. This version is using
either system zlib and bz2 or statically including them, making the package standalone. It is supposed to replace pax/tar for bootstrap.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/bsdtar/DESCR10
-rw-r--r--archivers/bsdtar/Makefile67
-rw-r--r--archivers/bsdtar/PLIST3
3 files changed, 80 insertions, 0 deletions
diff --git a/archivers/bsdtar/DESCR b/archivers/bsdtar/DESCR
new file mode 100644
index 00000000000..bc1adb77c3a
--- /dev/null
+++ b/archivers/bsdtar/DESCR
@@ -0,0 +1,10 @@
+Libarchive is a programming library that can create and read several
+different streaming archive formats, including most popular tar variants
+and several cpio formats. It can also write shar archives and read
+ISO9660 CDROM images.
+
+bdtar is a almost fully GNU tar compatible frontend for libarchive. It
+is one of the fastest tar implementations and supports many advances
+features not found elsewhere.
+
+The pkgsrc version is linked to not dpeend on other parts of pkgsrc.
diff --git a/archivers/bsdtar/Makefile b/archivers/bsdtar/Makefile
new file mode 100644
index 00000000000..e6cfefbed0b
--- /dev/null
+++ b/archivers/bsdtar/Makefile
@@ -0,0 +1,67 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/08/15 22:26:29 joerg Exp $
+#
+
+DISTNAME= bsdtar-2.2.6
+CATEGORIES= archivers
+MASTER_SITES= http://people.freebsd.org/~kientzle/libarchive/src/
+DISTFILES= # empty
+
+NO_CHECKSUM= yes
+
+MAINTAINER= joerg@NetBSD.org
+HOMEPAGE= http://people.freebsd.org/~kientzle/libarchive/
+COMMENT= Fast multi-format tape archiver
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+# Explicitly do not depend on libtool as this can be used
+# as bootstrap dependency.
+#
+#USE_LIBTOOL= yes
+
+.include "../../archivers/bzip2/builtin.mk"
+.include "../../devel/zlib/builtin.mk"
+
+USE_BUILTIN.bzip2=no
+USE_BUILTIN.zlib=no
+
+.if empty(USE_BUILTIN.bzip2:M[yY][eE][sS])
+CPPFLAGS+= -I${WRKDIR}/bzip2
+LDFLAGS+= -L${WRKDIR}/bzip2
+.endif
+.if empty(USE_BUILTIN.zlib:M[yY][eE][sS])
+CPPFLAGS+= -I${WRKDIR}/zlib
+LDFLAGS+= -L${WRKDIR}/zlib
+.endif
+
+FILESDIR.bzip2?= ${.CURDIR}/../../archivers/bzip2/files
+FILESDIR.libarchive?= ${.CURDIR}/../../archivers/libarchive/files
+FILESDIR.zlib?= ${.CURDIR}/../../devel/zlib/files
+
+CONFIGURE_ARGS+= --enable-bsdtar=static
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+do-extract:
+.if empty(USE_BUILTIN.bzip2:M[yY][eE][sS])
+ @${CP} -R ${FILESDIR.bzip2} ${WRKDIR}/bzip2
+.endif
+.if empty(USE_BUILTIN.zlib:M[yY][eE][sS])
+ @${CP} -R ${FILESDIR.zlib} ${WRKDIR}/zlib
+.endif
+ @${CP} -R ${FILESDIR.libarchive} ${WRKSRC}
+
+pre-configure:
+.if empty(USE_BUILTIN.bzip2:M[yY][eE][sS])
+ cd ${WRKDIR}/bzip2 && ${BUILD_MAKE_CMD} libbz2.a
+.endif
+.if empty(USE_BUILTIN.zlib:M[yY][eE][sS])
+ cd ${WRKDIR}/zlib && ${BUILD_MAKE_CMD} libz.a
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bsdtar ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/tar/bsdtar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/bsdtar/PLIST b/archivers/bsdtar/PLIST
new file mode 100644
index 00000000000..76beb14f8ff
--- /dev/null
+++ b/archivers/bsdtar/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/08/15 22:26:29 joerg Exp $
+bin/bsdtar
+man/man1/bsdtar.1