09af15654f
The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ stdenv, fetchurl, autoconf, automake, libtool, bison
|
|
, libasr, libevent, zlib, openssl, db, pam, cacert
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "opensmtpd-${version}";
|
|
version = "5.7.3p2";
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
|
buildInputs = [ libasr libevent zlib openssl db pam ];
|
|
|
|
src = fetchurl {
|
|
url = "http://www.opensmtpd.org/archives/${name}.tar.gz";
|
|
sha256 = "0d2973008d0f66bebb84bed516be6c32617735241cc54dd26643529281a8e52b";
|
|
};
|
|
|
|
patches = [ ./proc_path.diff ];
|
|
|
|
configureFlags = [
|
|
"--sysconfdir=/etc"
|
|
"--localstatedir=/var"
|
|
"--with-mantype=doc"
|
|
"--with-pam"
|
|
"--without-bsd-auth"
|
|
"--with-sock-dir=/run"
|
|
"--with-privsep-user=smtpd"
|
|
"--with-queue-user=smtpq"
|
|
"--with-ca-file=/etc/ssl/certs/ca-certificates.crt"
|
|
"--with-libevent-dir=${libevent.dev}"
|
|
"--enable-table-db"
|
|
];
|
|
|
|
installFlags = [
|
|
"sysconfdir=\${out}/etc"
|
|
"localstatedir=\${TMPDIR}"
|
|
];
|
|
|
|
meta = {
|
|
homepage = https://www.opensmtpd.org/;
|
|
description = ''
|
|
A free implementation of the server-side SMTP protocol as defined by
|
|
RFC 5321, with some additional standard extensions
|
|
'';
|
|
license = stdenv.lib.licenses.isc;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.rickynils ];
|
|
};
|
|
}
|