samba4: 4.3.11 -> 4.4.6

+34 -53
-13
pkgs/servers/samba/4.x-fix-ctdb-deps.patch
··· 1 - diff --git a/ctdb/wscript b/ctdb/wscript 2 - index 3e2a992..3fe15cc 100755 3 - --- a/ctdb/wscript 4 - +++ b/ctdb/wscript 5 - @@ -568,7 +568,7 @@ def build(bld): 6 - source='ib/ibwrapper_test.c', 7 - includes='include include/internal', 8 - deps='''replace talloc ctdb-client ctdb-common 9 - - ctdb-system''' + 10 - + ctdb-system ctdb-common-util''' + 11 - ib_deps, 12 - install_path='${CTDB_TEST_LIBDIR}') 13 -
···
+31 -37
pkgs/servers/samba/4.x-no-persistent-install.patch
··· 1 - diff --git a/dynconfig/wscript b/dynconfig/wscript 2 - index aa4e66e..d53f433 100755 3 - --- a/dynconfig/wscript 4 - +++ b/dynconfig/wscript 5 - @@ -379,9 +379,9 @@ def build(bld): 6 - cflags=cflags) 7 - 8 - # install some extra empty directories 9 - - bld.INSTALL_DIRS("", "${CONFIGDIR} ${PRIVATE_DIR} ${LOGFILEBASE}"); 10 - - bld.INSTALL_DIRS("", "${PRIVATE_DIR} ${PRIVILEGED_SOCKET_DIR}") 11 - - bld.INSTALL_DIRS("", "${STATEDIR} ${CACHEDIR}"); 12 - + #bld.INSTALL_DIRS("", "${CONFIGDIR} ${PRIVATE_DIR} ${LOGFILEBASE}"); 13 - + #bld.INSTALL_DIRS("", "${PRIVATE_DIR} ${PRIVILEGED_SOCKET_DIR}") 14 - + #bld.INSTALL_DIRS("", "${STATEDIR} ${CACHEDIR}"); 15 - 16 - # these might be on non persistent storage 17 - - bld.INSTALL_DIRS("", "${LOCKDIR} ${PIDDIR} ${SOCKET_DIR}") 18 - + #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: ··· 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: ··· 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', ··· 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',
··· 1 + diff -ru3 samba-4.4.6/ctdb/wscript samba-4.4.6-new/ctdb/wscript 2 + --- samba-4.4.6/ctdb/wscript 2016-09-22 09:42:48.000000000 +0300 3 + +++ samba-4.4.6-new/ctdb/wscript 2016-10-15 23:31:13.932088237 +0300 4 + @@ -581,7 +581,7 @@ 5 for t in etc_subdirs: 6 files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir) 7 for fmode in files: ··· 9 + bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % fmode[0], 10 destname=fmode[0], chmod=fmode[1]) 11 12 + bld.SAMBA_GENERATOR('ctdb-functions', 13 + @@ -601,23 +601,19 @@ 14 ] 15 16 for t in etc_scripts: ··· 18 + bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t, 19 destname=t, chmod=0755) 20 21 + bld.SAMBA_GENERATOR('ctdb-sudoers', 22 + source='config/ctdb.sudoers', 23 + target='ctdb.sudoers', 24 + rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline)) 25 + - bld.INSTALL_FILES('${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers', 26 + + bld.INSTALL_FILES('${EXEC_PREFIX}${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers', 27 destname='ctdb') 28 29 - bld.INSTALL_FILES('${CTDB_ETCDIR}/notify.d', 'config/notify.d.README', ··· 33 - bld.install_dir(bld.env.CTDB_LOGDIR) 34 - bld.install_dir(bld.env.CTDB_RUNDIR) 35 - bld.install_dir(bld.env.CTDB_VARDIR) 36 + - 37 + # Unit tests 38 + ctdb_unit_tests = [ 39 + 'db_hash_test', 40 + diff -ru3 samba-4.4.6/dynconfig/wscript samba-4.4.6-new/dynconfig/wscript 41 + --- samba-4.4.6/dynconfig/wscript 2016-01-26 14:45:46.000000000 +0300 42 + +++ samba-4.4.6-new/dynconfig/wscript 2016-10-15 22:21:18.159705132 +0300 43 + @@ -416,11 +416,3 @@ 44 + public_headers=os_path_relpath(os.path.join(Options.launch_dir, version_header), bld.curdir), 45 + header_path='samba', 46 + cflags=cflags) 47 + - 48 + - # install some extra empty directories 49 + - bld.INSTALL_DIRS("", "${CONFIGDIR} ${PRIVATE_DIR} ${LOGFILEBASE}"); 50 + - bld.INSTALL_DIRS("", "${PRIVATE_DIR} ${PRIVILEGED_SOCKET_DIR}") 51 + - bld.INSTALL_DIRS("", "${STATEDIR} ${CACHEDIR}"); 52 + - 53 + - # these might be on non persistent storage 54 + - bld.INSTALL_DIRS("", "${LOCKDIR} ${PIDDIR} ${SOCKET_DIR}")
+3 -3
pkgs/servers/samba/4.x.nix
··· 18 with lib; 19 20 stdenv.mkDerivation rec { 21 - name = "samba-4.3.11"; 22 23 src = fetchurl { 24 url = "mirror://samba/pub/samba/stable/${name}.tar.gz"; 25 - sha256 = "1v2grwivm6rasz1ganbybs0ikz1lydaniy65kxf1v8rl1qqngach"; 26 }; 27 28 outputs = [ "out" "dev" "man" ]; 29 30 patches = 31 [ ./4.x-no-persistent-install.patch 32 - ./4.x-fix-ctdb-deps.patch 33 ]; 34 35 buildInputs =
··· 18 with lib; 19 20 stdenv.mkDerivation rec { 21 + name = "samba-${version}"; 22 + version = "4.4.6"; 23 24 src = fetchurl { 25 url = "mirror://samba/pub/samba/stable/${name}.tar.gz"; 26 + sha256 = "1361ijz7vpgf66w3j9z7qb37rnlrydxw01ibjnfhjqqcb7fj7i1p"; 27 }; 28 29 outputs = [ "out" "dev" "man" ]; 30 31 patches = 32 [ ./4.x-no-persistent-install.patch 33 ]; 34 35 buildInputs =