summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-07 14:12:05 +0100
committerKarolin Seeger <kseeger@samba.org>2009-12-08 10:58:31 +0100
commit3d9b08ce23fcd84835811207be03fc32c608af3d (patch)
tree25bef45088e8c9061dcc07ecc64edded3a9e4b15
parent93af3abc86add38184883fe0e738c2de675a1450 (diff)
downloadsamba-3d9b08ce23fcd84835811207be03fc32c608af3d.tar.gz
samba-3d9b08ce23fcd84835811207be03fc32c608af3d.tar.xz
samba-3d9b08ce23fcd84835811207be03fc32c608af3d.zip
packaging(RHEL-CTDB): add some checks to test the built smbd
Test whether some required features have been built into smbd. Can be extended... Michael (cherry picked from commit c6435cd8b36320b27a2a9940380daa776536e3e6)
-rw-r--r--packaging/RHEL-CTDB/samba.spec.tmpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl
index 4967dfd200c..8d12bdd5277 100644
--- a/packaging/RHEL-CTDB/samba.spec.tmpl
+++ b/packaging/RHEL-CTDB/samba.spec.tmpl
@@ -270,6 +270,16 @@ fi
make -j %{numcpu} %{?_smp_mflags} \
everything modules pam_smbpass
+# check that desired suppor has been compiled into smbd:
+export LD_LIBRARY_PATH=./bin
+for test in HAVE_POSIX_ACLS HAVE_LDAP HAVE_KRB5 HAVE_GPFS CLUSTER_SUPPORT
+do
+ if ! $(./bin/smbd -b | grep -q $test ) ; then
+ echo "ERROR: '$test' is not in smbd. Build stopped."
+ exit 1;
+ fi
+done
+
# Remove some permission bits to avoid to many dependencies
cd ..
find examples docs -type f | xargs -r chmod -x