summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-06-25 23:49:03 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-06-25 23:49:03 +0000
commit5e85bbd3e6e5268784f3107f168eb55971cfbfac (patch)
tree3c87d60d008e48a06dd6eaf538748583f289470c /app-arch/rpm2targz/files
parentadded bzip2 detection patch (diff)
downloadhistorical-5e85bbd3e6e5268784f3107f168eb55971cfbfac.tar.gz
historical-5e85bbd3e6e5268784f3107f168eb55971cfbfac.tar.bz2
historical-5e85bbd3e6e5268784f3107f168eb55971cfbfac.zip
added bzip2 detection patch
Diffstat (limited to 'app-arch/rpm2targz/files')
-rw-r--r--app-arch/rpm2targz/files/digest-rpm2targz-9.0-r11
-rw-r--r--app-arch/rpm2targz/files/rpm2targz-9.0-bzip2.patch27
2 files changed, 28 insertions, 0 deletions
diff --git a/app-arch/rpm2targz/files/digest-rpm2targz-9.0-r1 b/app-arch/rpm2targz/files/digest-rpm2targz-9.0-r1
new file mode 100644
index 000000000000..154805e3f598
--- /dev/null
+++ b/app-arch/rpm2targz/files/digest-rpm2targz-9.0-r1
@@ -0,0 +1 @@
+MD5 7b8ba680dcbe7e1e4e349698400bcea6 rpm2targz-9.0.tar.gz 2639
diff --git a/app-arch/rpm2targz/files/rpm2targz-9.0-bzip2.patch b/app-arch/rpm2targz/files/rpm2targz-9.0-bzip2.patch
new file mode 100644
index 000000000000..63aa755cc13e
--- /dev/null
+++ b/app-arch/rpm2targz/files/rpm2targz-9.0-bzip2.patch
@@ -0,0 +1,27 @@
+--- rpmoffset.c 2003-06-21 13:25:14.000000000 +0100
++++ rpmoffset.c.new 2003-06-26 00:27:31.000000000 +0100
+@@ -1,4 +1,3 @@
+-
+ /* Find how deeply inside an .RPM the real data is */
+ /* kept, and report the offset in bytes */
+
+@@ -16,8 +15,17 @@
+ {
+ char *buff = malloc(RPMBUFSIZ),*eb,*p;
+ for (p = buff, eb = buff + read(0,buff,RPMBUFSIZ); p < eb; p++)
+- if (*p == '\037' && p[1] == '\213' && p[2] == '\010')
+- printf("%d\n",p - buff),
++ {
++ if (*p == '\037' && p[1] == '\213' && p[2] == '\010')
++ {
++ printf("%d\n",p - buff);
+ exit(0);
++ }
++ else if (*p == 'B' && p[1] == 'Z' && p[2] == 'h' )
++ {
++ printf("%d\n",p - buff);
++ exit(0);
++ }
++ }
+ exit(1);
+ }