From nobody Mon Mar 07 13:19:49 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0DCA219F4D3E; Mon, 7 Mar 2022 13:19:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KBzZs6gPWz4nS7; Mon, 7 Mar 2022 13:19:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646659190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Rd3oxhFxMQIeQQCxWGuY9y2Klj2IgNlkWpFEHJpFoyU=; b=Rf4mDiECW3Hlu7Hj3YpfsmxuHpaPaSRDRO4AGd+lMnm7TpzrHXf5ruxjj1tE6w7znYKp8q DtoQyLMQ7JpQpvMuQJ1VPWCC6mZJ1GNTBtoHRElm3suwX+yNli8E1nU5vTIBL2siwpBaq/ fBIi5ifUB8wNdFPjxhcsAiURQFaiH9635yqeUVTyN5IyOeB++L4ERBiMNKAJ82jiIml4O7 7xWKIjMc3VXRePizg2MttDYoTiND4IeKja/haFaL9ozHGUanWlr9632Uzj0GtIURI2UTaJ LoeF+qmoO29t6KawKsEDkLyJXW4WsBYqs2FJrDGr8517odBL6OEIqa/OMlX0Iw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C138DD33; Mon, 7 Mar 2022 13:19:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 227DJnFm046954; Mon, 7 Mar 2022 13:19:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 227DJng7046953; Mon, 7 Mar 2022 13:19:49 GMT (envelope-from git) Date: Mon, 7 Mar 2022 13:19:49 GMT Message-Id: <202203071319.227DJng7046953@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason E. Hale" Subject: git: be1d9733d125 - main - finance/ktoblzcheck: Update bank data List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhale X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: be1d9733d1258d1f1565412164f2844e3bd26679 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646659190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Rd3oxhFxMQIeQQCxWGuY9y2Klj2IgNlkWpFEHJpFoyU=; b=cyGwaYhRkPQZ6AS4+LVhDgUoFfs/FZcLZnGiwXw2JCTBhsHanlGiHE/NNfYTSsMclZRSei S5aGqGsRWG0XRondDSKA1AsIumFbDGLIud+vegWjrcRmq+FLjAfVFUgg5didzeh33AKp/e 0xJImakTg4V1OBv/D/a7U+hWipYC7yuCGhEqtQ2Lt/T93leJfl97ay6BnzS1EHMr70UTC9 XJF5K2+vHmr2skYJ+rGWVv8H6JBwfNfDH5U7+/UVxp4WGR522I/34ST/miGzwybSE/AHRr cBH1mUNznwRfn65gdzH8pJPPzlzXkXq55EQhtKYmQir7WpciWgyf4aLfEcnf+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646659190; a=rsa-sha256; cv=none; b=PAHQEtZq7X68tB34p2KX1nHD7Y36465Ku/06+fc6BEN0Nuq1/EKgFbcHk6/eXgVpH02qTr FuQAuONA/7iZ810/HOhyGooZ/IcuS5dcbY9pH24IdaUP7NKvnUehN0yleZOa0YtIE6/WqQ 1a/zIw910b5Cjj4ckG2mpuQcGjKR/13Kbc53tQlyy+bwYYFFuRZ4JfBag2wKKjgjK5HlZQ DEmEuagBQOBATFTzox9yx9Aq14V10jgsWEjDdvFdXUHASZPqw9A1BisI2cEER7dSEzwyDX tpVP/EYpIw198STdPV1fyQy4izjDliInfNaTwP57H5KO602lgdZzoHIhUHD8Bw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=be1d9733d1258d1f1565412164f2844e3bd26679 commit be1d9733d1258d1f1565412164f2844e3bd26679 Author: Jason E. Hale AuthorDate: 2022-03-07 13:09:43 +0000 Commit: Jason E. Hale CommitDate: 2022-03-07 13:19:36 +0000 finance/ktoblzcheck: Update bank data Bank data is valid from 2022-03-07 - 2022-06-05. Update check digit calculation for methods 45, B1, and C2. Add check digit caluclation for method E4. MFH: 2022Q1 --- finance/ktoblzcheck/Makefile | 4 +- finance/ktoblzcheck/distinfo | 6 +- finance/ktoblzcheck/files/patch-src_lib_methods.cc | 83 ++++++++++++++++++++++ 3 files changed, 88 insertions(+), 5 deletions(-) diff --git a/finance/ktoblzcheck/Makefile b/finance/ktoblzcheck/Makefile index 0ab0a4180ef9..410f29269c9a 100644 --- a/finance/ktoblzcheck/Makefile +++ b/finance/ktoblzcheck/Makefile @@ -2,7 +2,7 @@ PORTNAME= ktoblzcheck PORTVERSION= 1.53 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= finance german MASTER_SITES= SF/${PORTNAME} \ LOCAL/jhale:bankdata @@ -24,7 +24,7 @@ CMAKE_OFF= ENABLE_BANKDATA_DOWNLOAD PLIST_SUB= BANKDATA_DATE=${BANKDATA_DATE} PORTDOCS= README.md -BANKDATA_DATE= 20211206 +BANKDATA_DATE= 20220307 OPTIONS_DEFINE= DOCS DOXYGEN OPTIONS_SUB= yes diff --git a/finance/ktoblzcheck/distinfo b/finance/ktoblzcheck/distinfo index c1241569e969..1ba71bbd02d3 100644 --- a/finance/ktoblzcheck/distinfo +++ b/finance/ktoblzcheck/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1645536770 +TIMESTAMP = 1646591314 SHA256 (ktoblzcheck-1.53.tar.gz) = 18b9118556fe83240f468f770641d2578f4ff613cdcf0a209fb73079ccb70c55 SIZE (ktoblzcheck-1.53.tar.gz) = 531459 -SHA256 (ktoblzcheck-bankdata-20211206.tar.gz) = 45dad24fc88259d86365c137b3fb84c08ef89689bf5bec8588cad22178e27ef7 -SIZE (ktoblzcheck-bankdata-20211206.tar.gz) = 304864 +SHA256 (ktoblzcheck-bankdata-20220307.tar.gz) = 87fb315c76756366a2c75abc6b078a06af93e3b90faf8044cf8c1c6436dc9466 +SIZE (ktoblzcheck-bankdata-20220307.tar.gz) = 302328 diff --git a/finance/ktoblzcheck/files/patch-src_lib_methods.cc b/finance/ktoblzcheck/files/patch-src_lib_methods.cc new file mode 100644 index 000000000000..58e7293ef25e --- /dev/null +++ b/finance/ktoblzcheck/files/patch-src_lib_methods.cc @@ -0,0 +1,83 @@ +Update methods 45, B1, and C2. Implement method E4. +https://sourceforge.net/p/ktoblzcheck/code/merge-requests/14/ + +--- src/lib/methods.cc.orig 2020-01-20 15:07:55 UTC ++++ src/lib/methods.cc +@@ -530,15 +530,15 @@ AccountNumberCheck::Result method_44(const int *accoun + return algo01(11, weight, false, 10, account); + } + ++// method 45 was extended for due-date 2018-06-04 + AccountNumberCheck::Result method_45(const int *account, int *weight) + { +- // some numbers do not have a checksum +- if (0 == account[0] || 1 == account[4]) { ++ // accountIDs starting with "0" or "48" do not have a check digit ++ // accountIDs that have "1" as the fifth digit do not have a check digit ++ if (0 == account[0] || 1 == account[4] || (4 == account[0] && 8 == account[1])) { + return AccountNumberCheck::OK; + } +- +- number2Array("2121212120", weight); +- return algo01(10, weight, true, 10, account); ++ return method_00(account, weight); + } + + AccountNumberCheck::Result method_46(const int *account, int *weight) +@@ -1644,13 +1644,13 @@ AccountNumberCheck::Result method_B0(const int *accoun + // Checked with Bundesbank-Testnumbers + AccountNumberCheck::Result method_B1(const int *account, int *weight) + { +- number2Array("1371371370", weight); +- if (AccountNumberCheck::OK == algo01(10, weight, false, 10, account)) { +- return AccountNumberCheck::OK; // variant 1 (method "05") ++ if (AccountNumberCheck::OK == method_05(account, weight)) { ++ return AccountNumberCheck::OK; // variant 1 + } +- number2Array("1731731730", weight); +- return algo01(10, weight, false, 10, account); +- // variant 2 (method "01") ++ if (AccountNumberCheck::OK == method_01(account, weight)) { ++ return AccountNumberCheck::OK; // variant 2 ++ } ++ return method_00(account, weight); //variant 3, extended for due-date 2017-06-05 + } + + // Added by Jens Gecius (new Method as of September 6th, 2004) +@@ -1824,7 +1824,10 @@ AccountNumberCheck::Result method_C2(const int *accoun + if (AccountNumberCheck::OK == method_22(account, weight)) { // variant 1 + return AccountNumberCheck::OK; + } +- return method_00(account, weight); // variant 2 ++ if (AccountNumberCheck::OK == method_00(account, weight)) { // variant 2 ++ return AccountNumberCheck::OK; ++ } ++ return method_04(account, weight); // variant 3, extended for due-date 2017-09-04 + } + + // new method C3 and C4 valid from March 5th, 2007, checked with Bundesbank-Testnumbers +@@ -2190,6 +2193,16 @@ AccountNumberCheck::Result method_E3(const int *accoun + return method_21(account, weight); // variant 2 + } + ++// new method E4 valid from 2017-06-05 ++// checked with Bundesbank-Testnumbers ++AccountNumberCheck::Result method_E4(const int *account, int *weight) ++{ ++ if (AccountNumberCheck::OK == method_02(account, weight)) { // variant 1 ++ return AccountNumberCheck::OK; ++ } ++ return method_00(account, weight); // variant 2 ++} ++ + struct method_func_s { + const char *str; + AccountNumberCheck::MethodFunc func; +@@ -2337,6 +2350,7 @@ const struct method_func_s cb_funcs[] = { + { "E1", method_E1}, + { "E2", method_E2}, + { "E3", method_E3}, ++ { "E4", method_E4}, + { 0, 0} // Important: The array has to end with the {0,0} entry, + // otherwise initMethodMap() will runaway and crash! + };