nixpkgs-suyu/pkgs/servers/samba/default.nix
Marc Weber 75e277ac15 make samba built the pam_smbpass.so file by default
svn path=/nixpkgs/trunk/; revision=14852
2009-04-03 10:02:30 +00:00

29 lines
768 B
Nix

{ stdenv, fetchurl, readline, pam, openldap, kerberos, popt
, iniparser, libunwind, fam, acl
}:
stdenv.mkDerivation rec {
name = "samba-3.2.7";
src = fetchurl {
url = http://us3.samba.org/samba/ftp/stable/samba-3.3.2.tar.gz;
sha256 = "1b4fa9fbe7ccced6cca449c4b0b9fba65ffd2ad63b1f0bf2507e943281461477";
};
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam acl];
preConfigure = "cd source";
# Provide a dummy smb.conf to shut up programs like smbclient and smbspool.
postInstall = ''
touch $out/lib/smb.conf
'';
configureFlags = ''
--with-pam
--with-smbmount
--with-aio-support
--with-pam_smbpass
${if (stdenv.gcc.libc != null) then "--with-libiconv=${stdenv.gcc.libc}" else ""}
'';
}