postfix: build with tlsrpt support

Adds support for TLSRPT (RFC8460) error reporting.

https://www.postfix.org/TLSRPT_README.html
This commit is contained in:
Martin Weinelt 2025-06-10 03:26:36 +02:00
parent 9e46b1f514
commit 5abc715019
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -26,6 +26,8 @@
libmysqlclient,
withSQLite ? false,
sqlite,
withTLSRPT ? true,
libtlsrpt,
}:
let
@ -48,6 +50,7 @@ let
"-DHAS_LDAP"
"-DUSE_LDAP_SASL"
]
++ lib.optional withTLSRPT "-DUSE_TLSRPT"
);
auxlibs = lib.concatStringsSep " " (
[
@ -62,6 +65,7 @@ let
++ lib.optional withMySQL "-lmysqlclient"
++ lib.optional withSQLite "-lsqlite3"
++ lib.optional withLDAP "-lldap"
++ lib.optional withTLSRPT "-ltlsrpt"
);
in
@ -90,7 +94,8 @@ stdenv.mkDerivation rec {
++ lib.optional withPgSQL libpq
++ lib.optional withMySQL libmysqlclient
++ lib.optional withSQLite sqlite
++ lib.optional withLDAP openldap;
++ lib.optional withLDAP openldap
++ lib.optional withTLSRPT libtlsrpt;
hardeningDisable = [ "format" ];
hardeningEnable = [ "pie" ];