Группа :: Система/Серверы
Пакет: sbd
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: sbd-1.5.2.patch
Скачать
Скачать
.gear/rules | 4 ++
.gear/sbd.spec | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
.gear/tags/list | 1 +
src/Makefile.am | 4 +-
tests/Makefile.am | 5 +++
5 files changed, 144 insertions(+), 1 deletion(-)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..cf00891
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,4 @@
+spec: .gear/sbd.spec
+tar: v@version@:.
+diff: v@version@:. . name=@name@-@version@.patch
+copy?: .gear/*.patch
diff --git a/.gear/sbd.spec b/.gear/sbd.spec
new file mode 100644
index 0000000..8940525
--- /dev/null
+++ b/.gear/sbd.spec
@@ -0,0 +1,131 @@
+%define _localstatedir %_var
+
+Name: sbd
+Version: 1.5.2
+Release: alt1
+
+Summary: Storage-based death
+License: GPLv2+
+Group: System/Servers
+Url: https://github.com/ClusterLabs/sbd
+Vcs: https://github.com/ClusterLabs/sbd.git
+
+Packager: Andrew A. Vasilyev <andy@altlinux.org>
+
+Source: %name-%version.tar
+Patch1: %name-%version.patch
+
+BuildRequires: libaio-devel libpacemaker-devel
+BuildRequires: glib2-devel corosync libcorosync-devel libuuid-devel libqb-devel libxml2-devel
+BuildRequires: /usr/bin/pod2man
+
+Requires: corosync dlm pacemaker pacemaker-remote
+
+Conflicts: fence-agents-sbd < 4.5.0
+
+%description
+This package contains the storage-based death functionality.
+
+%package tests
+Summary: Storage-based death environment for regression tests
+License: GPLv2+
+Group: System/Servers
+Requires: %name = %EVR
+
+%description tests
+This package provides an environment + testscripts for
+regression-testing sbd.
+
+%package tests-devel
+Summary: Storage-based death environment for regression tests
+License: GPLv2+
+Group: System/Servers
+Requires: %name = %EVR
+
+%description tests-devel
+This package provides a shared library symlink for
+regression-testing sbd.
+
+%prep
+%setup
+%patch1 -p1
+
+%build
+./autogen.sh
+%ifnarch %e2k
+%add_optflags -Wall -Werror
+%endif
+%configure --with-runstatedir=/run
+%make_build
+
+%install
+%makeinstall_std
+
+rm -rf %buildroot%_libdir/stonith
+
+install -D -m 0755 src/sbd.sh %buildroot%_datadir/%name/sbd.sh
+install -D -m 0755 tests/regressions.sh %buildroot%_datadir/%name/regressions.sh
+
+install -D -m 0644 src/sbd.service %buildroot%_unitdir/sbd.service
+install -D -m 0644 src/sbd_remote.service %buildroot%_unitdir/sbd_remote.service
+
+mkdir -p %buildroot%_sysconfdir/sysconfig
+install -m 644 src/sbd.sysconfig %buildroot%_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
+
+%post
+%post_service sbd
+%post_service sbd_remote
+
+%preun
+%preun_service sbd
+%preun_service sbd_remote
+
+%files
+%config(noreplace) %_sysconfdir/sysconfig/%name
+%_sbindir/%name
+%_datadir/%name
+%exclude %_datadir/%name/regressions.sh
+%doc %_man8dir/*
+%_unitdir/sbd.service
+%_unitdir/sbd_remote.service
+%doc COPYING
+%_datadir/pkgconfig/%name.pc
+
+%files tests
+%dir %_datadir/%name
+%_datadir/%name/regressions.sh
+%_libdir/libsbdtestbed*
+%exclude %_libdir/libsbdtestbed.so
+
+%files tests-devel
+%_libdir/libsbdtestbed.so
+
+%changelog
+* Mon Jan 09 2023 Andrew A. Vasilyev <andy@altlinux.org> 1.5.2-alt1
+- 1.5.2
+
+* Tue Nov 16 2021 Andrew A. Vasilyev <andy@altlinux.org> 1.5.1-alt1
+- 1.5.1
+
+* Wed Jul 14 2021 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 1.5.0-alt2
+- disabled adding -Werror for e2k arch
+
+* Mon Jun 14 2021 Andrew A. Vasilyev <andy@altlinux.org> 1.5.0-alt1
+- 1.5.0
+
+* Wed Dec 02 2020 Andrew A. Vasilyev <andy@altlinux.org> 1.4.2-alt1
+- 1.4.2
+
+* Thu Dec 26 2019 Andrew A. Vasilyev <andy@altlinux.org> 1.4.1-alt3
+- add tests-devel package
+
+* Tue Dec 24 2019 Andrew A. Vasilyev <andy@altlinux.org> 1.4.1-alt2
+- add Requires for corosync, pacemaker and dlm packages
+
+* Mon Dec 16 2019 Andrew A. Vasilyev <andy@altlinux.org> 1.4.1-alt1
+- initial import for ALT
+
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..89b05f1
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+cf5c2208bad2db2dff9b09624b89b05415c3bc11 v1.5.2
diff --git a/src/Makefile.am b/src/Makefile.am
index db10c71..e80c080 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,9 @@
AM_CFLAGS = -D_GNU_SOURCE -DCHECK_AIS -DSBINDIR=\"$(sbindir)\"
AM_CPPFLAGS = -I$(includedir)/pacemaker \
-I$(includedir)/heartbeat \
- $(glib_CFLAGS)
+ -I/usr/include/libxml2 \
+ $(glib_CFLAGS)
+AM_LDFLAGS = -lglib-2.0
sbin_PROGRAMS = sbd
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0b9a406..9059d34 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,3 +2,8 @@ lib_LTLIBRARIES = libsbdtestbed.la
libsbdtestbed_la_SOURCES = sbd-testbed.c
libsbdtestbed_la_LDFLAGS =
libsbdtestbed_la_LIBADD = @LIBADD_DL@
+AM_CPPFLAGS = -I$(includedir)/pacemaker \
+ -I$(includedir)/heartbeat \
+ -I/usr/include/libxml2 \
+ $(glib_CFLAGS)
+AM_LDFLAGS = -lglib-2.0