2020-01-11 21:13:42 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2020-04-04 09:19:51 +02:00
|
|
|
, fetchpatch
|
|
|
|
, autoreconfHook
|
2020-01-11 21:13:42 +01:00
|
|
|
, neon
|
|
|
|
, procps
|
|
|
|
, substituteAll
|
|
|
|
, zlib
|
|
|
|
}:
|
2009-12-08 14:08:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-01-06 09:57:30 +01:00
|
|
|
name = "davfs2-1.5.6";
|
2009-12-08 14:08:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/davfs2/${name}.tar.gz";
|
2020-01-06 09:57:30 +01:00
|
|
|
sha256 = "00fqadhmhi2bmdar5a48nicmjcagnmaj9wgsvjr6cffmrz6pcx21";
|
2009-12-08 14:08:27 +01:00
|
|
|
};
|
|
|
|
|
2020-04-04 09:19:51 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook # neon-0.31.patch requires reconfiguration
|
|
|
|
];
|
|
|
|
|
2009-12-08 14:08:27 +01:00
|
|
|
buildInputs = [ neon zlib ];
|
2012-09-04 00:45:17 +02:00
|
|
|
|
2020-01-11 21:13:42 +01:00
|
|
|
patches = [
|
|
|
|
./isdir.patch
|
|
|
|
./fix-sysconfdir.patch
|
|
|
|
(substituteAll {
|
|
|
|
src = ./0001-umount_davfs-substitute-ps-command.patch;
|
|
|
|
ps = "${procps}/bin/ps";
|
|
|
|
})
|
2020-04-04 09:19:51 +02:00
|
|
|
|
|
|
|
# Fix build with neon 0.31
|
|
|
|
# http://savannah.nongnu.org/bugs/?58101
|
|
|
|
(fetchpatch {
|
|
|
|
name = "neon-0.31.patch";
|
|
|
|
url = "http://savannah.nongnu.org/bugs/download.php?file_id=48737";
|
2020-06-02 22:44:52 +02:00
|
|
|
sha256 = "117x9rql6wk230pl1nram3pp8svll9wzfs5nf407z4jnrdr1zm0j";
|
2020-04-04 09:19:51 +02:00
|
|
|
extraPrefix = ""; # empty means add 'a/' and 'b/'
|
|
|
|
})
|
2020-01-11 21:13:42 +01:00
|
|
|
];
|
2013-02-21 12:00:11 +01:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--sysconfdir=/etc" ];
|
2009-12-08 14:08:27 +01:00
|
|
|
|
2020-01-11 21:13:42 +01:00
|
|
|
makeFlags = [
|
|
|
|
"sbindir=$(out)/sbin"
|
|
|
|
"ssbindir=$(out)/sbin"
|
|
|
|
];
|
2016-03-31 14:14:32 +02:00
|
|
|
|
2009-12-08 14:08:27 +01:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://savannah.nongnu.org/projects/davfs2";
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Mount WebDAV shares like a typical filesystem";
|
2013-02-21 12:00:11 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
|
|
|
|
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 14:08:27 +01:00
|
|
|
|
2013-02-21 12:00:11 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-12-08 14:08:27 +01:00
|
|
|
};
|
|
|
|
}
|