postfix: build with tlsrpt support
Adds support for TLSRPT (RFC8460) error reporting. https://www.postfix.org/TLSRPT_README.html
This commit is contained in:
parent
9e46b1f514
commit
5abc715019
@ -26,6 +26,8 @@
|
|||||||
libmysqlclient,
|
libmysqlclient,
|
||||||
withSQLite ? false,
|
withSQLite ? false,
|
||||||
sqlite,
|
sqlite,
|
||||||
|
withTLSRPT ? true,
|
||||||
|
libtlsrpt,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -48,6 +50,7 @@ let
|
|||||||
"-DHAS_LDAP"
|
"-DHAS_LDAP"
|
||||||
"-DUSE_LDAP_SASL"
|
"-DUSE_LDAP_SASL"
|
||||||
]
|
]
|
||||||
|
++ lib.optional withTLSRPT "-DUSE_TLSRPT"
|
||||||
);
|
);
|
||||||
auxlibs = lib.concatStringsSep " " (
|
auxlibs = lib.concatStringsSep " " (
|
||||||
[
|
[
|
||||||
@ -62,6 +65,7 @@ let
|
|||||||
++ lib.optional withMySQL "-lmysqlclient"
|
++ lib.optional withMySQL "-lmysqlclient"
|
||||||
++ lib.optional withSQLite "-lsqlite3"
|
++ lib.optional withSQLite "-lsqlite3"
|
||||||
++ lib.optional withLDAP "-lldap"
|
++ lib.optional withLDAP "-lldap"
|
||||||
|
++ lib.optional withTLSRPT "-ltlsrpt"
|
||||||
);
|
);
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -90,7 +94,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optional withPgSQL libpq
|
++ lib.optional withPgSQL libpq
|
||||||
++ lib.optional withMySQL libmysqlclient
|
++ lib.optional withMySQL libmysqlclient
|
||||||
++ lib.optional withSQLite sqlite
|
++ lib.optional withSQLite sqlite
|
||||||
++ lib.optional withLDAP openldap;
|
++ lib.optional withLDAP openldap
|
||||||
|
++ lib.optional withTLSRPT libtlsrpt;
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
hardeningEnable = [ "pie" ];
|
hardeningEnable = [ "pie" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user