git.iko.soy/typeable/nixpkgs
on master help sign in
samba4: 4.1.17 -> 4.2.0 YOLO
commit936fdc7b68335a32b6c29df774044d46d46ff2ca authorWilliam A. Kennington III <william@wkennington.com> dateWed 4 Mar 2015, 13:46 (12 years ago) parente15cd23
4 files changed+87−20
pkgs/servers/samba/4.x-heimdal-compat.patch+16 pkgs/servers/samba/4.x-no-persistent-install.patch+42 pkgs/servers/samba/4.x.nix+25−15 pkgs/top-level/all-packages.nix+4−5
pkgs/servers/samba/4.x-heimdal-compat.patchnew file+16
@@ -0,0 +1,16 @@
1+diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c
2+index bb476e1..0a407a4 100644
3+--- a/source4/kdc/kdc.c
4++++ b/source4/kdc/kdc.c
5+@@ -967,9 +967,9 @@ static void kdc_task_init(struct task_server *task)
6+ * The old behavior in the _kdc_get_preferred_key()
7+ * function is use_strongest_server_key=TRUE.
8+ */
9+- kdc->config->as_use_strongest_session_key = false;
10++ kdc->config->tgt_use_strongest_session_key = false;
11++ kdc->config->svc_use_strongest_session_key = false;
12+ kdc->config->preauth_use_strongest_session_key = false;
13+- kdc->config->tgs_use_strongest_session_key = false;
14+ kdc->config->use_strongest_server_key = true;
15+
16+ /* Register hdb-samba4 hooks for use as a keytab */
pkgs/servers/samba/4.x-no-persistent-install.patch+42
@@ -16,3 +16,45 @@ index aa4e66e..d53f433 100755
1616 # these might be on non persistent storage
1717- bld.INSTALL_DIRS("", "${LOCKDIR} ${PIDDIR} ${SOCKET_DIR}")
1818+ #bld.INSTALL_DIRS("", "${LOCKDIR} ${PIDDIR} ${SOCKET_DIR}")
19+diff --git a/ctdb/wscript b/ctdb/wscript
20+index 3e2a992..1b93a4d 100755
21+--- a/ctdb/wscript
22++++ b/ctdb/wscript
23+@@ -473,10 +473,10 @@ def build(bld):
24+ for t in etc_subdirs:
25+ files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir)
26+ for fmode in files:
27+- bld.INSTALL_FILES(bld.env.CTDB_ETCDIR, 'config/%s' % fmode[0],
28++ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % fmode[0],
29+ destname=fmode[0], chmod=fmode[1])
30+
31+- bld.INSTALL_FILES(bld.env.CTDB_ETCDIR, 'config/functions',
32++ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/functions',
33+ destname='functions')
34+
35+ etc_scripts = [
36+@@ -489,18 +489,18 @@ def build(bld):
37+ ]
38+
39+ for t in etc_scripts:
40+- bld.INSTALL_FILES(bld.env.CTDB_ETCDIR, 'config/%s' % t,
41++ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t,
42+ destname=t, chmod=0755)
43+
44+- bld.INSTALL_FILES('${SYSCONFDIR}/sudoers.d', 'config/ctdb.sudoers',
45++ bld.INSTALL_FILES('${EXEC_PREFIX}${SYSCONFDIR}/sudoers.d', 'config/ctdb.sudoers',
46+ destname='ctdb')
47+
48+- bld.INSTALL_FILES('${CTDB_ETCDIR}/notify.d', 'config/notify.d.README',
49++ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}/notify.d', 'config/notify.d.README',
50+ destname='README')
51+
52+- bld.install_dir(bld.env.CTDB_LOGDIR)
53+- bld.install_dir(bld.env.CTDB_RUNDIR)
54+- bld.install_dir(bld.env.CTDB_VARDIR)
55++ #bld.install_dir(bld.env.CTDB_LOGDIR)
56++ #bld.install_dir(bld.env.CTDB_RUNDIR)
57++ #bld.install_dir(bld.env.CTDB_VARDIR)
58+
59+ sed_expr = 's/@PACKAGE_VERSION@/%s/g' % VERSION
60+ t = bld.SAMBA_GENERATOR('ctdb-pc',
pkgs/servers/samba/4.x.nix+25−15
@@ -1,9 +1,9 @@
11{ stdenv, fetchurl, python, pkgconfig, perl, libxslt, docbook_xsl_ns
22, docbook_xml_dtd_42, readline, talloc, ntdb, tdb, tevent, ldb, popt, iniparser
3−, pythonPackages, libbsd
3+, pythonPackages, libbsd, nss_wrapper, socket_wrapper, uid_wrapper, libarchive
44
55# source3/wscript optionals
6−, heimdal ? null # Samba only supports heimdal for kerberos although mit-krb5 is being worked on
6+, kerberos ? null
77, openldap ? null
88, cups ? null
99, pam ? null
@@ -11,7 +11,6 @@
1111, acl ? null
1212, libaio ? null
1313, fam ? null
14−, ctdb ? null
1514, ceph ? null
1615, glusterfs ? null
1716
@@ -31,21 +30,24 @@
3130}:
3231
3332stdenv.mkDerivation rec {
34− name = "samba-4.1.17";
33+ name = "samba-4.2.0";
3534
3635 src = fetchurl {
3736 url = "mirror://samba/pub/samba/stable/${name}.tar.gz";
38− sha256 = "07fban97xmf4r5y48jp6ajfdki6vx4239lwq9gmvwjy8x44mvsvs";
37+ sha256 = "03s9pjdgq6nlv2lcnlmxlhhj8m5drgv6z4xy9zkgwwd92mw0b9k6";
3938 };
4039
41− patches = [ ./4.x-no-persistent-install.patch ];
40+ patches = [
41+ ./4.x-no-persistent-install.patch
42+ ./4.x-heimdal-compat.patch
43+ ];
4244
4345 buildInputs = [
4446 python pkgconfig perl libxslt docbook_xsl_ns docbook_xml_dtd_42
4547 readline talloc ntdb tdb tevent ldb popt iniparser pythonPackages.subunit
46− libbsd
48+ libbsd nss_wrapper socket_wrapper uid_wrapper libarchive
4749
48− heimdal openldap cups pam avahi acl libaio fam ctdb ceph glusterfs
50+ kerberos openldap cups pam avahi acl libaio fam ceph glusterfs
4951
5052 libiconv gettext
5153
@@ -61,7 +63,7 @@ stdenv.mkDerivation rec {
6163 "--with-static-modules=NONE"
6264 "--with-shared-modules=ALL"
6365 "--with-winbind"
64− ] ++ (if heimdal != null then [ "--with-ads" ] else [ "--without-ads" ])
66+ ] ++ (if kerberos != null then [ "--with-ads" ] else [ "--without-ads" ])
6567 ++ (if openldap != null then [ "--with-ldap" ] else [ "--without-ldap" ])
6668 ++ (if cups != null then [ "--enable-cups" ] else [ "--disable-cups" ])
6769 ++ (if pam != null then [ "--with-pam" "--with-pam_smbpass" ]
@@ -77,27 +79,35 @@ stdenv.mkDerivation rec {
7779 "--with-syslog"
7880 "--with-automount"
7981 ] ++ (if libaio != null then [ "--with-aio-support" ] else [ "--without-aio-support" ])
80− ++ (if fam != null then [ "--with-fam" ] else [ "--without-fam" ])
81− ++ (if ctdb != null then [ "--with-cluster-support" "--with-ctdb-dir=${ctdb}" ]
82− else [ "--without-cluster-support" ])
83− ++ (if ceph != null then [ "--with-libcephfs=${ceph}" ] else [ ])
82+ ++ (if fam != null then [ "--with-fam" ] else [ "--without-fam" ]) ++ [
83+ "--with-cluster-support"
84+ ] ++ (if ceph != null then [ "--with-libcephfs=${ceph}" ] else [ ])
8485 ++ (if glusterfs != null then [ "--enable-glusterfs" ] else [ "--disable-glusterfs" ]) ++ [
86+
8587 # dynconfig/wscript options
8688 "--enable-fhs"
8789 "--sysconfdir=/etc"
8890 "--localstatedir=/var"
8991
9092 # buildtools/wafsamba/wscript options
91− "--bundled-libraries=${if heimdal != null then "NONE" else "com_err"}"
93+ "--bundled-libraries=${if kerberos.implementation == "heimdal" then "NONE" else "com_err"}"
9294 "--private-libraries=NONE"
9395 "--builtin-libraries=replace"
9496 ] ++ (if libiconv != null then [ "--with-libiconv=${libiconv}" ] else [ ])
9597 ++ (if gettext != null then [ "--with-gettext=${gettext}" ] else [ "--without-gettext" ]) ++ [
98+
9699 # source4/lib/tls/wscript options
97100 ] ++ (if gnutls != null && libgcrypt != null && libgpgerror != null
98101 then [ "--enable-gnutls" ] else [ "--disable-gnutls" ]) ++ [
102+
99103 # wscript options
100− ] ++ stdenv.lib.optional (heimdal == null) "--without-ad-dc";
104+ ] ++ stdenv.lib.optional (kerberos.implementation == "krb5") "--with-system-mitkrb5"
105+ ++ stdenv.lib.optional (kerberos == null) "--without-ad-dc" ++ [
106+
107+ # ctdb/wscript
108+ "--enable-infiniband"
109+ "--enable-pmda"
110+ ];
101111
102112 stripAllList = [ "bin" "sbin" ];
103113
pkgs/top-level/all-packages.nix+4−5
@@ -8304,11 +8304,11 @@ let
83048304 samba3 = callPackage ../servers/samba/3.x.nix { };
83058305
83068306 samba4 = callPackage ../servers/samba/4.x.nix {
8307+ #glusterfs = null; # Broken in the current build
8308+ libgcrypt = libgcrypt_1_6;
8309+ libiconv = if stdenv.isLinux then null else libiconv;
83078310 python = python2;
83088311 pythonPackages = python2Packages;
8309− libiconv = if stdenv.isLinux then null else libiconv;
8310− libgcrypt = libgcrypt_1_6;
8311− glusterfs = null; # Broken in the current build
83128312 };
83138313
83148314 samba = samba4;
@@ -8328,7 +8328,7 @@ let
83288328
83298329 samba4_light = lowPrio (samba4.override {
83308330 # source3/wscript optionals
8331− heimdal = null;
8331+ kerberos = null;
83328332 openldap = null;
83338333 cups = null;
83348334 pam = null;
@@ -8336,7 +8336,6 @@ let
83368336 acl = null;
83378337 libaio = null;
83388338 fam = null;
8339− ctdb = null;
83408339 ceph = null;
83418340 glusterfs = null;
83428341