mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
Upgrade samba
Also add symlink for CUPS svn path=/nixpkgs/branches/mass-update-01/; revision=21190
This commit is contained in:
@@ -13,20 +13,21 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "samba-3.3.3";
|
||||
name = "samba-3.5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://us3.samba.org/samba/ftp/stable/${name}.tar.gz";
|
||||
sha256 = "08x3ng7ls5c1a95v7djx362i55wdlmnvarpr7rhng5bb55s9n5qn";
|
||||
sha256 = "0pi946lyn57larvada77pkal48hc0rn07bjxpg2ahz0c389cknl2";
|
||||
};
|
||||
|
||||
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam acl];
|
||||
|
||||
preConfigure = "cd source";
|
||||
preConfigure = "cd source3";
|
||||
|
||||
postInstall = if configDir == ""
|
||||
then "touch $out/lib/smb.conf"
|
||||
else "";
|
||||
postInstall = ''
|
||||
mkdir -pv $out/lib/cups/backend
|
||||
ln -sv ../../../bin/smbspool $out/lib/cups/backend/smb
|
||||
'' + stdenv.lib.optionalString (configDir == "") "touch $out/lib/smb.conf";
|
||||
|
||||
|
||||
# Don't pass --with-private-dir=/var/samba/private
|
||||
|
||||
Reference in New Issue
Block a user