2008-11-07 13:05:05 +00:00
|
|
|
{ stdenv, fetchurl, readline, pam, openldap, kerberos, popt
|
|
|
|
, iniparser, libunwind, fam, acl
|
|
|
|
}:
|
2007-05-28 16:40:17 +01:00
|
|
|
|
2008-01-28 19:46:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-01-28 14:51:26 +00:00
|
|
|
name = "samba-3.2.7";
|
2007-05-28 16:40:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-03-29 22:44:21 +01:00
|
|
|
url = http://us3.samba.org/samba/ftp/stable/samba-3.3.2.tar.gz;
|
|
|
|
sha256 = "1b4fa9fbe7ccced6cca449c4b0b9fba65ffd2ad63b1f0bf2507e943281461477";
|
2007-05-28 16:40:17 +01:00
|
|
|
};
|
|
|
|
|
2008-11-07 13:05:05 +00:00
|
|
|
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam acl];
|
2008-03-11 17:01:55 +00:00
|
|
|
|
|
|
|
preConfigure = "cd source";
|
2008-11-07 13:05:05 +00:00
|
|
|
|
|
|
|
# Provide a dummy smb.conf to shut up programs like smbclient and smbspool.
|
|
|
|
postInstall = ''
|
|
|
|
touch $out/lib/smb.conf
|
|
|
|
'';
|
2008-01-24 12:36:22 +00:00
|
|
|
|
2008-03-11 17:01:55 +00:00
|
|
|
configureFlags = ''
|
|
|
|
--with-pam
|
|
|
|
--with-smbmount
|
|
|
|
--with-aio-support
|
|
|
|
${if (stdenv.gcc.libc != null) then "--with-libiconv=${stdenv.gcc.libc}" else ""}
|
2008-01-28 19:46:27 +00:00
|
|
|
'';
|
2007-05-28 16:40:17 +01:00
|
|
|
}
|