update to sanlock-3.3.0
This commit is contained in:
parent
b10378f6dd
commit
640f0fe699
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,3 +19,4 @@
|
|||||||
/sanlock-3.2.1.tar.gz
|
/sanlock-3.2.1.tar.gz
|
||||||
/sanlock-3.2.2.tar.gz
|
/sanlock-3.2.2.tar.gz
|
||||||
/sanlock-3.2.4.tar.gz
|
/sanlock-3.2.4.tar.gz
|
||||||
|
/sanlock-3.3.0.tar.gz
|
||||||
|
124
sanlock.spec
124
sanlock.spec
@ -4,14 +4,8 @@
|
|||||||
%define with_systemd 1
|
%define with_systemd 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
|
||||||
%define with_systemd_macros 1
|
|
||||||
%else
|
|
||||||
%define with_systemd_macros 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: sanlock
|
Name: sanlock
|
||||||
Version: 3.2.4
|
Version: 3.3.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A shared storage lock manager
|
Summary: A shared storage lock manager
|
||||||
|
|
||||||
@ -20,6 +14,7 @@ License: GPLv2 and GPLv2+ and LGPLv2+
|
|||||||
URL: https://fedorahosted.org/sanlock/
|
URL: https://fedorahosted.org/sanlock/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: libblkid-devel libaio-devel python python-devel
|
BuildRequires: libblkid-devel libaio-devel python python-devel
|
||||||
|
ExclusiveArch: x86_64 aarch64 %{power64}
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
%endif
|
%endif
|
||||||
@ -34,14 +29,14 @@ Requires(postun): systemd-units
|
|||||||
%endif
|
%endif
|
||||||
Source0: http://git.fedorahosted.org/cgit/sanlock.git/snapshot/%{name}-%{version}.tar.gz
|
Source0: http://git.fedorahosted.org/cgit/sanlock.git/snapshot/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
#Patch0: 0001-foo.patch
|
# Patch0: 0001-foo.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The sanlock daemon manages leases for applications on hosts using shared storage.
|
The sanlock daemon manages leases for applications on hosts using shared storage.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#%patch0 -p1 -b .0001-foo.patch
|
# %patch0 -p1 -b .0001-foo.patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# upstream does not require configure
|
# upstream does not require configure
|
||||||
@ -72,11 +67,10 @@ make -C reset \
|
|||||||
|
|
||||||
|
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
install -D -m 0755 init.d/sanlock $RPM_BUILD_ROOT/lib/systemd/systemd-sanlock
|
install -D -m 0644 init.d/sanlock.service.native $RPM_BUILD_ROOT/%{_unitdir}/sanlock.service
|
||||||
install -D -m 0644 init.d/sanlock.service $RPM_BUILD_ROOT/%{_unitdir}/sanlock.service
|
install -D -m 0755 init.d/wdmd $RPM_BUILD_ROOT/usr/lib/systemd/systemd-wdmd
|
||||||
install -D -m 0755 init.d/wdmd $RPM_BUILD_ROOT/lib/systemd/systemd-wdmd
|
install -D -m 0644 init.d/wdmd.service.native $RPM_BUILD_ROOT/%{_unitdir}/wdmd.service
|
||||||
install -D -m 0644 init.d/wdmd.service $RPM_BUILD_ROOT/%{_unitdir}/wdmd.service
|
install -D -m 0755 init.d/fence_sanlockd $RPM_BUILD_ROOT/usr/lib/systemd/systemd-fence_sanlockd
|
||||||
install -D -m 0755 init.d/fence_sanlockd $RPM_BUILD_ROOT/lib/systemd/systemd-fence_sanlockd
|
|
||||||
install -D -m 0644 init.d/fence_sanlockd.service $RPM_BUILD_ROOT/%{_unitdir}/fence_sanlockd.service
|
install -D -m 0644 init.d/fence_sanlockd.service $RPM_BUILD_ROOT/%{_unitdir}/fence_sanlockd.service
|
||||||
install -D -m 0644 init.d/sanlk-resetd.service $RPM_BUILD_ROOT/%{_unitdir}/sanlk-resetd.service
|
install -D -m 0644 init.d/sanlk-resetd.service $RPM_BUILD_ROOT/%{_unitdir}/sanlk-resetd.service
|
||||||
%else
|
%else
|
||||||
@ -91,9 +85,6 @@ install -D -m 0644 src/logrotate.sanlock \
|
|||||||
install -D -m 0644 src/sanlock.conf \
|
install -D -m 0644 src/sanlock.conf \
|
||||||
$RPM_BUILD_ROOT/etc/sanlock/sanlock.conf
|
$RPM_BUILD_ROOT/etc/sanlock/sanlock.conf
|
||||||
|
|
||||||
install -D -m 0644 init.d/sanlock.sysconfig \
|
|
||||||
$RPM_BUILD_ROOT/etc/sysconfig/sanlock
|
|
||||||
|
|
||||||
install -D -m 0644 init.d/wdmd.sysconfig \
|
install -D -m 0644 init.d/wdmd.sysconfig \
|
||||||
$RPM_BUILD_ROOT/etc/sysconfig/wdmd
|
$RPM_BUILD_ROOT/etc/sysconfig/wdmd
|
||||||
|
|
||||||
@ -116,66 +107,23 @@ getent passwd sanlock > /dev/null || /usr/sbin/useradd \
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%if %{with_systemd_macros}
|
|
||||||
%systemd_post wdmd.service sanlock.service
|
%systemd_post wdmd.service sanlock.service
|
||||||
%else
|
|
||||||
if [ $1 -eq 1 ] ; then
|
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
if [ $1 -eq 1 ] ; then
|
|
||||||
/sbin/chkconfig --add sanlock
|
|
||||||
/sbin/chkconfig --add wdmd
|
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%if %{with_systemd_macros}
|
%systemd_preun wdmd.service sanlock.service
|
||||||
%systemd_preun sanlock.service
|
|
||||||
%systemd_preun wdmd.service
|
|
||||||
%else
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
/bin/systemctl --no-reload disable sanlock.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop sanlock.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl --no-reload disable wdmd.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop wdmd.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
/sbin/service sanlock stop > /dev/null 2>&1
|
|
||||||
/sbin/chkconfig --del sanlock
|
|
||||||
/sbin/service wdmd stop > /dev/null 2>&1
|
|
||||||
/sbin/chkconfig --del wdmd
|
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%if %{with_systemd_macros}
|
%systemd_postun
|
||||||
%systemd_postun_with_restart sanlock.service
|
|
||||||
%systemd_postun_with_restart wdmd.service
|
|
||||||
%else
|
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
/bin/systemctl try-restart sanlock.service >/dev/null 2>&1 || :
|
|
||||||
/bin/systemctl try-restart wdmd.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
/sbin/service sanlock condrestart >/dev/null 2>&1 || :
|
|
||||||
/sbin/service wdmd condrestart >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
/lib/systemd/systemd-sanlock
|
/usr/lib/systemd/systemd-wdmd
|
||||||
/lib/systemd/systemd-wdmd
|
|
||||||
%{_unitdir}/sanlock.service
|
%{_unitdir}/sanlock.service
|
||||||
%{_unitdir}/wdmd.service
|
%{_unitdir}/wdmd.service
|
||||||
%else
|
%else
|
||||||
@ -191,10 +139,10 @@ fi
|
|||||||
%{_mandir}/man8/sanlock*
|
%{_mandir}/man8/sanlock*
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/sanlock
|
%config(noreplace) %{_sysconfdir}/logrotate.d/sanlock
|
||||||
%config(noreplace) %{_sysconfdir}/sanlock/sanlock.conf
|
%config(noreplace) %{_sysconfdir}/sanlock/sanlock.conf
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/sanlock
|
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/wdmd
|
%config(noreplace) %{_sysconfdir}/sysconfig/wdmd
|
||||||
%doc init.d/sanlock.service.native
|
%doc init.d/sanlock
|
||||||
%doc init.d/wdmd.service.native
|
%doc init.d/sanlock.service
|
||||||
|
%doc init.d/wdmd.service
|
||||||
|
|
||||||
%package lib
|
%package lib
|
||||||
Summary: A shared storage lock manager library
|
Summary: A shared storage lock manager library
|
||||||
@ -267,7 +215,7 @@ daemon for using sanlock and wdmd as a cluster fence agent.
|
|||||||
%files -n fence-sanlock
|
%files -n fence-sanlock
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
/lib/systemd/systemd-fence_sanlockd
|
/usr/lib/systemd/systemd-fence_sanlockd
|
||||||
%{_unitdir}/fence_sanlockd.service
|
%{_unitdir}/fence_sanlockd.service
|
||||||
%else
|
%else
|
||||||
%{_initddir}/fence_sanlockd
|
%{_initddir}/fence_sanlockd
|
||||||
@ -285,7 +233,6 @@ if [ $1 -eq 1 ] ; then
|
|||||||
%else
|
%else
|
||||||
/sbin/chkconfig --add fence_sanlockd
|
/sbin/chkconfig --add fence_sanlockd
|
||||||
%endif
|
%endif
|
||||||
ccs_update_schema > /dev/null 2>&1 ||:
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun -n fence-sanlock
|
%preun -n fence-sanlock
|
||||||
@ -330,36 +277,49 @@ common sanlock lockspace.
|
|||||||
%{_mandir}/man8/sanlk-reset*
|
%{_mandir}/man8/sanlk-reset*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 22 2016 David Teigland <teigland@redhat.com> - 3.3.0-1
|
||||||
|
- Update to sanlock-3.3.0
|
||||||
|
|
||||||
|
* Tue Dec 01 2015 David Teigland <teigland@redhat.com> - 3.2.4-2
|
||||||
|
- wdmd: prevent probe while watchdog is used
|
||||||
|
|
||||||
* Fri Jun 19 2015 David Teigland <teigland@redhat.com> - 3.2.4-1
|
* Fri Jun 19 2015 David Teigland <teigland@redhat.com> - 3.2.4-1
|
||||||
- Update to sanlock-3.2.4
|
- Update to sanlock-3.2.4
|
||||||
|
|
||||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
|
* Fri May 22 2015 David Teigland <teigland@redhat.com> - 3.2.3-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
- add pkgconfig files
|
||||||
|
|
||||||
* Tue Sep 30 2014 David Teigland <teigland@redhat.com> - 3.2.2-1
|
* Wed May 20 2015 David Teigland <teigland@redhat.com> - 3.2.3-1
|
||||||
|
- Update to sanlock-3.2.3
|
||||||
|
|
||||||
|
* Thu Oct 30 2014 David Teigland <teigland@redhat.com> - 3.2.2-2
|
||||||
|
- checksum endian fix
|
||||||
|
|
||||||
|
* Mon Sep 29 2014 David Teigland <teigland@redhat.com> - 3.2.2-1
|
||||||
- Update to sanlock-3.2.2
|
- Update to sanlock-3.2.2
|
||||||
|
|
||||||
* Thu Aug 28 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.1-2
|
|
||||||
- Drop exclusive arch options, it needs to be supported on all arches as per package guidelines
|
|
||||||
|
|
||||||
* Thu Aug 21 2014 David Teigland <teigland@redhat.com> - 3.2.1-1
|
* Thu Aug 21 2014 David Teigland <teigland@redhat.com> - 3.2.1-1
|
||||||
- Update to sanlock-3.2.1
|
- Update to sanlock-3.2.1
|
||||||
|
|
||||||
* Mon Aug 18 2014 David Teigland <teigland@redhat.com> - 3.2.0-1
|
* Mon Aug 18 2014 David Teigland <teigland@redhat.com> - 3.2.0-1
|
||||||
- Update to sanlock-3.2.0
|
- Update to sanlock-3.2.0
|
||||||
|
|
||||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-3
|
* Wed Jan 29 2014 David Teigland <teigland@redhat.com> - 3.1.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
- version interface
|
||||||
|
|
||||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-2
|
* Tue Jan 07 2014 David Teigland <teigland@redhat.com> - 3.1.0-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jan 15 2014 David Teigland <teigland@redhat.com> - 3.1.0-1
|
|
||||||
- Update to sanlock-3.1.0
|
- Update to sanlock-3.1.0
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-2
|
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.0.1-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Mass rebuild 2013-12-27
|
||||||
|
|
||||||
|
* Thu Aug 01 2013 David Teigland <teigland@redhat.com> - 3.0.1-2
|
||||||
|
- use /usr/lib instead of /lib
|
||||||
|
|
||||||
|
* Wed Jul 31 2013 David Teigland <teigland@redhat.com> - 3.0.1-1
|
||||||
|
- Update to sanlock-3.0.1
|
||||||
|
|
||||||
* Wed Jul 24 2013 David Teigland <teigland@redhat.com> - 3.0.0-1
|
* Wed Jul 24 2013 David Teigland <teigland@redhat.com> - 3.0.0-1
|
||||||
- Update to sanlock-3.0.0
|
- Update to sanlock-3.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user