about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/applications/networking/esniper/default.nix3
-rw-r--r--pkgs/applications/networking/esniper/fix-ebay-login.patch13
2 files changed, 15 insertions, 1 deletions
diff --git a/pkgs/applications/networking/esniper/default.nix b/pkgs/applications/networking/esniper/default.nix
index 50a2764d375c..ee263245218f 100644
--- a/pkgs/applications/networking/esniper/default.nix
+++ b/pkgs/applications/networking/esniper/default.nix
@@ -11,7 +11,8 @@ stdenv.mkDerivation {
   buildInputs = [ openssl curl ];
 
   # Add support for CURL_CA_BUNDLE variable.
-  patches = [ ./find-ca-bundle.patch ];
+  # Fix <http://sourceforge.net/p/esniper/bugs/648/>.
+  patches = [ ./find-ca-bundle.patch ./fix-ebay-login.patch ];
 
   postInstall = ''
     sed <"frontends/snipe" >"$out/bin/snipe" \
diff --git a/pkgs/applications/networking/esniper/fix-ebay-login.patch b/pkgs/applications/networking/esniper/fix-ebay-login.patch
new file mode 100644
index 000000000000..07d0a577a08c
--- /dev/null
+++ b/pkgs/applications/networking/esniper/fix-ebay-login.patch
@@ -0,0 +1,13 @@
+--- esniper-orig/auction.c	2014-03-23 22:28:46.684289574 +0100
++++ esniper/auction.c	2014-03-23 22:24:00.540568653 +0100
+@@ -424,7 +424,9 @@
+ 		if ((pp->srcId && !strcmp(pp->srcId, "SignInAlertSupressor"))||
+ 		    (pp->pageName &&
+ 			(!strncasecmp(pp->pageName, "MyeBay", 6) ||
+-			 !strncasecmp(pp->pageName, "My eBay", 7))
++                        !strncasecmp(pp->pageName, "My eBay", 7) ||
++                        !strncasecmp(pp->pageName, "Watch list", 10) ||
++                        !strncasecmp(pp->pageName, "User Agreement", 10))
+ 		    ))
+ 			loginTime = time(NULL);
+ 		else if (pp->pageName &&