summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Boeck <hanno@gentoo.org>2009-01-12 12:33:00 +0000
committerHanno Boeck <hanno@gentoo.org>2009-01-12 12:33:00 +0000
commitecf9c85c1d53920355a8327279cc2c149f0f3112 (patch)
treefc0e8234a075591ee7cdbf95d66fc239ab1608df /app-arch/unp
parentRemove obsolete versions. (diff)
downloadhistorical-ecf9c85c1d53920355a8327279cc2c149f0f3112.tar.gz
historical-ecf9c85c1d53920355a8327279cc2c149f0f3112.tar.bz2
historical-ecf9c85c1d53920355a8327279cc2c149f0f3112.zip
unp: add support for 7z and lzma
Package-Manager: portage-2.2_rc20/cvs/Linux 2.6.28 x86_64
Diffstat (limited to 'app-arch/unp')
-rw-r--r--app-arch/unp/ChangeLog10
-rw-r--r--app-arch/unp/Manifest10
-rw-r--r--app-arch/unp/files/unp-1.0.15-lzma-7z.patch64
-rw-r--r--app-arch/unp/unp-1.0.15-r1.ebuild28
4 files changed, 106 insertions, 6 deletions
diff --git a/app-arch/unp/ChangeLog b/app-arch/unp/ChangeLog
index b7dbd43d60d1..43f975ddc594 100644
--- a/app-arch/unp/ChangeLog
+++ b/app-arch/unp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-arch/unp
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/unp/ChangeLog,v 1.21 2008/10/09 01:45:18 hanno Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unp/ChangeLog,v 1.22 2009/01/12 12:32:59 hanno Exp $
+
+*unp-1.0.15-r1 (12 Jan 2009)
+
+ 12 Jan 2009; Hanno Boeck <hanno@gentoo.org>
+ +files/unp-1.0.15-lzma-7z.patch, +unp-1.0.15-r1.ebuild:
+ Support lzma and 7z, patch from http://bugs.debian.org/492369.
*unp-1.0.15 (09 Oct 2008)
diff --git a/app-arch/unp/Manifest b/app-arch/unp/Manifest
index 9a8857395b9e..2a00c0564dd5 100644
--- a/app-arch/unp/Manifest
+++ b/app-arch/unp/Manifest
@@ -1,16 +1,18 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX unp-1.0.15-lzma-7z.patch 3122 RMD160 5ab47ea50022f7f980486e52eae4186ab46a3e5b SHA1 095bade63121937276ede2a3cb34eb2317de7487 SHA256 a3392503d31385cde11f2abae9316cebade1420a99a132b37797204b59e3ba92
DIST unp_1.0.14.tar.gz 8859 RMD160 e8405d166b45fad8cf1462d73b47914646986e2e SHA1 43dcab0c11dbbc41e6014d1df47512df281ebea5 SHA256 30caa3b377b14887733fc63fa48ccad7424f159abc40c989d28d00e191cccfbf
DIST unp_1.0.15.tar.gz 10153 RMD160 f6c881ca8969a69964ba3db8dbf45e1efc3ffa46 SHA1 2cc459746af09b939dfd7ba06f32727147654c4c SHA256 915285272297d84ad5f73f6e02c1471b3076a55ad32939e3ab48cd8b8b2365d3
EBUILD unp-1.0.14.ebuild 546 RMD160 ba04a72c9b5310156fbab512eb2d360e83ad8b11 SHA1 f10fc165661129c37fe55131d6c60c3c33f26ca6 SHA256 1934dfcde377809cc01f24d45ba06ab7c8da5dadb633c57e078d178e01257612
+EBUILD unp-1.0.15-r1.ebuild 673 RMD160 e6e55651f6f7d36fa4162199cd78f7c51d07b2fc SHA1 35a8d7752f2c95dc6fa92f7b9e8e8c01003ff274 SHA256 dda58d85763d2b187f88e70a5b78a0a8e8c84fa6be451f5fcd296c4849bbded4
EBUILD unp-1.0.15.ebuild 548 RMD160 1baa09771b6e4735d5bc6005591ae9d3eff23b75 SHA1 dfd5bf3a93a99ceac84f3ef4ab130eb6f4e6b553 SHA256 4ff935b3db672d3151a2ba2da8483413d8c808fc9670e2fce08088d06d64cff5
-MISC ChangeLog 2230 RMD160 6d6798d4c686a540ff6dc77932b24b61815e3806 SHA1 68a715712473291da117f07d63b19f1942cd0d4e SHA256 b2e778e01ac8291b77e07d94e717e68d444dbf0673052ccfe30ae4cf6cce4da8
+MISC ChangeLog 2430 RMD160 c53a50d15b46c32f26dc43428f1532531af7b804 SHA1 eb20ff3b2f0769b70bddff77b024392542d2af82 SHA256 83b6f775950133ee4f898c0d30a2bba2cf06d544662a033715d8c815f7600c20
MISC metadata.xml 217 RMD160 3b01d5dab901ee93217f72b711954d3cccbb1717 SHA1 e304788b60dd2cf214d360a21d267e8635474d98 SHA256 2f5dfc1eb79d2d9ee02663da6e1449f499c3a37b7f4cc2391e18d7789a314669
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkjtYikACgkQr2QksT29OyAQNgCfXkQsuPGspepOqKHTIT2q7boj
-VggAn2smD+tMbDqht/mpSxyuTIy0MIqO
-=du6y
+iEYEARECAAYFAklrOIAACgkQr2QksT29OyDMqQCfYCQK+m5OXe2f8NVyVbqccap9
+qeYAnReXamUSSAWy4sP3/EZCMR9XFwgP
+=Okxf
-----END PGP SIGNATURE-----
diff --git a/app-arch/unp/files/unp-1.0.15-lzma-7z.patch b/app-arch/unp/files/unp-1.0.15-lzma-7z.patch
new file mode 100644
index 000000000000..4f81abf23f23
--- /dev/null
+++ b/app-arch/unp/files/unp-1.0.15-lzma-7z.patch
@@ -0,0 +1,64 @@
+--- /usr/bin/unp 2008-05-18 03:15:15.000000000 +0200
++++ unp 2009-01-09 02:17:04.000000000 +0100
+@@ -38,20 +38,22 @@
+ }
+
+ %pkgmap = (
+- cpio, "afio $or cpio",
+- afio, "afio $or cpio",
+- rpm2cpio, "rpm, afio $or cpio",
+- unshar, sharutils,
+- uudecode, sharutils,
+- PPMd, ppmd,
+- rar, "rar $or unrar $or unrar-free",
+- ar, binutils,
+- unarj, "unarj $or arj",
+- hexbin, macutils,
++ "lzma", "lzma",
++ "7z", "p7zip $or p7zip-full",
++ "cpio", "afio $or cpio",
++ "afio", "afio $or cpio",
++ "rpm2cpio", "rpm, afio $or cpio",
++ "unshar", "sharutils",
++ "uudecode", "sharutils",
++ "PPMd", "ppmd",
++ "rar", "rar $or unrar $or unrar-free",
++ "ar", "binutils",
++ "unarj", "unarj $or arj",
++ "hexbin", "macutils",
+ #macunpack, macunpack,
+- gunzip, gzip,
+- bunzip2, bzip2,
+- formail, "formail, mpack"
++ "gunzip", "gzip",
++ "bunzip2", "bzip2",
++ "formail", "formail, mpack"
+ );
+
+ &print_usage if ($#ARGV<0 || $ARGV[0] eq "-h");
+@@ -153,6 +155,7 @@
+ if ($UNP_FILEstr =~ /CAB file/i) { set_command 'cabextract $UNP_FILE'; }
+ if ($UNP_FILEstr =~ /cpio/i) { set_command('afio -Z -v -i $UNP_FILE','cpio -i -d --verbose $UNP_ARGS < $UNP_FILE'); }
+ if ($UNP_FILEstr =~ /Zip.*archive/i) { set_command 'unzip $UNP_ARGS $UNP_FILE'; }
++ if ($UNP_FILEstr =~ /7-zip.*archive/i) { set_command '7z x $UNP_ARGS $UNP_FILE'; }
+ if ($UNP_FILEstr =~ /Zoo.*archive/i) { set_command 'unzoo -x $UNP_ARGS $UNP_FILE'; }
+ if ($UNP_FILEstr =~ /shell.*archive/i) { set_command 'unshar $UNP_ARGS $UNP_FILE'; }
+ if ($UNP_FILEstr =~ /Transport Neutral Encapsulation Format/i) { set_command 'tnef -v $UNP_ARGS $UNP_FILE'; }
+@@ -214,12 +217,12 @@
+
+ # check also for _tar, because of broken filenames
+ if ($UNP_FILE =~ /(\.|_)tar$/i) { set_command 'tar -xvf $UNP_FILE $UNP_ARGS'; }
+- if ($UNP_FILE =~ /(\.|_)rpm$/i) { set_command 'rpm2cpio < $UNP_FILE | cpio -i -d --verbose $UNP_ARGS';}
+- if ($UNP_FILE =~ /(\.|_)tar\.gz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
++ if ($UNP_FILE =~ /(\.|_)rpm$/i) { set_command 'rpm2cpio < $UNP_FILE | cpio -i -d --verbose $UNP_ARGS';}
++ if ($UNP_FILE =~ /(\.|_)tar\.gz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
+ if ($UNP_FILE =~ /(\.|_)tar\.bz2$/i) { set_command 'bunzip2 -c $UNP_FILE | tar -xvf - $UNP_ARGS'; }
+-
+- if ($UNP_FILE =~ /\.tgz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
+- if ($UNP_FILE =~ /\.(tzo|tar\.lzop)$/i) { set_command 'lzop -v -d $UNP_FILE | tar -xv $UNP_ARGS'; }
++ if ($UNP_FILE =~ /\.tgz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
++ if ($UNP_FILE =~ /\.(tzo|tar\.lzop)$/i) { set_command 'lzop -v -d $UNP_FILE | tar -xv $UNP_ARGS'; }
++ if ($UNP_FILE =~ /(\.|_)tar\.lzma$/i) { set_command 'lzma -cd $UNP_FILE | tar -xvf - $UNP_ARGS'; }
+ if ($UNP_FILE =~ /\.rar$/i) { set_command('rar x $UNP_ARGS $UNP_FILE || rar x -av- $UNP_ARGS $UNP_FILE','unrar x $UNP_ARGS $UNP_FILE || unrar x -av- $UNP_ARGS $UNP_FILE'); }
+ if ($UNP_FILE =~ /\.(ar|deb)$/i) { set_command 'ar -x -v $UNP_FILE $UNP_ARGS'; }
+ if ($UNP_FILE =~ /\.l(ha|zh)$/i) { set_command 'lha x $UNP_ARGS $UNP_FILE'; }
diff --git a/app-arch/unp/unp-1.0.15-r1.ebuild b/app-arch/unp/unp-1.0.15-r1.ebuild
new file mode 100644
index 000000000000..b018e5abe78a
--- /dev/null
+++ b/app-arch/unp/unp-1.0.15-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unp/unp-1.0.15-r1.ebuild,v 1.1 2009/01/12 12:32:59 hanno Exp $
+
+inherit eutils
+
+DESCRIPTION="Script for unpacking various file formats"
+HOMEPAGE="http://packages.qa.debian.org/u/unp.html"
+SRC_URI="mirror://debian/pool/main/u/unp/${PN}_${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+IUSE=""
+DEPEND="dev-lang/perl"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-lzma-7z.patch" || die "epatch failed"
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+ dobin unp
+}