Compare commits
10 Commits
20cae7bf21
...
5df6708474
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5df6708474 | ||
|
|
2b82683ab7 | ||
|
|
199bf5b708 | ||
|
|
f098f49393 | ||
|
|
6fa95898a9 | ||
|
|
2f23caf86a | ||
|
|
ff658431e4 | ||
|
|
50fea562a7 | ||
|
|
665a4ba499 | ||
|
|
c82a75ddb6 |
@ -0,0 +1,39 @@
|
||||
From 5925e37bb7aa3fe787478a2bf1f0b4bbbc2b93fb Mon Sep 17 00:00:00 2001
|
||||
From: jiangxinyu <jiangxinyu@kylinos.cn>
|
||||
Date: Mon, 28 Mar 2022 14:43:59 +0800
|
||||
Subject: [PATCH] Fix the problem of service error when uninstalling
|
||||
|
||||
---
|
||||
src/sbd.service.in | 2 +-
|
||||
src/sbd_remote.service.in | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/sbd.service.in b/src/sbd.service.in
|
||||
index 94b0f99..b51f570 100644
|
||||
--- a/src/sbd.service.in
|
||||
+++ b/src/sbd.service.in
|
||||
@@ -5,7 +5,7 @@ Before=pacemaker.service
|
||||
Before=dlm.service
|
||||
After=systemd-modules-load.service iscsi.service
|
||||
PartOf=corosync.service
|
||||
-RefuseManualStop=true
|
||||
+RefuseManualStop=no
|
||||
RefuseManualStart=true
|
||||
|
||||
[Service]
|
||||
diff --git a/src/sbd_remote.service.in b/src/sbd_remote.service.in
|
||||
index cfcafb5..7392446 100644
|
||||
--- a/src/sbd_remote.service.in
|
||||
+++ b/src/sbd_remote.service.in
|
||||
@@ -3,7 +3,7 @@ Description=Shared-storage based fencing daemon on pacemaker remote node
|
||||
Documentation=man:sbd(8)
|
||||
After=systemd-modules-load.service iscsi.service
|
||||
PartOf=pacemaker_remote.service
|
||||
-RefuseManualStop=true
|
||||
+RefuseManualStop=no
|
||||
RefuseManualStart=true
|
||||
|
||||
[Service]
|
||||
--
|
||||
2.33.0
|
||||
|
||||
BIN
sbd-6bb085f5704dd4c3841c79504f2aed2228e6d76a.tar.gz
Normal file
BIN
sbd-6bb085f5704dd4c3841c79504f2aed2228e6d76a.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
103
sbd.spec
103
sbd.spec
@ -1,33 +1,22 @@
|
||||
#
|
||||
# spec file for package sbd
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 Lars Marowsky-Bree
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
%global commit 7f33d1a409d0a4e2cd69946688c48eaa8f3c5d26
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global longcommit 6bb085f5704dd4c3841c79504f2aed2228e6d76a
|
||||
%global shortcommit %(echo %{longcommit}|cut -c1-8)
|
||||
%global modified %(echo %{longcommit}-|cut -f2 -d-)
|
||||
%global github_owner Clusterlabs
|
||||
%global buildnum 15
|
||||
%global buildnum 3
|
||||
%global watchdog_timeout_default 5
|
||||
%global sync_resource_startup_sysconfig ""
|
||||
|
||||
%bcond_without sync_resource_startup_default
|
||||
|
||||
Name: sbd
|
||||
Summary: Storage-based death
|
||||
License: GPLv2 and MIT
|
||||
Group: System Environment/Daemons
|
||||
Version: 1.4.0
|
||||
Release: %{buildnum}%{?dist}
|
||||
Version: 1.5.1
|
||||
Release: %{buildnum}
|
||||
Url: https://github.com/%{github_owner}/%{name}
|
||||
Source0: https://github.com/%{github_owner}/%{name}/archive/%{commit}/%{name}-%{commit}_all.tar.gz
|
||||
Source0: https://github.com/%{github_owner}/%{name}/archive/%{longcommit}/%{name}-%{longcommit}.tar.gz
|
||||
Patch0: 0001-Fix-the-problem-of-service-error-when-uninstalling.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@ -41,39 +30,47 @@ BuildRequires: libuuid-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: systemd
|
||||
BuildRequires: make
|
||||
Conflicts: fence-agents-sbd < 4.2.1
|
||||
Conflicts: pacemaker-libs < 2.0.5
|
||||
|
||||
%if 0%{?rhel} > 0
|
||||
ExclusiveArch: i686 x86_64 s390x ppc64le aarch64
|
||||
%endif
|
||||
ExclusiveArch: x86_64 aarch64 riscv64 ppc64le
|
||||
|
||||
%if %{defined systemd_requires}
|
||||
%systemd_requires
|
||||
%endif
|
||||
|
||||
%description
|
||||
|
||||
This package contains the storage-based death functionality.
|
||||
Available rpmbuild rebuild options:
|
||||
--with(out) : sync_resource_startup_default
|
||||
|
||||
###########################################################
|
||||
%package tests
|
||||
Summary: Storage-based death environment for regression tests
|
||||
License: GPLv2 and MIT
|
||||
Group: System Environment/Daemons
|
||||
|
||||
%description tests
|
||||
This package provides an environment + testscripts for
|
||||
regression-testing sbd.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{commit}
|
||||
|
||||
###########################################################
|
||||
%autosetup -p1 -n %{name}-%{longcommit}
|
||||
|
||||
%build
|
||||
autoreconf -i
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Wall "
|
||||
%configure
|
||||
./autogen.sh
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror"
|
||||
%configure --with-watchdog-timeout-default=%{watchdog_timeout_default} \
|
||||
--with-sync-resource-startup-default=%{?with_sync_resource_startup_default:yes}%{!?with_sync_resource_startup_default:no} \
|
||||
--with-sync-resource-startup-sysconfig=%{sync_resource_startup_sysconfig} \
|
||||
--with-runstatedir=%{_rundir}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
###########################################################
|
||||
|
||||
%install
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/stonith
|
||||
|
||||
install -D -m 0755 tests/regressions.sh $RPM_BUILD_ROOT/usr/share/sbd/regressions.sh
|
||||
%if %{defined _unitdir}
|
||||
install -D -m 0644 src/sbd.service $RPM_BUILD_ROOT/%{_unitdir}/sbd.service
|
||||
install -D -m 0644 src/sbd_remote.service $RPM_BUILD_ROOT/%{_unitdir}/sbd_remote.service
|
||||
@ -82,7 +79,10 @@ install -D -m 0644 src/sbd_remote.service $RPM_BUILD_ROOT/%{_unitdir}/sbd_remote
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||
install -m 644 src/sbd.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/sbd
|
||||
|
||||
###########################################################
|
||||
# Don't package static libs
|
||||
find %{buildroot} -name '*.a' -type f -print0 | xargs -0 rm -f
|
||||
find %{buildroot} -name '*.la' -type f -print0 | xargs -0 rm -f
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@ -112,11 +112,12 @@ fi
|
||||
%endif
|
||||
|
||||
%files
|
||||
###########################################################
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/sbd
|
||||
%{_sbindir}/sbd
|
||||
#%{_datadir}/sbd
|
||||
%{_datadir}/sbd
|
||||
%{_datadir}/pkgconfig/sbd.pc
|
||||
%exclude %{_datadir}/sbd/regressions.sh
|
||||
%doc %{_mandir}/man8/sbd*
|
||||
%if %{defined _unitdir}
|
||||
%{_unitdir}/sbd.service
|
||||
@ -124,6 +125,28 @@ fi
|
||||
%endif
|
||||
%doc COPYING
|
||||
|
||||
%files tests
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/sbd
|
||||
%{_datadir}/sbd/regressions.sh
|
||||
%{_libdir}/libsbdtestbed*
|
||||
|
||||
%changelog
|
||||
* Wed Mar 06 2024 xurui <rui.xu@shingroup.cn> - 1.5.1-3
|
||||
- Add ppc64le to ExclusiveArch
|
||||
|
||||
* Mon Jun 05 2023 laokz <zhangkai@iscas.ac.cn> - 1.5.1-2
|
||||
- Add riscv64 to ExclusiveArch
|
||||
|
||||
* Mon Jul 25 2022 liupei <liupei@kylinos.cn> - 1.5.1-1
|
||||
- update to 1.5.1
|
||||
|
||||
* Mon Mar 28 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.0-17
|
||||
- Fix the problem of service error when uninstalling
|
||||
|
||||
* Thu Mar 24 2022 baizhonggui <baizhonggui@huawei.com> - 1.4.0-16
|
||||
* Delete %{dist}
|
||||
|
||||
* Fri Oct 30 2020 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.0-15
|
||||
- Init sbd project
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user