2007-10-12 23:08:45 +02:00
|
|
|
args: with args;
|
2007-05-28 17:40:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-10-12 23:08:45 +02:00
|
|
|
name = "samba-3.0.26a";
|
2007-05-28 17:40:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-10-12 23:08:45 +02:00
|
|
|
url = http://us1.samba.org/samba/ftp/stable/samba-3.0.26a.tar.gz;
|
|
|
|
sha256 = "41e11f69288b2291f12f8db093e2c55dc1360555d4542c83c0758c4c7a3d4d37";
|
2007-05-28 17:40:17 +02:00
|
|
|
};
|
|
|
|
|
2007-10-12 23:08:45 +02:00
|
|
|
buildInputs = [readline pam openldap];
|
2008-01-14 12:23:24 +01:00
|
|
|
configureFlags = [" --with-pam " " --with-smbmount "
|
|
|
|
" --datadir=\$out/share " " --with-acl-support "
|
|
|
|
" --with-aio-support "];
|
2007-10-12 23:08:45 +02:00
|
|
|
postUnpack = "sourceRoot=\$sourceRoot/source";
|
2008-01-24 13:36:22 +01:00
|
|
|
|
|
|
|
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
|
|
|
}
|