diff options
author | Marian Csontos <mcsontos@redhat.com> | 2015-06-02 16:28:46 +0200 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2015-06-02 16:28:46 +0200 |
commit | 3108a63569df092f05f0d2c49d9b4245bb15b4a8 (patch) | |
tree | 7a625fbc4305dc9d90ca9f2c15263324c8fb47e7 | |
parent | f0c7ed510b99425343ea444d167cbd018d4e6abe (diff) | |
download | lvm2-dev-mcsontos-lvmpolld-test.tar.gz |
[WIP] spec+lvmpolld: attempt to add polld to specdev-mcsontos-lvmpolld-test
-rw-r--r-- | nix/default.nix | 1 | ||||
-rw-r--r-- | spec/build.inc | 2 | ||||
-rw-r--r-- | spec/packages.inc | 13 | ||||
-rw-r--r-- | spec/source.inc | 2 |
4 files changed, 18 insertions, 0 deletions
diff --git a/nix/default.nix b/nix/default.nix index cd2fd335d..c7462a09e 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -367,6 +367,7 @@ let centos66 = centos65; centos70 = [ "dlm-devel" "dlm" "corosynclib-devel" "perl-Digest-MD5" "systemd-devel" "socat" # used by test suite lvmpolld + "sanlock" # used by test suite lvmlockd "procps-ng" ]; fedora17_18 = [ "dlm-devel" "corosynclib-devel" "libblkid" "libblkid-devel" 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..c43245d8a 100644 --- a/spec/packages.inc +++ b/spec/packages.inc @@ -86,6 +86,9 @@ fi %if %{have_service lvmpolld} %{_sbindir}/lvmpolld %endif +%if %{have_service lvmlockd} + %{_sbindir}/lvmlockd +%endif %if %{have_with cache} %{_mandir}/man7/lvmcache.7.gz %endif @@ -156,6 +159,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 +188,10 @@ fi %{_unitdir}/lvm2-lvmpolld.service %{_unitdir}/lvm2-lvmpolld.socket %endif + %if %{have_service lvmlockd} + %{_unitdir}/lvm2-lvmlockd.service + %{_unitdir}/lvm2-lvmlockd.socket + %endif %else %{_sysconfdir}/rc.d/init.d/lvm2-monitor %{_sysconfdir}/rc.d/init.d/blk-availability @@ -191,6 +201,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 |