2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libspf2";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.2.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "helsinki-systems";
|
|
|
|
repo = "libspf2";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-tkCHP3B1sBb0+scHBjX5lCvaeSrZryfaGKye02LFlYs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
strictDeps = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +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
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "Implementation of the Sender Policy Framework for SMTP " +
|
|
|
|
"authorization (Helsinki Systems fork)";
|
|
|
|
homepage = "https://github.com/helsinki-systems/libspf2";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ lgpl21Plus bsd2 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ pacien ] ++ teams.helsinki-systems.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|