2007-10-12 23:08:45 +02:00
|
|
|
args: with args;
|
2007-05-28 17:40:17 +02:00
|
|
|
|
2008-01-28 20:46:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-05-31 09:26:13 +02:00
|
|
|
name = "samba-3.0.30";
|
2007-05-28 17:40:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-31 09:26:13 +02:00
|
|
|
url = http://www.samba.org/samba/ftp/stable/samba-3.0.30.tar.gz;
|
|
|
|
sha256 = "0lzs53424fblg9g6z3nsan3dxi3bnn5h4zs31ji2bavai4xrsy51";
|
2007-05-28 17:40:17 +02:00
|
|
|
};
|
|
|
|
|
2008-01-28 20:46:27 +01:00
|
|
|
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam];
|
2008-03-11 18:01:55 +01:00
|
|
|
|
|
|
|
preConfigure = "cd source";
|
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
|
|
|
'';
|
2008-03-11 18:01:55 +01: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 17:40:17 +02:00
|
|
|
}
|