+ # Determine flags that are different between server/client module builds
+ echo "Enabled Build Profiles: $${DEB_BUILD_PROFILES}"
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "server"; then \
+ export EXTRAFLAGS="--enable-server"; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "systemd"; then \
+ cp debian/lustre-server-utils.install.in \
+ debian/lustre-server-utils.install; \
+ else \
+ sed /systemd/d debian/lustre-server-utils.install.in \
+ > debian/lustre-server-utils.install; \
+ fi; \
+ else \
+ export EXTRAFLAGS="--disable-server"; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "systemd"; then \
+ cp debian/lustre-client-utils.install.in \
+ debian/lustre-client-utils.install; \
+ else \
+ sed /systemd/d debian/lustre-client-utils.install.in \
+ > debian/lustre-client-utils.install; \
+ fi; \
+ fi; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "zfs"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --with-zfs=$${ZFS_SRC} --with-spl=$${SPL_SRC}"; \
+ else \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --without-zfs" ; \
+ fi; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "ldiskfs"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} \
+ --enable-ldiskfs --enable-quilt"; \
+ else \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --disable-ldiskfs"; \
+ fi; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "o2ib"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --with-o2ib=$${O2IB_SRC}"; \
+ fi; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -qw "gss"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --enable-gss"; \
+ elif echo "$${DEB_BUILD_PROFILES}" | grep -qw "nogss"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --disable-gss"; \
+ fi; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -qw "crypto"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --enable-crypto"; \
+ elif echo "$${DEB_BUILD_PROFILES}" | grep -qw "nocrypto"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --disable-crypto"; \
+ fi; \
+ echo "Final value of EXTRAFLAGS: $${EXTRAFLAGS}"; \