%bcond_without lustre_iokit
%bcond_without lustre_modules
%bcond_with snmp
+%bcond_without gss_keyring
%bcond_without manpages
%bcond_without shared
%bcond_without static
Source7: kmp-lustre-tests.files
URL: https://wiki.hpdd.intel.com/
BuildRoot: %{_tmppath}/lustre-%{version}-root
-Requires: %{requires_kmod_name} = %{requires_kmod_version}
-BuildRequires: libtool
+Requires: %{requires_kmod_name} = %{requires_kmod_version} libyaml zlib
+BuildRequires: libtool libyaml-devel zlib-devel
%if %{with servers}
Requires: lustre-osd
Requires: lustre-osd-mount
%{!?with_servers:--disable-server} \
%{!?with_zfs:--without-zfs} \
%{!?with_snmp:--disable-snmp} \
+ %{!?with_gss_keyring:--disable-gss-keyring} \
%{!?with_manpages:--disable-manpages} \
%{!?with_systemd:--with-systemdsystemunitdir=no} \
%{?with_systemd:--with-systemdsystemunitdir=%{_unitdir}} \
%if %{_vendor}=="redhat"
# The following scripts are Red Hat specific
%if %{with servers}
+echo '%{_sysconfdir}/init.d/lustre' >>lustre.files
echo '%{_sysconfdir}/sysconfig/lustre' >>lustre.files
+%if %{with gss_keyring}
+echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files
echo '%{_sysconfdir}/sysconfig/lsvcgss' >>lustre.files
-echo '%{_sysconfdir}/init.d/lustre' >>lustre.files
+%endif
%endif
%if %{without systemd}
echo '%{_sysconfdir}/init.d/lnet' >>lustre.files
%endif
-
-echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files
%endif
+CONFIGURE_ARGS="%{?configure_args}"
+if [ -z "$(echo $CONFIGURE_ARGS | grep "\-\-disable\-gss\-keyring")" ]; then
+ echo '%config(noreplace) %{_sysconfdir}/request-key.d/lgssc.conf' >>lustre.files
+fi
+
%if %{with servers}
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/
install -m 0755 contrib/scripts/pacemaker/* $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/