summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-07-16 23:40:54 +0000
committerxtraeme <xtraeme>2004-07-16 23:40:54 +0000
commit6eb0864053e74bbad9a6614235bcb4820917c8ef (patch)
tree27daf79b76ca917cc1a9c74287e0d86044c6d478 /misc
parent959093e878e548f58e9e3528fb352ddab18948cb (diff)
downloadpkgsrc-6eb0864053e74bbad9a6614235bcb4820917c8ef.tar.gz
Apply patch from PR pkg/26330 by Tobias Nygren to make this work on
Alpha.
Diffstat (limited to 'misc')
-rw-r--r--misc/cksfv/distinfo3
-rw-r--r--misc/cksfv/patches/patch-ag24
2 files changed, 26 insertions, 1 deletions
diff --git a/misc/cksfv/distinfo b/misc/cksfv/distinfo
index 98b7af8510d..6b6eb6c619f 100644
--- a/misc/cksfv/distinfo
+++ b/misc/cksfv/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2003/09/22 12:23:20 wiz Exp $
+$NetBSD: distinfo,v 1.6 2004/07/16 23:40:54 xtraeme Exp $
SHA1 (cksfv-1.3.tar.gz) = be8a2adff70a3787b367cf01f247014113bfc646
Size (cksfv-1.3.tar.gz) = 14925 bytes
@@ -8,3 +8,4 @@ SHA1 (patch-ac) = 4048202c1e2baf8f01cd237e7c16368a0a8d1773
SHA1 (patch-ad) = 99294fce6cdecbe7c256eaef90bc0e3c66096153
SHA1 (patch-ae) = dd36480ccebd825a74554906ca075a82af304cd1
SHA1 (patch-af) = c16ee21d0d45a89d3ae2dac6d647a43cba4671c1
+SHA1 (patch-ag) = 97cfdaef84f41349a96a0d5afd2f2b3b4a722cf7
diff --git a/misc/cksfv/patches/patch-ag b/misc/cksfv/patches/patch-ag
new file mode 100644
index 00000000000..bd945bdabff
--- /dev/null
+++ b/misc/cksfv/patches/patch-ag
@@ -0,0 +1,24 @@
+$NetBSD: patch-ag,v 1.1 2004/07/16 23:40:54 xtraeme Exp $
+
+--- src/crc32.c.orig 2001-07-06 08:33:08.000000000 +0200
++++ src/crc32.c
+@@ -95,17 +95,16 @@ int crc32(register int fd, unsigned long
+ {
+ char buf[BUFFERSIZE], *p;
+ int len = 0, nr;
+- unsigned long crc = ~0, crc32_total = ~0;
++ unsigned long crc = 0xffffffff;
+
+ while ((nr = read(fd, buf, sizeof(buf))) > 0)
+ for (len += nr, p = buf; nr--; ++p) {
+ crc = (crc >> 8) ^ crctable[(crc ^ *p) & 0xff];
+- crc32_total = (crc >> 8) ^ crctable[(crc32_total ^ *p) & 0xff];
+ }
+ if (nr < 0)
+ return 1;
+
+ *main_len = len;
+- *main_val = ~crc;
++ *main_val = (~crc)&0xffffffff;
+ return 0;
+ }