2007-10-12 22:08:45 +01:00
|
|
|
args: with args;
|
2007-05-28 16:40:17 +01:00
|
|
|
|
2008-01-28 19:46:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-05-31 08:26:13 +01:00
|
|
|
name = "samba-3.0.30";
|
2007-05-28 16:40:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-31 08:26:13 +01:00
|
|
|
url = http://www.samba.org/samba/ftp/stable/samba-3.0.30.tar.gz;
|
|
|
|
sha256 = "0lzs53424fblg9g6z3nsan3dxi3bnn5h4zs31ji2bavai4xrsy51";
|
2007-05-28 16:40:17 +01:00
|
|
|
};
|
|
|
|
|
2008-01-28 19:46:27 +00:00
|
|
|
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam];
|
2008-03-11 17:01:55 +00:00
|
|
|
|
|
|
|
preConfigure = "cd source";
|
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
|
|
|
'';
|
2008-03-11 17:01:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
# --datadir=$out/share
|
|
|
|
|
|
|
|
#postUnpack = "sourceRoot=\$sourceRoot/source";
|
|
|
|
|
|
|
|
#configFile = ./smb.conf;
|
|
|
|
|
|
|
|
#postInstall = ''
|
|
|
|
# rm -rf $out/var
|
|
|
|
# ln -s /var/samba $out/var
|
|
|
|
# cp ${configFile} $out/lib/smb.conf
|
|
|
|
#'';
|
2007-05-28 16:40:17 +01:00
|
|
|
}
|