@@ -1,29 +1,18 @@
1−{ lib, stdenv, fetchurl, autoreconfHook }:
1+{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
22
33with lib;
44
55stdenv.mkDerivation rec {
66 pname = "libspf2";
7− version = "1.2.10";
7+ version = "2.2.12";
88
9− src = fetchurl {
10− url = "https://www.libspf2.org/spf/libspf2-${version}.tar.gz";
11− sha256 = "1j91p0qiipzf89qxq4m1wqhdf01hpn1h5xj4djbs51z23bl3s7nr";
9+ src = fetchFromGitHub {
10+ owner = "helsinki-systems";
11+ repo = "libspf2";
12+ rev = "v${version}";
13+ sha256 = "03iiaafdcwh220pqignk407h6klrakwz0zkb8iwk6nkwipkwvhsx";
1214 };
1315
14− patches = [
15− (fetchurl {
16− name = "0001-gcc-variadic-macros.patch";
17− url = "https://github.com/shevek/libspf2/commit/5852828582f556e73751076ad092f72acf7fc8b6.patch";
18− sha256 = "1v6ashqzpr0xidxq0vpkjd8wd66cj8df01kyzj678ljzcrax35hk";
19− })
20− (fetchurl {
21− name = "0002-CVE-2021-20314.patch";
22− url = "https://github.com/shevek/libspf2/commit/c37b7c13c30e225183899364b9f2efdfa85552ef.patch";
23− sha256 = "190nnh7mlz6328829ba6jajad16s3md8kraspn81qnvhwh0nkiak";
24− })
25− ];
26−
2716 postPatch = ''
2817 # disable static bins compilation
2918 sed -i \
@@ -42,7 +31,7 @@ stdenv.mkDerivation rec {
4231 description = "Implementation of the Sender Policy Framework for SMTP authorization";
4332 homepage = "https://www.libspf2.org";
4433 license = with licenses; [ lgpl21Plus bsd2 ];
45− maintainers = with maintainers; [ pacien ];
34+ maintainers = with maintainers; [ pacien ajs124 das_j ];
4635 platforms = platforms.all;
4736 };
4837}