opensmtpd.table-mysql: init at 1.2.1

The opensmtpd-extra package has been deprecated in favor of standalone
repositories for each of the filters. Introduce table-mysql, which is
one of these new standalone filters to read login info from a MySQL or
MariaDB database.
This commit is contained in:
Patrick Steinhardt
2025-04-28 11:26:22 +02:00
parent b961b7312a
commit 85ae8c21ae
@@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
libmysqlclient,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "opensmtpd-table-mysql";
version = "1.2.1";
src = fetchFromGitHub {
owner = "OpenSMTPD";
repo = "table-mysql";
tag = finalAttrs.version;
hash = "sha256-0N1fuYJvJKAoOJMH2bX0pdvAqb26w/6JSuv6ycnRZHU=";
};
strictDeps = true;
buildInputs = [
libmysqlclient
];
nativeBuildInputs = [
autoconf
automake
libmysqlclient
];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-path-socket=/run"
"--with-path-pidfile=/run"
];
preConfigure = ''
sh bootstrap
'';
meta = {
homepage = "https://www.opensmtpd.org/";
description = "ldap table for the OpenSMTPD mail server";
changelog = "https://github.com/OpenSMTPD/table-mysql/releases/tag/${finalAttrs.version}";
license = lib.licenses.isc;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
pks
];
};
})