libspf2: Switch to a more supported upstream

This commit is contained in:
Janne Heß 2021-12-08 11:23:26 +01:00
parent 2a512fa1be
commit 24c6b28737
No known key found for this signature in database
GPG Key ID: 69165158F05265DF

View File

@ -1,29 +1,18 @@
{ lib, stdenv, fetchurl, autoreconfHook }: { lib, stdenv, fetchFromGitHub, autoreconfHook }:
with lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libspf2"; pname = "libspf2";
version = "1.2.10"; version = "2.2.12";
src = fetchurl { src = fetchFromGitHub {
url = "https://www.libspf2.org/spf/libspf2-${version}.tar.gz"; owner = "helsinki-systems";
sha256 = "1j91p0qiipzf89qxq4m1wqhdf01hpn1h5xj4djbs51z23bl3s7nr"; repo = "libspf2";
rev = "v${version}";
sha256 = "03iiaafdcwh220pqignk407h6klrakwz0zkb8iwk6nkwipkwvhsx";
}; };
patches = [
(fetchurl {
name = "0001-gcc-variadic-macros.patch";
url = "https://github.com/shevek/libspf2/commit/5852828582f556e73751076ad092f72acf7fc8b6.patch";
sha256 = "1v6ashqzpr0xidxq0vpkjd8wd66cj8df01kyzj678ljzcrax35hk";
})
(fetchurl {
name = "0002-CVE-2021-20314.patch";
url = "https://github.com/shevek/libspf2/commit/c37b7c13c30e225183899364b9f2efdfa85552ef.patch";
sha256 = "190nnh7mlz6328829ba6jajad16s3md8kraspn81qnvhwh0nkiak";
})
];
postPatch = '' postPatch = ''
# disable static bins compilation # disable static bins compilation
sed -i \ sed -i \
@ -42,7 +31,7 @@ stdenv.mkDerivation rec {
description = "Implementation of the Sender Policy Framework for SMTP authorization"; description = "Implementation of the Sender Policy Framework for SMTP authorization";
homepage = "https://www.libspf2.org"; homepage = "https://www.libspf2.org";
license = with licenses; [ lgpl21Plus bsd2 ]; license = with licenses; [ lgpl21Plus bsd2 ];
maintainers = with maintainers; [ pacien ]; maintainers = with maintainers; [ pacien ajs124 das_j ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }