[disable building of Lustre utility programs]),
[], [enable_utils="yes"])
AC_MSG_RESULT([$enable_utils])
-AS_IF([test "x$enable_utils" = xyes], [LB_CONFIG_INIT_SCRIPTS])
]) # LB_CONFIG_UTILS
#
]) # LB_CONFIG_DOCS
#
-# LB_CONFIG_INIT_SCRIPTS
-#
-# our init scripts only work on red hat linux
-#
-AC_DEFUN([LB_CONFIG_INIT_SCRIPTS], [
-ENABLE_INIT_SCRIPTS=0
-AS_IF([test x$enable_utils = xyes], [
- AC_CACHE_CHECK([whether to install init scripts], [lb_cv_enable_init_scripts], [
- # our scripts only work on red hat systems
- AS_IF([test -f /etc/init.d/functions -a -f /etc/sysconfig/network],
- [lb_cv_enable_init_scripts="yes"],
- [lb_cv_enable_init_scripts="no"])
- ])
- AS_IF([test "x$lb_cv_enable_init_scripts" = xyes],
- [ENABLE_INIT_SCRIPTS=1])
-])
-AC_SUBST(ENABLE_INIT_SCRIPTS)
-])
-
-#
# LB_CONFIG_HEADERS
#
# add -include config.h
AM_CONDITIONAL([UTILS], [test x$enable_utils = xyes])
AM_CONDITIONAL([TESTS], [test x$enable_tests = xyes])
AM_CONDITIONAL([DOC], [test x$ENABLE_DOC = x1])
-AM_CONDITIONAL([INIT_SCRIPTS], [test x$ENABLE_INIT_SCRIPTS = x1])
AM_CONDITIONAL([LINUX], [test x$lb_target_os = xlinux])
AM_CONDITIONAL([USES_DPKG], [test x$uses_dpkg = xyes])
AM_CONDITIONAL([USE_QUILT], [test x$use_quilt = xyes])
+AM_CONDITIONAL([RHEL], [test x$RHEL_KERNEL = xyes])
+AM_CONDITIONAL([SUSE], [test x$SUSE_KERNEL = xyes])
# Sanity check for PCLMULQDQ instruction availability
# PCLMULQDQ instruction is a new instruction available beginning with
:> lustre.files
-%if %{with servers}
+%if %{with servers} && %{with lustre_utils}
# The .ha_v2 extension identifies the heartbeat resource agent as using
# legacy syntax. Install a compatibility symlink to avoid conflicts when
# newer-style agents are added.
-%if %{with lustre_utils}
ln -s Lustre.ha_v2 $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/Lustre
echo '%{_sysconfdir}/ha.d/resource.d/Lustre.ha_v2' >>lustre.files
echo '%{_sysconfdir}/ha.d/resource.d/Lustre' >>lustre.files
%endif
-if [ -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/lustre ]; then
- echo '%{_sysconfdir}/sysconfig/lustre' >>lustre.files
- echo '%{_sysconfdir}/init.d/lustre' >>lustre.files
-fi
+%if %{_vendor}=="redhat"
+# The following scripts are Red Hat specific
+%if %{with servers}
+echo '%{_sysconfdir}/sysconfig/lustre' >>lustre.files
+echo '%{_sysconfdir}/init.d/lustre' >>lustre.files
+%endif
+echo '%{_sysconfdir}/init.d/lnet' >>lustre.files
%endif
-
-if [ -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/lnet ]; then
- echo '%{_sysconfdir}/init.d/lnet' >>lustre.files
-fi
# Create the pristine source directory.
cd $RPM_BUILD_DIR/lustre-%{version}