summaryrefslogtreecommitdiff
path: root/misc/bidwatcher
diff options
context:
space:
mode:
authortron <tron>2002-12-19 11:45:20 +0000
committertron <tron>2002-12-19 11:45:20 +0000
commit4b982b419252c540f570f18b9d76404db58f90b4 (patch)
treeeca3c616906451842fcd84ec7ba042ba32adebed /misc/bidwatcher
parent312b82ee502d9cec9be8b49b0630b7b633005790 (diff)
downloadpkgsrc-4b982b419252c540f570f18b9d76404db58f90b4.tar.gz
Use a patch from the CVS repository to fix problem with adding auctions.
Bump package revision.
Diffstat (limited to 'misc/bidwatcher')
-rw-r--r--misc/bidwatcher/Makefile3
-rw-r--r--misc/bidwatcher/distinfo3
-rw-r--r--misc/bidwatcher/patches/patch-aa111
3 files changed, 115 insertions, 2 deletions
diff --git a/misc/bidwatcher/Makefile b/misc/bidwatcher/Makefile
index e6311c429c6..af2ff4b4bea 100644
--- a/misc/bidwatcher/Makefile
+++ b/misc/bidwatcher/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2002/11/25 21:13:36 jlam Exp $
+# $NetBSD: Makefile,v 1.20 2002/12/19 11:45:20 tron Exp $
DISTNAME= bidwatcher-1.3.6
+PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bidwatcher/}
diff --git a/misc/bidwatcher/distinfo b/misc/bidwatcher/distinfo
index c3114af4cbd..56fe1189115 100644
--- a/misc/bidwatcher/distinfo
+++ b/misc/bidwatcher/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.16 2002/10/27 21:54:25 tron Exp $
+$NetBSD: distinfo,v 1.17 2002/12/19 11:45:21 tron Exp $
SHA1 (bidwatcher-1.3.6.tar.gz) = b60bfa71203ef865489f5b95fec0eff90c92c998
Size (bidwatcher-1.3.6.tar.gz) = 145239 bytes
+SHA1 (patch-aa) = ff0153c4b76c74c4c3349081c47c97a1a58e4f72
diff --git a/misc/bidwatcher/patches/patch-aa b/misc/bidwatcher/patches/patch-aa
new file mode 100644
index 00000000000..35340b7b818
--- /dev/null
+++ b/misc/bidwatcher/patches/patch-aa
@@ -0,0 +1,111 @@
+$NetBSD: patch-aa,v 1.12 2002/12/19 11:45:21 tron Exp $
+
+--- helpers.cpp.orig Mon Oct 21 03:56:16 2002
++++ helpers.cpp Thu Dec 19 12:42:54 2002
+@@ -49,21 +49,25 @@
+
+ char *CheckPrice="0123456789.$,"; // Characters allowed in a price
+
+-char *SearchOps[2][16]={{ "Starts at", // 1: +1
+- "Currently", // 2: +1
+- "First bid", // 3: +1
+- "Quantity", // 4: +1
+- "# of bids", // 5: +1
+- "Time left", // 6: +1
+- "Location", // 7: +1
+- "Started", // 8: +1
+- "Ends", // 9: +1
+- "Seller (Rating)", // 10: +1
+- "High bid", // 11: +1
+- "Bid increment", // 12: +1
+- "This is a ", // 13: +1
+- "Lowest", // 14: +1
+- "(reserve ", // 15:
++char *SearchOps[2][20]={{ "Starts at", // 1
++ "Currently", // 2
++ "First bid", // 3
++ "Quantity", // 4
++ "# of bids", // 5
++ "Time left", // 6
++ "Location", // 7
++ "Started", // 8
++ "Ends", // 9
++ "Seller (Rating)", // 10
++ "High bid", // 11
++ "Bid increment", // 12
++ "This is a ", // 13
++ "Lowest", // 14
++ "(reserve ", // 15
++ "Current bid", // 16
++ "Starting bid", // 17
++ "Seller (rating)", // 18
++ "High bidder", // 19
+ "*"},
+ /* eBay Motors */
+ { "Currently", // 1
+@@ -183,6 +187,8 @@
+ if (!strcmp(temp, "nbsp") || !strcmp(temp, "copy") ||
+ !strcmp(temp, "#8260") || !strcmp(temp, "#12288"))
+ return ' ';
++ if (!strcmp(temp, "middot")) // This should be trademark
++ return ' ';
+ if (!strcmp(temp, "#8482")) // This should be trademark
+ return ' ';
+ if (!strcmp(temp, "#8220")) // lower double-quote
+@@ -622,13 +628,13 @@
+ }
+
+ // returns a 0-terminated array of ids of auctions in which we've participated
+-unsigned int * ParseList2(char * Buff)
++unsigned long * ParseList2(char * Buff)
+ {
+ char lineBuff[2048];
+ int nlpos;
+
+- unsigned int ids[512], numids=0;
+- unsigned int *retval;
++ unsigned long ids[512], numids=0;
++ unsigned long *retval;
+ unsigned int i;
+
+
+@@ -648,7 +654,7 @@
+ }
+ }
+
+- retval = (unsigned int *) malloc(sizeof(unsigned int)*(numids+1));
++ retval = (unsigned long *) malloc(sizeof(unsigned long)*(numids+1));
+ for(i=0; i < numids; i++) retval[i] = ids[i];
+ retval[i] = 0;
+ return retval;
+@@ -1010,6 +1016,7 @@
+ case TYPE_EBAY:
+ switch (ReturnBidVarNum(LineData, auc_type)) {
+ case 1:
++ case 16:
+ case 14: // "Lowest" -shows up on motorsnotcars
+ case 2: // current price
+ if (CurrentBid==0) {
+@@ -1027,6 +1034,7 @@
+ streamBuff.unget();
+ }
+ break;
++ case 17:
+ case 3: // first bid
+ if (!FirstBid) {
+ streamBuff.getline(LineData, 1024, '\n');
+@@ -1085,12 +1093,14 @@
+ translate_date(Ends);
+ }
+ break;
++ case 18:
+ case 10: // seller id
+ if (!Seller[0]) {
+ streamBuff.getline(LineData, 1024, '\n');
+ strncpy(Seller, LineData, 75);
+ }
+ break;
++ case 19:
+ case 11: // high bidder id
+ if (!HighBidder[0]) {
+ streamBuff.getline(LineData, 1024, '\n');