Accepting request 1046463 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1046463 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/drbd-utils?expand=0&rev=52
This commit is contained in:
commit
378bb6827c
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 3 05:09:00 UTC 2023 - Heming Zhao <heming.zhao@suse.com>
|
||||||
|
|
||||||
|
- drbd.service fails to load - incorrect path to executable (bsc#1206754)
|
||||||
|
* use %suse_version to replace %UsrMerge
|
||||||
|
* modify drbd-utils.spec for create symbolic folder "/lib/drbd"
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 14 06:37:53 UTC 2022 - Roger Zhou <zzhou@suse.com>
|
Fri Oct 14 06:37:53 UTC 2022 - Roger Zhou <zzhou@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package drbd-utils
|
# spec file for package drbd-utils
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,13 +17,15 @@
|
|||||||
|
|
||||||
|
|
||||||
%define services drbd.service drbd-lvchange@.service drbd-promote@.service drbd-reconfigure-suspend-or-error@.service drbd-services@.target drbd-wait-promotable@.service drbd@.service drbd@.target ocf.ra@.service
|
%define services drbd.service drbd-lvchange@.service drbd-promote@.service drbd-reconfigure-suspend-or-error@.service drbd-services@.target drbd-wait-promotable@.service drbd@.service drbd@.target ocf.ra@.service
|
||||||
%if !0%{?usrmerged}
|
%if 0%{?suse_version} < 1550
|
||||||
%define sbindir /sbin
|
# for SLEs
|
||||||
# see bsc#1203220 & usrmerge_move_lib_to_prefix_lib.patch for %{libdir}
|
%define sbindir /sbin
|
||||||
%define libdir /usr/lib
|
# see bsc#1203220 & usrmerge_move_lib_to_prefix_lib.patch for %{libdir}
|
||||||
|
%define libdir /usr/lib
|
||||||
%else
|
%else
|
||||||
%define sbindir %{_sbindir}
|
# for opensuse
|
||||||
%define libdir %{_prefix}/lib
|
%define sbindir %{_sbindir}
|
||||||
|
%define libdir %{_prefix}/lib
|
||||||
%endif
|
%endif
|
||||||
%bcond_without drbdmon
|
%bcond_without drbdmon
|
||||||
# Man pages are included in the released tarball.
|
# Man pages are included in the released tarball.
|
||||||
@ -111,7 +113,7 @@ PATH=/sbin:$PATH ./configure \
|
|||||||
--with-bashcompletion \
|
--with-bashcompletion \
|
||||||
--with-initscripttype=systemd \
|
--with-initscripttype=systemd \
|
||||||
--with-systemdunitdir=%{_prefix}/lib/systemd/system \
|
--with-systemdunitdir=%{_prefix}/lib/systemd/system \
|
||||||
%if !0%{?usrmerged}
|
%if 0%{?suse_version} < 1550
|
||||||
--sbindir=/sbin \
|
--sbindir=/sbin \
|
||||||
%else
|
%else
|
||||||
--sbindir=%{_sbindir} \
|
--sbindir=%{_sbindir} \
|
||||||
@ -154,8 +156,12 @@ done
|
|||||||
ln -sf drbd.conf-9.0.5.gz %{_mandir}/man5/drbd.conf.5.gz
|
ln -sf drbd.conf-9.0.5.gz %{_mandir}/man5/drbd.conf.5.gz
|
||||||
ln -sf drbd.conf-9.0.5.gz %{_mandir}/ja/man5/drbd.conf.5.gz
|
ln -sf drbd.conf-9.0.5.gz %{_mandir}/ja/man5/drbd.conf.5.gz
|
||||||
%if %{with drbdmon}
|
%if %{with drbdmon}
|
||||||
ln -sf drbdmon-9.0.8.gz %{_mandir}/man8/drbdmon.8.gz
|
ln -sf drbdmon-9.0.8.gz %{_mandir}/man8/drbdmon.8.gz
|
||||||
ln -sf drbdmon-9.0.8.gz %{_mandir}/ja/man8/drbdmon.8.gz
|
ln -sf drbdmon-9.0.8.gz %{_mandir}/ja/man8/drbdmon.8.gz
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version} < 1550
|
||||||
|
# create symbolic folder for bsc#1206364
|
||||||
|
ln -s /usr/lib/drbd /lib/drbd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
Loading…
Reference in New Issue
Block a user