Merge pull request #50022 from Ekleog/opensmtpd-extras-6.4.0
opensmtpd-extras: 5.7.1 -> 6.4.0
This commit is contained in:
commit
adb5b610bd
@ -1,13 +1,21 @@
|
|||||||
{ stdenv, fetchurl, openssl, libevent, libasr,
|
{ stdenv, fetchurl, openssl, libevent, libasr,
|
||||||
python2, pkgconfig, lua5, perl, mysql, postgresql, sqlite, hiredis }:
|
python2, pkgconfig, lua5, perl, mysql, postgresql, sqlite, hiredis,
|
||||||
|
enablePython ? true,
|
||||||
|
enableLua ? true,
|
||||||
|
enablePerl ? true,
|
||||||
|
enableMysql ? true,
|
||||||
|
enablePostgres ? true,
|
||||||
|
enableSqlite ? true,
|
||||||
|
enableRedis ? true,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "opensmtpd-extras-${version}";
|
name = "opensmtpd-extras-${version}";
|
||||||
version = "5.7.1";
|
version = "6.4.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.opensmtpd.org/archives/${name}.tar.gz";
|
url = "https://www.opensmtpd.org/archives/${name}.tar.gz";
|
||||||
sha256 = "1kld4hxgz792s0cb2gl7m2n618ikzqkj88w5dhaxdrxg4x2c4vdm";
|
sha256 = "09k25l7zy5ch3fk6qphni2h0rxdp8wacmfag1whi608dgimrhrnb";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
@ -40,42 +48,45 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-scheduler-ram"
|
"--with-scheduler-ram"
|
||||||
"--with-scheduler-stub"
|
"--with-scheduler-stub"
|
||||||
|
|
||||||
] ++ stdenv.lib.optional (python2 != null) [
|
] ++ stdenv.lib.optional enablePython [
|
||||||
"--with-python=${python2}"
|
"--with-python=${python2}"
|
||||||
"--with-filter-python"
|
"--with-filter-python"
|
||||||
"--with-queue-python"
|
"--with-queue-python"
|
||||||
"--with-table-python"
|
"--with-table-python"
|
||||||
"--with-scheduler-python"
|
"--with-scheduler-python"
|
||||||
|
|
||||||
] ++ stdenv.lib.optional (lua5 != null) [
|
] ++ stdenv.lib.optional enableLua [
|
||||||
"--with-lua=${pkgconfig}"
|
"--with-lua=${pkgconfig}"
|
||||||
"--with-filter-lua"
|
"--with-filter-lua"
|
||||||
|
|
||||||
] ++ stdenv.lib.optional (perl != null) [
|
] ++ stdenv.lib.optional enablePerl [
|
||||||
"--with-perl=${perl}"
|
"--with-perl=${perl}"
|
||||||
"--with-filter-perl"
|
"--with-filter-perl"
|
||||||
|
|
||||||
] ++ stdenv.lib.optional (mysql != null) [
|
] ++ stdenv.lib.optional enableMysql [
|
||||||
"--with-table-mysql"
|
"--with-table-mysql"
|
||||||
|
|
||||||
] ++ stdenv.lib.optional (postgresql != null) [
|
] ++ stdenv.lib.optional enablePostgres [
|
||||||
"--with-table-postgres"
|
"--with-table-postgres"
|
||||||
|
|
||||||
] ++ stdenv.lib.optional (sqlite != null) [
|
] ++ stdenv.lib.optional enableSqlite [
|
||||||
"--with-table-sqlite"
|
"--with-table-sqlite"
|
||||||
|
|
||||||
] ++ stdenv.lib.optional (hiredis != null) [
|
] ++ stdenv.lib.optional enableRedis [
|
||||||
"--with-table-redis"
|
"--with-table-redis"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional (hiredis != null) "-I${hiredis}/include/hiredis" ++
|
NIX_CFLAGS_COMPILE =
|
||||||
stdenv.lib.optional (mysql != null) "-L${mysql.connector-c}/lib/mysql";
|
stdenv.lib.optional enableRedis
|
||||||
|
"-I${hiredis}/include/hiredis -lhiredis"
|
||||||
|
++ stdenv.lib.optional enableMysql
|
||||||
|
"-L${mysql.connector-c}/lib/mysql";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://www.opensmtpd.org/;
|
homepage = https://www.opensmtpd.org/;
|
||||||
description = "Extra plugins for the OpenSMTPD mail server";
|
description = "Extra plugins for the OpenSMTPD mail server";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ gebner ];
|
maintainers = with maintainers; [ gebner ekleog ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user