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-03-11 17:01:55 +00:00
|
|
|
name = "samba-3.0.28a";
|
2007-05-28 16:40:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-03-11 17:01:55 +00:00
|
|
|
url = http://us3.samba.org/samba/ftp/stable/samba-3.0.28a.tar.gz;
|
|
|
|
sha256 = "1pnrh4qlapsqgdrzq4v5vxv622wcxghi5cp0n4f87c8pc2rfrjcx";
|
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
|
|
|
}
|