2007-10-13 01:08:45 +04:00
|
|
|
args: with args;
|
2007-05-28 19:40:17 +04:00
|
|
|
|
2008-01-28 22:46:27 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "samba-3.0.28";
|
2007-05-28 19:40:17 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-01-28 22:46:27 +03:00
|
|
|
url = "http://us1.samba.org/samba/ftp/stable/${name}.tar.gz";
|
|
|
|
sha256 = "13nr4mvh6vxgl7nb94qnqx3njcyd10cf4ji18srlkizpp49r5byw";
|
2007-05-28 19:40:17 +04:00
|
|
|
};
|
|
|
|
|
2008-01-28 22:46:27 +03:00
|
|
|
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam];
|
|
|
|
configureFlags = ''--with-pam --with-smbmount --datadir=$out/share
|
2008-01-30 02:31:23 +03:00
|
|
|
--with-aio-support ''
|
2008-01-30 02:00:08 +03:00
|
|
|
+ (if (stdenv.gcc.libc != null) then "--with-libiconv=${stdenv.gcc.libc}" else "");
|
2007-10-13 01:08:45 +04:00
|
|
|
postUnpack = "sourceRoot=\$sourceRoot/source";
|
2008-01-24 15:36:22 +03:00
|
|
|
|
|
|
|
configFile = ./smb.conf;
|
2008-01-28 22:46:27 +03:00
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/var
|
|
|
|
ln -s /var/samba $out/var
|
|
|
|
cp ${configFile} $out/lib/smb.conf
|
|
|
|
'';
|
2007-05-28 19:40:17 +04:00
|
|
|
}
|