2007-10-12 23:08:45 +02:00
|
|
|
args: with args;
|
2007-05-28 17:40:17 +02:00
|
|
|
|
2008-01-17 14:01:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "samba-3.0.28";
|
2007-05-28 17:40:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-01-17 14:01:45 +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-17 14:01:45 +01:00
|
|
|
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam];
|
|
|
|
configureFlags = ''--with-pam --with-smbmount --datadir=$out/share
|
2008-01-25 15:16:40 +01:00
|
|
|
--with-aio-support ''
|
2008-01-25 20:04:37 +01:00
|
|
|
+ (if (stdenv.gcc.libc != null) then "--with-libiconv=${stdenv.gcc.libc}" else "");
|
2008-01-25 15:16:25 +01:00
|
|
|
|
2007-10-12 23:08:45 +02:00
|
|
|
postUnpack = "sourceRoot=\$sourceRoot/source";
|
2008-01-17 14:01:45 +01:00
|
|
|
postInstall = ''rm -rf $out/var ; ln -s /var/samba $out/var '';
|
2007-05-28 17:40:17 +02:00
|
|
|
}
|