diff options
author | aszlig <aszlig@nix.build> | 2019-09-23 16:30:04 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2019-09-23 16:30:04 +0200 |
commit | dbfb6e17e01136d6756bffb82bc1406782989bd0 (patch) | |
tree | dbd6426c5c6c0c139c5d28c5c99d9cb5dc0cebe2 /pkgs/aszlig/santander | |
parent | ab8fa87b6b4ce9b0684ce5bfc528bbf2e7c59bd0 (diff) |
pkgs/santander: Remove obsolete package
The upstream service was shut down at September 11th 2019, so there really is no need anymore for this package. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/aszlig/santander')
-rw-r--r-- | pkgs/aszlig/santander/default.nix | 98 | ||||
-rw-r--r-- | pkgs/aszlig/santander/pipelight.patch | 13 | ||||
-rw-r--r-- | pkgs/aszlig/santander/winscard.patch | 11 |
3 files changed, 0 insertions, 122 deletions
diff --git a/pkgs/aszlig/santander/default.nix b/pkgs/aszlig/santander/default.nix deleted file mode 100644 index adac0a8d..00000000 --- a/pkgs/aszlig/santander/default.nix +++ /dev/null @@ -1,98 +0,0 @@ -{ stdenv, lib, fetchurl, fetchgit, fetchpatch, runCommand, p7zip, jq -, winePackages, pcsclite -}: - -let - patchedWine = let - libpcsclite = "${lib.getLib pcsclite}/lib/libpcsclite.so"; - in winePackages.minimal.overrideAttrs (drv: { - scard4wine = fetchgit { - url = "git://git.code.sf.net/p/scard4wine/code"; - rev = "c14c02c80bf1f2bb4cedd1f53a3a2ab9c48bed76"; - sha256 = "0ffmbl9mdnaih4h3ggpnzqbih3kgbwl3wv6j1ag5s4czn8gcpdq3"; - }; - - prePatch = (drv.prePatch or "") + '' - cp -t dlls/winscard "$scard4wine/src/"* - sed -i -re 's,"libpcsclite\.so(\.[0-9]+)*","${libpcsclite}",' \ - dlls/winscard/winscard.c - ''; - - patches = (drv.patches or []) ++ [ - ./winscard.patch - (fetchpatch { - url = "http://achurch.org/patch-pile/wine/3.0/disable-unixfs.diff"; - sha256 = "1yj3walwalya9g9aajcp4iygh348npp9dmks66r9dvwbd3fa8wcb"; - }) - ]; - - configureFlags = lib.toList (drv.configureFlags or []) ++ [ - "--disable-unixfs" - ]; - - postConfigure = (drv.postConfigure or "") + '' - # The wineprefix is within the Nix store, so let's ensure wine doesn't - # check the owner of the files: - sed -i -e '/HAVE_GETUID/d' include/config.h - ''; - }); - -in stdenv.mkDerivation rec { - name = "TRAVIC-Sign-${version}"; - version = "3.1.3.0"; - - src = fetchurl { - url = "https://service.santanderbank.de/special/banking/files/" - + "${name}-Installer.exe"; - sha256 = "19a14av3bg6i4iy5q5pa737cwxznqji0lcrapxw0q6qb8rs1rhs7"; - }; - - extensionId = "ilpoejcegjjlgpobjkpjmddkbdkdndaj"; - - buildInputs = [ p7zip jq ]; - - unpackCmd = "7z x -y -otavic-sign $curSrc"; - - phases = [ "unpackPhase" "patchPhase" "installPhase" ]; - - postPatch = '' - jq '.allowed_origins = [ - "chrome-extension://'"$extensionId"'/" - ] | .path = "'"$out/share/libexec/travic-sign/travic-sign"'" - | del(.allowed_extensions)' manifest-firefox.json > host.json - - 7z x -y -oextension FirefoxExtension.xpi - jq '.content_scripts[].matches = ["https://karte.santanderbank.de/*"] | { - # All the object attributes that we want to have (nothing more): - background, web_accessible_resources, content_scripts, page_action, - permissions, author, version, description, name, manifest_version - }' extension/manifest.json > new_manifest.json - mv new_manifest.json extension/manifest.json - (cd extension && 7z a -tzip ../travic-sign.crx *) - ''; - - winePrefix = runCommand "empty-wineprefix" { - buildInputs = [ patchedWine ]; - } '' - export WINEPREFIX="$out" - mkdir -p "$out" - wine wineboot.exe - ''; - - installPhase = '' - libexec="$out/share/libexec/travic-sign" - - install -vD -m 0644 TRAVIC-Sign-Service.exe "$libexec/service.exe" - install -vD -m 0644 host.json \ - "$out/etc/chromium/native-messaging-hosts/travic-sign.json" - install -vD -m 0644 travic-sign.crx \ - "$out/share/chromium/extensions/$extensionId.crx" - - cat > "$libexec/travic-sign" <<EOF - #!${stdenv.shell} - export WINEPREFIX="$winePrefix" - exec ${patchedWine}/bin/wine "$libexec/service.exe" - EOF - chmod +x "$libexec/travic-sign" - ''; -} diff --git a/pkgs/aszlig/santander/pipelight.patch b/pkgs/aszlig/santander/pipelight.patch deleted file mode 100644 index 3a07da72..00000000 --- a/pkgs/aszlig/santander/pipelight.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/windows/pluginloader/pluginloader.c b/src/windows/pluginloader/pluginloader.c -index 9e8556f..c50be2a 100644 ---- a/src/windows/pluginloader/pluginloader.c -+++ b/src/windows/pluginloader/pluginloader.c -@@ -1510,7 +1510,7 @@ void dispatcher(int functionid, Stack &stack){ - NPObject *objectValue; - NPError result; - -- if (variable == NPPVpluginScriptableNPObject) -+ if (variable == NPPVpluginScriptableNPObject && pluginFuncs.getvalue) - result = pluginFuncs.getvalue(instance, variable, &objectValue); - else{ - DBG_WARN("FUNCTION_NPP_GETVALUE_OBJECT - variable %d not allowed", variable); diff --git a/pkgs/aszlig/santander/winscard.patch b/pkgs/aszlig/santander/winscard.patch deleted file mode 100644 index 7dfa04ac..00000000 --- a/pkgs/aszlig/santander/winscard.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/dlls/winscard/winscard.c 1970-01-01 01:00:01.000000000 +0100 -+++ b/dlls/winscard/winscard.c 2016-06-06 01:52:53.631444433 +0200 -@@ -1527,7 +1527,7 @@ - { - LONG lRet; - TRACE(" 0x%08X %p %p %p %p %p %p\n",(unsigned int) hCard,mszReaderNames,pcchReaderLen,pdwState,pdwProtocol,pbAtr,pcbAtrLen); -- if(!pcchReaderLen || !pdwState || !pdwProtocol || !pcbAtrLen) -+ if(!pcchReaderLen || !pcbAtrLen) - lRet = SCARD_E_INVALID_PARAMETER; - else if(!liteSCardStatus) - lRet = SCARD_F_INTERNAL_ERROR; |