samba4: 4.3.11 -> 4.4.6
This commit is contained in:
parent
8cbdd9d0c2
commit
4ceca4fe4f
@ -1,13 +0,0 @@
|
|||||||
diff --git a/ctdb/wscript b/ctdb/wscript
|
|
||||||
index 3e2a992..3fe15cc 100755
|
|
||||||
--- a/ctdb/wscript
|
|
||||||
+++ b/ctdb/wscript
|
|
||||||
@@ -568,7 +568,7 @@ def build(bld):
|
|
||||||
source='ib/ibwrapper_test.c',
|
|
||||||
includes='include include/internal',
|
|
||||||
deps='''replace talloc ctdb-client ctdb-common
|
|
||||||
- ctdb-system''' +
|
|
||||||
+ ctdb-system ctdb-common-util''' +
|
|
||||||
ib_deps,
|
|
||||||
install_path='${CTDB_TEST_LIBDIR}')
|
|
||||||
|
|
@ -1,26 +1,7 @@
|
|||||||
diff --git a/dynconfig/wscript b/dynconfig/wscript
|
diff -ru3 samba-4.4.6/ctdb/wscript samba-4.4.6-new/ctdb/wscript
|
||||||
index aa4e66e..d53f433 100755
|
--- samba-4.4.6/ctdb/wscript 2016-09-22 09:42:48.000000000 +0300
|
||||||
--- a/dynconfig/wscript
|
+++ samba-4.4.6-new/ctdb/wscript 2016-10-15 23:31:13.932088237 +0300
|
||||||
+++ b/dynconfig/wscript
|
@@ -581,7 +581,7 @@
|
||||||
@@ -379,9 +379,9 @@ def build(bld):
|
|
||||||
cflags=cflags)
|
|
||||||
|
|
||||||
# install some extra empty directories
|
|
||||||
- bld.INSTALL_DIRS("", "${CONFIGDIR} ${PRIVATE_DIR} ${LOGFILEBASE}");
|
|
||||||
- bld.INSTALL_DIRS("", "${PRIVATE_DIR} ${PRIVILEGED_SOCKET_DIR}")
|
|
||||||
- bld.INSTALL_DIRS("", "${STATEDIR} ${CACHEDIR}");
|
|
||||||
+ #bld.INSTALL_DIRS("", "${CONFIGDIR} ${PRIVATE_DIR} ${LOGFILEBASE}");
|
|
||||||
+ #bld.INSTALL_DIRS("", "${PRIVATE_DIR} ${PRIVILEGED_SOCKET_DIR}")
|
|
||||||
+ #bld.INSTALL_DIRS("", "${STATEDIR} ${CACHEDIR}");
|
|
||||||
|
|
||||||
# these might be on non persistent storage
|
|
||||||
- bld.INSTALL_DIRS("", "${LOCKDIR} ${PIDDIR} ${SOCKET_DIR}")
|
|
||||||
+ #bld.INSTALL_DIRS("", "${LOCKDIR} ${PIDDIR} ${SOCKET_DIR}")
|
|
||||||
diff --git a/ctdb/wscript b/ctdb/wscript
|
|
||||||
index 3e2a992..1b93a4d 100755
|
|
||||||
--- a/ctdb/wscript
|
|
||||||
+++ b/ctdb/wscript
|
|
||||||
@@ -473,10 +473,10 @@ def build(bld):
|
|
||||||
for t in etc_subdirs:
|
for t in etc_subdirs:
|
||||||
files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir)
|
files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir)
|
||||||
for fmode in files:
|
for fmode in files:
|
||||||
@ -28,12 +9,8 @@ index 3e2a992..1b93a4d 100755
|
|||||||
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % fmode[0],
|
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % fmode[0],
|
||||||
destname=fmode[0], chmod=fmode[1])
|
destname=fmode[0], chmod=fmode[1])
|
||||||
|
|
||||||
- bld.INSTALL_FILES(bld.env.CTDB_ETCDIR, 'config/functions',
|
bld.SAMBA_GENERATOR('ctdb-functions',
|
||||||
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/functions',
|
@@ -601,23 +601,19 @@
|
||||||
destname='functions')
|
|
||||||
|
|
||||||
etc_scripts = [
|
|
||||||
@@ -489,18 +489,18 @@ def build(bld):
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for t in etc_scripts:
|
for t in etc_scripts:
|
||||||
@ -41,8 +18,12 @@ index 3e2a992..1b93a4d 100755
|
|||||||
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t,
|
+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t,
|
||||||
destname=t, chmod=0755)
|
destname=t, chmod=0755)
|
||||||
|
|
||||||
- bld.INSTALL_FILES('${SYSCONFDIR}/sudoers.d', 'config/ctdb.sudoers',
|
bld.SAMBA_GENERATOR('ctdb-sudoers',
|
||||||
+ bld.INSTALL_FILES('${EXEC_PREFIX}${SYSCONFDIR}/sudoers.d', 'config/ctdb.sudoers',
|
source='config/ctdb.sudoers',
|
||||||
|
target='ctdb.sudoers',
|
||||||
|
rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline))
|
||||||
|
- bld.INSTALL_FILES('${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers',
|
||||||
|
+ bld.INSTALL_FILES('${EXEC_PREFIX}${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers',
|
||||||
destname='ctdb')
|
destname='ctdb')
|
||||||
|
|
||||||
- bld.INSTALL_FILES('${CTDB_ETCDIR}/notify.d', 'config/notify.d.README',
|
- bld.INSTALL_FILES('${CTDB_ETCDIR}/notify.d', 'config/notify.d.README',
|
||||||
@ -52,9 +33,22 @@ index 3e2a992..1b93a4d 100755
|
|||||||
- bld.install_dir(bld.env.CTDB_LOGDIR)
|
- bld.install_dir(bld.env.CTDB_LOGDIR)
|
||||||
- bld.install_dir(bld.env.CTDB_RUNDIR)
|
- bld.install_dir(bld.env.CTDB_RUNDIR)
|
||||||
- bld.install_dir(bld.env.CTDB_VARDIR)
|
- bld.install_dir(bld.env.CTDB_VARDIR)
|
||||||
+ #bld.install_dir(bld.env.CTDB_LOGDIR)
|
-
|
||||||
+ #bld.install_dir(bld.env.CTDB_RUNDIR)
|
# Unit tests
|
||||||
+ #bld.install_dir(bld.env.CTDB_VARDIR)
|
ctdb_unit_tests = [
|
||||||
|
'db_hash_test',
|
||||||
sed_expr = 's/@PACKAGE_VERSION@/%s/g' % VERSION
|
diff -ru3 samba-4.4.6/dynconfig/wscript samba-4.4.6-new/dynconfig/wscript
|
||||||
t = bld.SAMBA_GENERATOR('ctdb-pc',
|
--- samba-4.4.6/dynconfig/wscript 2016-01-26 14:45:46.000000000 +0300
|
||||||
|
+++ samba-4.4.6-new/dynconfig/wscript 2016-10-15 22:21:18.159705132 +0300
|
||||||
|
@@ -416,11 +416,3 @@
|
||||||
|
public_headers=os_path_relpath(os.path.join(Options.launch_dir, version_header), bld.curdir),
|
||||||
|
header_path='samba',
|
||||||
|
cflags=cflags)
|
||||||
|
-
|
||||||
|
- # install some extra empty directories
|
||||||
|
- bld.INSTALL_DIRS("", "${CONFIGDIR} ${PRIVATE_DIR} ${LOGFILEBASE}");
|
||||||
|
- bld.INSTALL_DIRS("", "${PRIVATE_DIR} ${PRIVILEGED_SOCKET_DIR}")
|
||||||
|
- bld.INSTALL_DIRS("", "${STATEDIR} ${CACHEDIR}");
|
||||||
|
-
|
||||||
|
- # these might be on non persistent storage
|
||||||
|
- bld.INSTALL_DIRS("", "${LOCKDIR} ${PIDDIR} ${SOCKET_DIR}")
|
||||||
|
@ -18,18 +18,18 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "samba-4.3.11";
|
name = "samba-${version}";
|
||||||
|
version = "4.4.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://samba/pub/samba/stable/${name}.tar.gz";
|
url = "mirror://samba/pub/samba/stable/${name}.tar.gz";
|
||||||
sha256 = "1v2grwivm6rasz1ganbybs0ikz1lydaniy65kxf1v8rl1qqngach";
|
sha256 = "1361ijz7vpgf66w3j9z7qb37rnlrydxw01ibjnfhjqqcb7fj7i1p";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" ];
|
outputs = [ "out" "dev" "man" ];
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
[ ./4.x-no-persistent-install.patch
|
[ ./4.x-no-persistent-install.patch
|
||||||
./4.x-fix-ctdb-deps.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
|
Loading…
Reference in New Issue
Block a user