diff options
author | David Teigland <teigland@redhat.com> | 2015-03-05 14:00:44 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-07-02 15:42:26 -0500 |
commit | fe70b03de2956b6493993990d9fb1cde3f41ebcd (patch) | |
tree | 20313364aa6f69c38993ac9b7a95a3c496484d06 /spec | |
parent | a32d5a4afc5bdc4585132765fb02739a8f352e49 (diff) | |
download | lvm2-fe70b03de2956b6493993990d9fb1cde3f41ebcd.tar.gz |
Add lvmlockddev-dct-lvmlockd-AZ
Diffstat (limited to 'spec')
-rw-r--r-- | spec/build.inc | 2 | ||||
-rw-r--r-- | spec/packages.inc | 15 | ||||
-rw-r--r-- | spec/source.inc | 2 |
3 files changed, 19 insertions, 0 deletions
diff --git a/spec/build.inc b/spec/build.inc index 3979073d3..db9bcc2f6 100644 --- a/spec/build.inc +++ b/spec/build.inc @@ -6,6 +6,8 @@ %enableif %{enable_lvmetad} lvmetad %global enable_lvmpolld %(if echo %{services} | grep -q lvmpolld; then echo 1; else echo 0; fi) %enableif %{enable_lvmpolld} lvmpolld +%global enable_lvmlockd %(if echo %{services} | grep -q lvmlockd; then echo 1; else echo 0; fi) +%enableif %{enable_lvmlockd} lvmlockd %build %configure \ diff --git a/spec/packages.inc b/spec/packages.inc index b9caa6552..8d2195a6a 100644 --- a/spec/packages.inc +++ b/spec/packages.inc @@ -86,6 +86,10 @@ fi %if %{have_service lvmpolld} %{_sbindir}/lvmpolld %endif +%if %{have_service lvmlockd} + %{_sbindir}/lvmlockd + %{_sbindir}/lvmlockctl +%endif %if %{have_with cache} %{_mandir}/man7/lvmcache.7.gz %endif @@ -156,6 +160,9 @@ fi %{_mandir}/man8/lvmpolld.8.gz %{_mandir}/man8/lvm-lvpoll.8.gz %endif +%if %{have_service lvmlockd} + %{_mandir}/man8/lvmlockd.8.gz +%endif %dir %{_sysconfdir}/lvm %ghost %{_sysconfdir}/lvm/cache/.cache %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/lvm.conf @@ -182,6 +189,11 @@ fi %{_unitdir}/lvm2-lvmpolld.service %{_unitdir}/lvm2-lvmpolld.socket %endif + %if %{have_service lvmlockd} + %{_unitdir}/lvm2-lvmlockd.service + %{_unitdir}/lvm2-lvmlocking.service + #%{_unitdir}/lvm2-lvmlockd.socket + %endif %else %{_sysconfdir}/rc.d/init.d/lvm2-monitor %{_sysconfdir}/rc.d/init.d/blk-availability @@ -191,6 +203,9 @@ fi %if %{have_service lvmpolld} %{_sysconfdir}/rc.d/init.d/lvm2-lvmpolld %endif + #%if %{have_service lvmlockd} + # %{_sysconfdir}/rc.d/init.d/lvm2-lvmlockd + #%endif %endif ############################################################################## diff --git a/spec/source.inc b/spec/source.inc index a11f4b784..00d52821c 100644 --- a/spec/source.inc +++ b/spec/source.inc @@ -27,6 +27,8 @@ %service lvmpolld 1 +%service lvmlockd 1 + ############################################################## %if %{fedora} == 16 || %{rhel} == 6 |