2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2023-02-02 18:25:31 +00:00
|
|
|
, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, neon
|
|
|
|
, procps
|
|
|
|
, substituteAll
|
|
|
|
, zlib
|
2020-11-12 09:05:59 +00:00
|
|
|
, wrapperDir ? "/run/wrappers/bin"
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "davfs2";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "mirror://savannah/davfs2/davfs2-${version}.tar.gz";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-JR23Wic4DMoTMLG5cXAMXl3MDJDlpHYiKF8BQO3+Oi8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-sysconfdir.patch
|
2023-02-02 18:25:31 +00:00
|
|
|
./disable-suid.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./0001-umount_davfs-substitute-ps-command.patch;
|
|
|
|
ps = "${procps}/bin/ps";
|
|
|
|
})
|
2020-11-12 09:05:59 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./0002-Make-sure-that-the-setuid-wrapped-umount-is-invoked.patch;
|
|
|
|
inherit wrapperDir;
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--with-neon=${lib.getLib neon}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://savannah.nongnu.org/projects/davfs2";
|
|
|
|
description = "Mount WebDAV shares like a typical filesystem";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Web Distributed Authoring and Versioning (WebDAV), an extension to
|
|
|
|
the HTTP-protocol, allows authoring of resources on a remote web
|
|
|
|
server. davfs2 provides the ability to access such resources like
|
|
|
|
a typical filesystem, allowing for use by standard applications
|
|
|
|
with no built-in support for WebDAV.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with lib.maintainers; [ fgaz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|