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