diff --git a/srcpkgs/bsdcpio b/srcpkgs/bsdcpio new file mode 120000 index 00000000000..6e93d9cc1c0 --- /dev/null +++ b/srcpkgs/bsdcpio @@ -0,0 +1 @@ +libarchive \ No newline at end of file diff --git a/srcpkgs/bsdtar b/srcpkgs/bsdtar new file mode 120000 index 00000000000..6e93d9cc1c0 --- /dev/null +++ b/srcpkgs/bsdtar @@ -0,0 +1 @@ +libarchive \ No newline at end of file diff --git a/srcpkgs/libarchive/bsdcpio.template b/srcpkgs/libarchive/bsdcpio.template new file mode 100644 index 00000000000..897382d4ecb --- /dev/null +++ b/srcpkgs/libarchive/bsdcpio.template @@ -0,0 +1,49 @@ +# Template file for 'bsdcpio'. +# +short_desc="BSD cpio(1) using libarchive" +long_desc=" + This package provides an interface similar to cpio(1), but using libarchive + as the backend for the archiving and extraction of data. It can read CPIO, + tar, pax, zip, jar, ar, and ISO9660 images and provides similar features to + the bsdtar package. Features include: + + * Automatic format detection. Libarchive automatically detects the + compression (none/gzip/bzip2) and format (old tar, ustar, gnutar, + pax, cpio, iso9660, zip) when reading archives. It does this for + any data source. + + * Pax Interchange Format Support. This is a POSIX/SUSv3 extension to + the old \"ustar\" tar format that adds arbitrary extended attributes + to each entry. Does everything that GNU tar format does, only + better. + + * Handles file flags, ACLs, arbitrary pathnames, etc. Pax interchange + format supports key/value attributes using an easily-extensible + technique. Arbitrary pathnames, group names, user names, file sizes + are part of the POSIX standard; libarchive extends this with + support for file flags, ACLs, and arbitrary device numbers. + + * GNU tar support. Libarchive reads most GNU tar archives. If there + is demand, this can be improved further." + +Add_dependency run glibc +Add_dependency run acl +Add_dependency run attr +Add_dependency run openssl +Add_dependency run expat +Add_dependency run xz +Add_dependency run bzip2 +Add_dependency run zlib +Add_dependency run libarchive + +do_install() +{ + install -d ${DESTDIR}/usr/share/man/man1 + install -d ${DESTDIR}/usr/share/man/man5 + + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/share/man/man1/bsdcpio.1 \ + ${DESTDIR}/usr/share/man/man1 + mv ${SRCPKGDESTDIR}/usr/share/man/man5/cpio.5 \ + ${DESTDIR}/usr/share/man/man5 +} diff --git a/srcpkgs/libarchive/bsdtar.template b/srcpkgs/libarchive/bsdtar.template new file mode 100644 index 00000000000..162aa535fdd --- /dev/null +++ b/srcpkgs/libarchive/bsdtar.template @@ -0,0 +1,51 @@ +# Template file for 'bsdtar'. +# +short_desc="BSD tar(1) using libarchive" +long_desc=" + The bsdtar program has a number of advantages over previous tar + implementations: + + * Library. Since the core functionality is in a library, it can be + used by other tools, such as pkg_add. + + * Automatic format detection. Libarchive automatically detects the + compression (none/gzip/bzip2) and format (old tar, ustar, gnutar, + pax, cpio, iso9660, zip) when reading archives. It does this for + any data source. + + * Pax Interchange Format Support. This is a POSIX/SUSv3 extension to + the old \"ustar\" tar format that adds arbitrary extended attributes + to each entry. Does everything that GNU tar format does, only + better. + + * Handles file flags, ACLs, arbitrary pathnames, etc. Pax interchange + format supports key/value attributes using an easily-extensible + technique. Arbitrary pathnames, group names, user names, file sizes + are part of the POSIX standard; libarchive extends this with + support for file flags, ACLs, and arbitrary device numbers. + + * GNU tar support. Libarchive reads most GNU tar archives. If there + is demand, this can be improved further." + +Add_dependency run glibc +Add_dependency run acl +Add_dependency run attr +Add_dependency run openssl +Add_dependency run expat +Add_dependency run xz +Add_dependency run bzip2 +Add_dependency run zlib +Add_dependency run libarchive + +do_install() +{ + install -d ${DESTDIR}/usr/bin + install -d ${DESTDIR}/usr/share/man/man1 + install -d ${DESTDIR}/usr/share/man/man5 + + mv ${SRCPKGDESTDIR}/usr/bin/bsdtar ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/share/man/man1/bsdtar.1 \ + ${DESTDIR}/usr/share/man/man1 + mv ${SRCPKGDESTDIR}/usr/share/man/man5/tar.5 \ + ${DESTDIR}/usr/share/man/man5 +} diff --git a/srcpkgs/libarchive/libarchive-devel.template b/srcpkgs/libarchive/libarchive-devel.template index c29384ee9b4..ede9e9d83f9 100644 --- a/srcpkgs/libarchive/libarchive-devel.template +++ b/srcpkgs/libarchive/libarchive-devel.template @@ -5,11 +5,14 @@ long_desc="${long_desc} This package contains files for development, headers, static libs, etc." +revision=1 + Add_dependency run acl-devel Add_dependency run zlib-devel Add_dependency run bzip2-devel Add_dependency run xz-devel Add_dependency run openssl-devel +Add_dependency run expat-devel Add_dependency run libarchive do_install() @@ -17,4 +20,6 @@ do_install() mkdir -p ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr mv ${SRCPKGDESTDIR}/usr/lib/libarchive.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr } diff --git a/srcpkgs/libarchive/template b/srcpkgs/libarchive/template index 316596bcaa6..bca713ea2a2 100644 --- a/srcpkgs/libarchive/template +++ b/srcpkgs/libarchive/template @@ -1,10 +1,11 @@ # Template file for 'libarchive' pkgname=libarchive version=2.8.0 +revision=1 distfiles="http://libarchive.googlecode.com/files/$pkgname-$version.tar.gz" build_style=gnu_configure -configure_args="--without-xml2 --without-expat" -short_desc="Library to read/write tar, cpio, pax, zip, iso9660, etc." +configure_args="--without-xml2" +short_desc="Library to read/write several different streaming archive formats" maintainer="Juan RP " checksum=e5be324c94e885e449b8ffb30a843372d557966547efff3f1d5f69eb5a119769 long_desc=" @@ -13,7 +14,7 @@ long_desc=" several cpio formats, and both BSD and GNU ar variants. It can also write shar archives and read ISO9660 CDROM images and ZIP archives." -subpackages="$pkgname-devel" +subpackages="bsdtar bsdcpio $pkgname-devel" Add_dependency run glibc Add_dependency run bzip2 Add_dependency run zlib @@ -21,9 +22,11 @@ Add_dependency run attr Add_dependency run acl Add_dependency run openssl Add_dependency run xz +Add_dependency run expat Add_dependency build bzip2-devel Add_dependency build zlib-devel Add_dependency build attr-devel Add_dependency build acl-devel Add_dependency build openssl-devel Add_dependency build xz-devel +Add_dependency build expat-devel