From f3b6355afdb60d73d4cd10c9408c6c01ed911202 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Sun, 26 Jan 2025 09:23:54 +0100 Subject: [PATCH] opensmtpd.table-passwd: init at 1.0.2 The opensmtpd-extra package has been deprecated in favor of standalone repositories for each of the filters. Introduce table-passwd, which is one of these new standalone filters to read login info from "passwd" files. --- .../op/opensmtpd-table-passwd/package.nix | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/op/opensmtpd-table-passwd/package.nix diff --git a/pkgs/by-name/op/opensmtpd-table-passwd/package.nix b/pkgs/by-name/op/opensmtpd-table-passwd/package.nix new file mode 100644 index 000000000000..3a068ad41867 --- /dev/null +++ b/pkgs/by-name/op/opensmtpd-table-passwd/package.nix @@ -0,0 +1,47 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoconf, + automake, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "opensmtpd-table-passwd"; + version = "1.0.2"; + + src = fetchFromGitHub { + owner = "OpenSMTPD"; + repo = "table-passwd"; + tag = finalAttrs.version; + hash = "sha256-veE7PADO8KAMEnMrDc9V/xbVMqwF3rUoYPmpQSIJw9o="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + autoconf + automake + ]; + + configureFlags = [ + "--sysconfdir=/etc" + "--localstatedir=/var" + "--with-path-socket=/run" + "--with-path-pidfile=/run" + ]; + + preConfigure = '' + sh bootstrap + ''; + + meta = { + homepage = "https://www.opensmtpd.org/"; + description = "passwd table for the OpenSMTPD mail server"; + changelog = "https://github.com/OpenSMTPD/table-passwd/releases/tag/${finalAttrs.version}"; + license = lib.licenses.isc; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ + pks + ]; + }; +})