2008-11-07 05:05:05 -08:00
|
|
|
{ stdenv, fetchurl, readline, pam, openldap, kerberos, popt
|
|
|
|
, iniparser, libunwind, fam, acl
|
|
|
|
}:
|
2007-05-28 08:40:17 -07:00
|
|
|
|
2008-01-28 11:46:27 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2009-04-03 17:59:55 -07:00
|
|
|
name = "samba-3.3.3";
|
2007-05-28 08:40:17 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-04-03 17:59:55 -07:00
|
|
|
url = "http://us3.samba.org/samba/ftp/stable/${name}.tar.gz";
|
|
|
|
sha256 = "08x3ng7ls5c1a95v7djx362i55wdlmnvarpr7rhng5bb55s9n5qn";
|
2007-05-28 08:40:17 -07:00
|
|
|
};
|
|
|
|
|
2008-11-07 05:05:05 -08:00
|
|
|
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam acl];
|
2008-03-11 10:01:55 -07:00
|
|
|
|
|
|
|
preConfigure = "cd source";
|
2008-11-07 05:05:05 -08:00
|
|
|
|
|
|
|
# Provide a dummy smb.conf to shut up programs like smbclient and smbspool.
|
|
|
|
postInstall = ''
|
|
|
|
touch $out/lib/smb.conf
|
|
|
|
'';
|
2008-01-24 04:36:22 -08:00
|
|
|
|
2008-03-11 10:01:55 -07:00
|
|
|
configureFlags = ''
|
|
|
|
--with-pam
|
2009-04-03 17:59:55 -07:00
|
|
|
--with-cifsmount
|
2008-03-11 10:01:55 -07:00
|
|
|
--with-aio-support
|
2009-04-03 03:02:30 -07:00
|
|
|
--with-pam_smbpass
|
2009-04-03 17:59:55 -07:00
|
|
|
--disable-swat
|
|
|
|
--enable-shared-libs
|
|
|
|
${if stdenv.gcc.libc != null then "--with-libiconv=${stdenv.gcc.libc}" else ""}
|
2008-01-28 11:46:27 -08:00
|
|
|
'';
|
2007-05-28 08:40:17 -07:00
|
|
|
}
|