libarchive: add expat rundep, split bsdtar/bsdcpio into its own subpkgs.

--HG--
extra : convert_revision : 9035dde3d2227008951db2851319bf74fe25445d
This commit is contained in:
Juan RP 2010-02-19 17:59:43 +01:00
parent a03eebde6a
commit 8d98494694
6 changed files with 113 additions and 3 deletions

1
srcpkgs/bsdcpio Symbolic link
View File

@ -0,0 +1 @@
libarchive

1
srcpkgs/bsdtar Symbolic link
View File

@ -0,0 +1 @@
libarchive

View File

@ -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
}

View File

@ -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
}

View File

@ -5,11 +5,14 @@ long_desc="${long_desc}
This package contains files for development, headers, static libs, etc." This package contains files for development, headers, static libs, etc."
revision=1
Add_dependency run acl-devel Add_dependency run acl-devel
Add_dependency run zlib-devel Add_dependency run zlib-devel
Add_dependency run bzip2-devel Add_dependency run bzip2-devel
Add_dependency run xz-devel Add_dependency run xz-devel
Add_dependency run openssl-devel Add_dependency run openssl-devel
Add_dependency run expat-devel
Add_dependency run libarchive Add_dependency run libarchive
do_install() do_install()
@ -17,4 +20,6 @@ do_install()
mkdir -p ${DESTDIR}/usr/lib mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/libarchive.*a ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/lib/libarchive.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr
} }

View File

@ -1,10 +1,11 @@
# Template file for 'libarchive' # Template file for 'libarchive'
pkgname=libarchive pkgname=libarchive
version=2.8.0 version=2.8.0
revision=1
distfiles="http://libarchive.googlecode.com/files/$pkgname-$version.tar.gz" distfiles="http://libarchive.googlecode.com/files/$pkgname-$version.tar.gz"
build_style=gnu_configure build_style=gnu_configure
configure_args="--without-xml2 --without-expat" configure_args="--without-xml2"
short_desc="Library to read/write tar, cpio, pax, zip, iso9660, etc." short_desc="Library to read/write several different streaming archive formats"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=e5be324c94e885e449b8ffb30a843372d557966547efff3f1d5f69eb5a119769 checksum=e5be324c94e885e449b8ffb30a843372d557966547efff3f1d5f69eb5a119769
long_desc=" long_desc="
@ -13,7 +14,7 @@ long_desc="
several cpio formats, and both BSD and GNU ar variants. It can also write several cpio formats, and both BSD and GNU ar variants. It can also write
shar archives and read ISO9660 CDROM images and ZIP archives." 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 glibc
Add_dependency run bzip2 Add_dependency run bzip2
Add_dependency run zlib Add_dependency run zlib
@ -21,9 +22,11 @@ Add_dependency run attr
Add_dependency run acl Add_dependency run acl
Add_dependency run openssl Add_dependency run openssl
Add_dependency run xz Add_dependency run xz
Add_dependency run expat
Add_dependency build bzip2-devel Add_dependency build bzip2-devel
Add_dependency build zlib-devel Add_dependency build zlib-devel
Add_dependency build attr-devel Add_dependency build attr-devel
Add_dependency build acl-devel Add_dependency build acl-devel
Add_dependency build openssl-devel Add_dependency build openssl-devel
Add_dependency build xz-devel Add_dependency build xz-devel
Add_dependency build expat-devel