From 4c5d093ae07324b9daea7a9fb9fbf0b3c77a936a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 23 Mar 2014 22:30:48 +0100 Subject: [PATCH] esniper: add patch to fix unrecognized e-bay log-in page --- pkgs/applications/networking/esniper/default.nix | 3 ++- .../networking/esniper/fix-ebay-login.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/networking/esniper/fix-ebay-login.patch diff --git a/pkgs/applications/networking/esniper/default.nix b/pkgs/applications/networking/esniper/default.nix index 50a2764d375..ee263245218 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 . + 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 00000000000..07d0a577a08 --- /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 &&