2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchurl, autoreconfHook, docutils, pkg-config
|
2018-08-29 06:32:49 +00:00
|
|
|
, kerberos, keyutils, pam, talloc }:
|
2012-08-30 15:39:50 +00:00
|
|
|
|
2010-06-03 14:28:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cifs-utils";
|
2019-04-14 11:05:41 +00:00
|
|
|
version = "6.9";
|
2012-08-30 15:39:50 +00:00
|
|
|
|
2010-06-03 14:28:48 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://samba/pub/linux-cifs/cifs-utils/${pname}-${version}.tar.bz2";
|
2019-04-14 11:05:41 +00:00
|
|
|
sha256 = "175cp509wn1zv8p8mv37hkf6sxiskrsxdnq22mhlsg61jazz3n0q";
|
2010-06-03 14:28:48 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook docutils pkg-config ];
|
2018-08-29 06:32:49 +00:00
|
|
|
|
2016-08-22 15:52:23 +00:00
|
|
|
buildInputs = [ kerberos keyutils pam talloc ];
|
2015-01-03 01:21:02 +00:00
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
2020-12-12 06:24:38 +00:00
|
|
|
# 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 13:03:25 +00:00
|
|
|
makeFlags = [ "root_sbindir=$(out)/sbin" ];
|
2010-06-03 14:28:48 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.samba.org/linux-cifs/cifs-utils/";
|
2010-06-03 14:28:48 +00:00
|
|
|
description = "Tools for managing Linux CIFS client filesystems";
|
2015-01-03 01:21:02 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl3;
|
2010-06-03 14:28:48 +00:00
|
|
|
};
|
|
|
|
}
|