2020-12-12 07:24:38 +01:00
|
|
|
{ stdenv, lib, fetchurl, autoreconfHook, docutils, pkgconfig
|
2018-08-29 08:32:49 +02:00
|
|
|
, kerberos, keyutils, pam, talloc }:
|
2012-08-30 17:39:50 +02:00
|
|
|
|
2010-06-03 16:28:48 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cifs-utils";
|
2019-04-14 13:05:41 +02:00
|
|
|
version = "6.9";
|
2012-08-30 17:39:50 +02:00
|
|
|
|
2010-06-03 16:28:48 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://samba/pub/linux-cifs/cifs-utils/${pname}-${version}.tar.bz2";
|
2019-04-14 13:05:41 +02:00
|
|
|
sha256 = "175cp509wn1zv8p8mv37hkf6sxiskrsxdnq22mhlsg61jazz3n0q";
|
2010-06-03 16:28:48 +02:00
|
|
|
};
|
|
|
|
|
2018-08-29 08:32:49 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook docutils pkgconfig ];
|
|
|
|
|
2016-08-22 17:52:23 +02:00
|
|
|
buildInputs = [ kerberos keyutils pam talloc ];
|
2015-01-03 02:21:02 +01:00
|
|
|
|
2020-12-12 07:24:38 +01:00
|
|
|
configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
|
|
|
# AC_FUNC_MALLOC is broken on cross builds.
|
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "root_sbindir=$(out)/sbin" ];
|
2010-06-03 16:28:48 +02:00
|
|
|
|
2015-01-03 02:21:02 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.samba.org/linux-cifs/cifs-utils/";
|
2010-06-03 16:28:48 +02:00
|
|
|
description = "Tools for managing Linux CIFS client filesystems";
|
2015-01-03 02:21:02 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl3;
|
2010-06-03 16:28:48 +02:00
|
|
|
};
|
|
|
|
}
|