summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2005-11-13 17:51:40 +0000
committerheinz <heinz@pkgsrc.org>2005-11-13 17:51:40 +0000
commit32c7e9cdb132f6be9e8686968798a849ae200272 (patch)
tree75b25ac7be4cc2a1be0d636a2f8cc3fc2e1e9ec1 /misc
parent382e17bb04ceee0fe5be8629c6e3f1e84037b228 (diff)
downloadpkgsrc-32c7e9cdb132f6be9e8686968798a849ae200272.tar.gz
Initial import of esniper 2.14.0.
Esniper is a simple, lightweight command line tool for sniping ebay auctions. It runs on all flavors of Linux, Unix and Windows, and should adapt easily to other operating systems. Pkgsrc changes: - Added patch-aa to let esniper accept eBay passwords with unsafe characters (according to URL-encoding rules). Submitted to the upstream author (esniper-Bugs-1352595).
Diffstat (limited to 'misc')
-rw-r--r--misc/esniper/DESCR3
-rw-r--r--misc/esniper/Makefile20
-rw-r--r--misc/esniper/PLIST3
-rw-r--r--misc/esniper/distinfo6
-rw-r--r--misc/esniper/patches/patch-aa35
5 files changed, 67 insertions, 0 deletions
diff --git a/misc/esniper/DESCR b/misc/esniper/DESCR
new file mode 100644
index 00000000000..7ad3b167d26
--- /dev/null
+++ b/misc/esniper/DESCR
@@ -0,0 +1,3 @@
+Esniper is a simple, lightweight command line tool for sniping ebay auctions.
+It runs on all flavors of Linux, Unix and Windows, and should adapt easily
+to other operating systems.
diff --git a/misc/esniper/Makefile b/misc/esniper/Makefile
new file mode 100644
index 00000000000..cc7a20c3b67
--- /dev/null
+++ b/misc/esniper/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/11/13 17:51:40 heinz Exp $
+#
+
+DISTNAME= esniper-2-14-0
+PKGNAME= esniper-2.14.0
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=esniper/}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= heinz@NetBSD.org
+HOMEPAGE= http://esniper.sourceforge.net/
+COMMENT= Simple, lightweight tool for sniping ebay auctions
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+GNU_CONFIGURE= yes
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/esniper/PLIST b/misc/esniper/PLIST
new file mode 100644
index 00000000000..94b07e9c251
--- /dev/null
+++ b/misc/esniper/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/13 17:51:40 heinz Exp $
+bin/esniper
+man/man1/esniper.1
diff --git a/misc/esniper/distinfo b/misc/esniper/distinfo
new file mode 100644
index 00000000000..e351ee67d45
--- /dev/null
+++ b/misc/esniper/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/11/13 17:51:40 heinz Exp $
+
+SHA1 (esniper-2-14-0.tgz) = 34c4575e4259ef19286c92c4909c8e6010672446
+RMD160 (esniper-2-14-0.tgz) = 4bc6b0332d389d6c7dd62d7cc5955702c4e760c5
+Size (esniper-2-14-0.tgz) = 115471 bytes
+SHA1 (patch-aa) = a4aed86c68a5374f88f204844fe279f71d73a136
diff --git a/misc/esniper/patches/patch-aa b/misc/esniper/patches/patch-aa
new file mode 100644
index 00000000000..4c9415bd267
--- /dev/null
+++ b/misc/esniper/patches/patch-aa
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/11/13 17:51:40 heinz Exp $
+
+--- auction.c.orig Wed Oct 19 13:37:59 2005
++++ auction.c
+@@ -1189,7 +1189,7 @@ ebayLogin(auctionInfo *aip)
+ char *url, *logUrl;
+ pageInfo_t *pp;
+ int ret = 0;
+- char *password;
++ char *password, *escapedPassword;
+
+ if (!(mp = httpGet(LOGIN_1_URL, NULL)))
+ return httpError(aip);
+@@ -1198,11 +1198,18 @@ ebayLogin(auctionInfo *aip)
+
+ urlLen = sizeof(LOGIN_2_URL) + strlen(options.username);
+ password = getPassword();
+- url = malloc(urlLen + strlen(password));
++ if ((escapedPassword = curl_escape(password, strlen(password))) == NULL) {
++ log(("ebayLogin(): Could not URL-encode the password"));
++ freePassword(password);
++ return 1;
++ }
++ freePassword(password);
++
++ url = malloc(urlLen + strlen(escapedPassword));
+ logUrl = malloc(urlLen + 5);
+
+- sprintf(url, LOGIN_2_URL, options.username, password);
+- freePassword(password);
++ sprintf(url, LOGIN_2_URL, options.username, escapedPassword);
++ curl_free(escapedPassword);
+ sprintf(logUrl, LOGIN_2_URL, options.username, "*****");
+
+ mp = httpGet(url, logUrl);