From 8c37e70d5134e841900fac69d80413d5b2a0334e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 7 Dec 2009 14:12:05 +0100 Subject: 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 --- packaging/RHEL-CTDB/samba.spec.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'packaging') diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl index 4967dfd200..8d12bdd527 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 -- cgit