2021-12-08 10:23:26 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2019-08-22 15:50:13 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
with lib;
|
2019-08-22 15:50:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libspf2";
|
2021-12-08 10:23:26 +00:00
|
|
|
version = "2.2.12";
|
2019-08-22 15:50:13 +00:00
|
|
|
|
2021-12-08 10:23:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "helsinki-systems";
|
|
|
|
repo = "libspf2";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "03iiaafdcwh220pqignk407h6klrakwz0zkb8iwk6nkwipkwvhsx";
|
2019-08-22 15:50:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# disable static bins compilation
|
|
|
|
sed -i \
|
|
|
|
-e '/bin_PROGRAMS/s/spfquery_static//' src/spfquery/Makefile.am \
|
|
|
|
-e '/bin_PROGRAMS/s/spftest_static//' src/spftest/Makefile.am \
|
|
|
|
-e '/bin_PROGRAMS/s/spfd_static//' src/spfd/Makefile.am \
|
|
|
|
-e '/bin_PROGRAMS/s/spf_example_static//' src/spf_example/Makefile.am
|
|
|
|
'';
|
|
|
|
|
|
|
|
# autoreconf necessary because we modified automake files
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2022-02-19 19:41:18 +00:00
|
|
|
description = "Implementation of the Sender Policy Framework for SMTP " +
|
|
|
|
"authorization (Helsinki Systems fork)";
|
|
|
|
homepage = "https://github.com/helsinki-systems/libspf2";
|
2019-08-22 15:50:13 +00:00
|
|
|
license = with licenses; [ lgpl21Plus bsd2 ];
|
2021-12-08 10:23:26 +00:00
|
|
|
maintainers = with maintainers; [ pacien ajs124 das_j ];
|
2019-08-22 15:50:13 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|