2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, fetchpatch }:
|
2016-04-10 16:53:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-25 22:53:02 +01:00
|
|
|
pname = "pure-ftpd";
|
|
|
|
version = "1.0.49";
|
2016-04-10 16:53:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-25 22:53:02 +01:00
|
|
|
url = "https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-${version}.tar.gz";
|
2019-05-02 03:42:19 +01:00
|
|
|
sha256 = "19cjr262n6h560fi9nm7l1srwf93k34bp8dp1c6gh90bqxcg8yvn";
|
2016-04-10 16:53:07 +01:00
|
|
|
};
|
|
|
|
|
2020-08-12 21:08:15 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2020-9274.patch";
|
|
|
|
url = "https://github.com/jedisct1/pure-ftpd/commit/8d0d42542e2cb7a56d645fbe4d0ef436e38bcefa.patch";
|
|
|
|
sha256 = "1yd84p6bd4rf21hg3kqpi2a02cac6dz5ag4xx3c2dl5vbzhr5a8k";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2020-9365.patch";
|
|
|
|
url = "https://github.com/jedisct1/pure-ftpd/commit/bf6fcd4935e95128cf22af5924cdc8fe5c0579da.patch";
|
|
|
|
sha256 = "003klx7j82qf92qr1dxg32v5r2bhhywplynd3xil1lbcd3s3mqhi";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-05-25 20:10:55 +01:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-tls" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-04-10 16:53:07 +01:00
|
|
|
description = "A free, secure, production-quality and standard-conformant FTP server";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.pureftpd.org";
|
2016-04-10 18:48:01 +01:00
|
|
|
license = licenses.isc; # with some parts covered by BSD3(?)
|
2021-05-07 14:35:21 +01:00
|
|
|
maintainers = [ ];
|
2018-03-24 01:23:30 +00:00
|
|
|
platforms = platforms.linux;
|
2016-04-10 16:53:07 +01:00
|
|
|
};
|
|
|
|
}
|