2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv
|
2020-01-11 20:13:42 +00:00
|
|
|
, fetchurl
|
2020-04-04 07:19:51 +00:00
|
|
|
, fetchpatch
|
2020-01-11 20:13:42 +00:00
|
|
|
, neon
|
|
|
|
, procps
|
|
|
|
, substituteAll
|
|
|
|
, zlib
|
2020-11-11 11:02:02 +00:00
|
|
|
, wrapperDir ? "/run/wrappers/bin"
|
2020-01-11 20:13:42 +00:00
|
|
|
}:
|
2009-12-08 13:08:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 18:49:29 +00:00
|
|
|
pname = "davfs2";
|
|
|
|
version = "1.6.0";
|
2009-12-08 13:08:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-12 18:49:29 +00:00
|
|
|
url = "mirror://savannah/davfs2/davfs2-${version}.tar.gz";
|
2020-11-11 11:02:02 +00:00
|
|
|
sha256 = "sha256-LmtnVoW9kXdyvmDwmZrgmMgPef8g3BMej+xFR8u2O1A=";
|
2009-12-08 13:08:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ neon zlib ];
|
2012-09-03 22:45:17 +00:00
|
|
|
|
2020-01-11 20:13:42 +00:00
|
|
|
patches = [
|
|
|
|
./fix-sysconfdir.patch
|
|
|
|
(substituteAll {
|
|
|
|
src = ./0001-umount_davfs-substitute-ps-command.patch;
|
|
|
|
ps = "${procps}/bin/ps";
|
|
|
|
})
|
2020-11-11 11:02:02 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./0002-Make-sure-that-the-setuid-wrapped-umount-is-invoked.patch;
|
|
|
|
inherit wrapperDir;
|
2020-04-04 07:19:51 +00:00
|
|
|
})
|
2020-01-11 20:13:42 +00:00
|
|
|
];
|
2013-02-21 11:00:11 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--sysconfdir=/etc" ];
|
2009-12-08 13:08:27 +00:00
|
|
|
|
2020-01-11 20:13:42 +00:00
|
|
|
makeFlags = [
|
|
|
|
"sbindir=$(out)/sbin"
|
|
|
|
"ssbindir=$(out)/sbin"
|
|
|
|
];
|
2016-03-31 12:14:32 +00:00
|
|
|
|
2009-12-08 13:08:27 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://savannah.nongnu.org/projects/davfs2";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Mount WebDAV shares like a typical filesystem";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2013-02-21 11:00:11 +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.
|
|
|
|
'';
|
2009-12-08 13:08:27 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2009-12-08 13:08:27 +00:00
|
|
|
};
|
|
|
|
}
|