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 {
|
|
|
|
name = "samba-3.0.28";
|
2007-05-28 17:40:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-01-28 20:46:27 +01:00
|
|
|
url = "http://us1.samba.org/samba/ftp/stable/${name}.tar.gz";
|
|
|
|
sha256 = "13nr4mvh6vxgl7nb94qnqx3njcyd10cf4ji18srlkizpp49r5byw";
|
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];
|
|
|
|
configureFlags = ''--with-pam --with-smbmount --datadir=$out/share
|
2008-01-30 00:31:23 +01:00
|
|
|
--with-aio-support ''
|
2008-01-30 00:00:08 +01:00
|
|
|
+ (if (stdenv.gcc.libc != null) then "--with-libiconv=${stdenv.gcc.libc}" else "");
|
2007-10-12 23:08:45 +02:00
|
|
|
postUnpack = "sourceRoot=\$sourceRoot/source";
|
2008-01-24 13:36:22 +01:00
|
|
|
|
|
|
|
configFile = ./smb.conf;
|
2008-01-28 20:46:27 +01:00
|
|
|
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
|
|
|
}
|