summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2009-01-12 12:33:00 +0000
committerHanno Böck <hanno@gentoo.org>2009-01-12 12:33:00 +0000
commit569b63f628bd6f12c4edde353b9db758a72dd32d (patch)
tree83da41e451f28f1a7499c1b6574235addffff95b /app-arch/unp/files
parentRemove obsolete versions. (diff)
downloadgentoo-2-569b63f628bd6f12c4edde353b9db758a72dd32d.tar.gz
gentoo-2-569b63f628bd6f12c4edde353b9db758a72dd32d.tar.bz2
gentoo-2-569b63f628bd6f12c4edde353b9db758a72dd32d.zip
unp: add support for 7z and lzma
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)
Diffstat (limited to 'app-arch/unp/files')
-rw-r--r--app-arch/unp/files/unp-1.0.15-lzma-7z.patch64
1 files changed, 64 insertions, 0 deletions
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'; }