pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/esniper Initial import of esniper 2.14.0.
details: https://anonhg.NetBSD.org/pkgsrc/rev/5e2263401d41
branches: trunk
changeset: 503056:5e2263401d41
user: heinz <heinz%pkgsrc.org@localhost>
date: Sun Nov 13 17:51:40 2005 +0000
description:
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:
misc/esniper/DESCR | 3 +++
misc/esniper/Makefile | 20 ++++++++++++++++++++
misc/esniper/PLIST | 3 +++
misc/esniper/distinfo | 6 ++++++
misc/esniper/patches/patch-aa | 35 +++++++++++++++++++++++++++++++++++
5 files changed, 67 insertions(+), 0 deletions(-)
diffs (87 lines):
diff -r d013543d3eed -r 5e2263401d41 misc/esniper/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/esniper/DESCR Sun Nov 13 17:51:40 2005 +0000
@@ -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 -r d013543d3eed -r 5e2263401d41 misc/esniper/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/esniper/Makefile Sun Nov 13 17:51:40 2005 +0000
@@ -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@localhost
+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 -r d013543d3eed -r 5e2263401d41 misc/esniper/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/esniper/PLIST Sun Nov 13 17:51:40 2005 +0000
@@ -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 -r d013543d3eed -r 5e2263401d41 misc/esniper/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/esniper/distinfo Sun Nov 13 17:51:40 2005 +0000
@@ -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 -r d013543d3eed -r 5e2263401d41 misc/esniper/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/esniper/patches/patch-aa Sun Nov 13 17:51:40 2005 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index