Making samba have the ldap schema in $out. And I enable parallel building.

svn path=/nixpkgs/trunk/; revision=26821
This commit is contained in:
Lluís Batlle i Rossell 2011-04-13 15:31:22 +00:00
parent 6c133d03f6
commit 7ed30ce04b

View File

@ -31,6 +31,8 @@ stdenv.mkDerivation rec {
buildInputs = [ readline pam openldap popt iniparser libunwind fam acl ]
++ stdenv.lib.optional useKerberos kerberos;
enableParallelBuilding = true;
preConfigure = "cd source3";
configureFlags = ''
@ -56,6 +58,8 @@ stdenv.mkDerivation rec {
mkdir -pv $out/lib/cups/backend
ln -sv ../../../bin/smbspool $out/lib/cups/backend/smb
mkdir -pv $out/etc/openldap/schema
cp ../examples/LDAP/samba.schema $out/etc/openldap/schema
'' # */
+ stdenv.lib.optionalString (configDir == "") "touch $out/lib/smb.conf";
}