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