-
Notifications
You must be signed in to change notification settings - Fork 11
/
pm_extras.spec.in
97 lines (79 loc) · 2.3 KB
/
pm_extras.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
########################################
# Derived definitions
########################################
%define __check_files %{nil}
%define name pm_extras
%define version @VERSION@
%define release 1%{?dist}
%define prefix /usr
%define libdir %{_libdir}
# rpmbuild --with ...
%bcond_with upstart
%bcond_with systemd
#
%define ocfdir /usr/lib/ocf/resource.d/heartbeat
%define extdir %{_libdir}/stonith/plugins/external
#
Summary: Extra Tools & Scripts for Pacemaker
Name: %{name}
Version: %{version}
Release: %{release}
Group: Applications
Source: %{name}-%{version}.tar.gz
License: GPL
Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRequires: make, pacemaker-libs-devel >= 1.1.0, cluster-glue-libs-devel >= 1.0.6, corosynclib-devel >= 2.0.0
Requires: pacemaker >= 1.1.0, resource-agents >= 1.0.3, cluster-glue >= 1.0.6
########################################
%description
Extra Scripts for pacemaker and resource-agents and cluster-glue.
%prep
rm -rf $RPM_BUILD_ROOT
%setup -q
%build
%{configure} \
%{?with_upstart:--enable-upstart} \
%{?with_systemd:--enable-systemd}
%pre
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
if
[ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]
then
rm -rf $RPM_BUILD_ROOT
fi
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%post
%preun
%if %{with systemd}
%systemd_preun ifcheckd.service
%endif
%if %{with upstart}
/sbin/initctl stop ifcheckd > /dev/null 2>&1 || :
%endif
%postun
%files
%defattr(-,root,root)
%dir %{ocfdir}
%attr (755, root, root) %{ocfdir}/VIPcheck
%attr (755, root, root) %{ocfdir}/hulft
%dir %{extdir}
%attr (755, root, root) %{extdir}/stonith-helper
%attr (-,root,root) %{_sbindir}/ifcheckd
%{?with_upstart:%attr (644, root, root) %{_sysconfdir}/init/ifcheckd.conf}
%{?with_systemd:%attr (644, root, root) %{_unitdir}/ifcheckd.service}
%doc %{_docdir}/pm_extras/README.md
%changelog
* Wed Jun 12 2013 Yuichi SEINO <[email protected]>
- tool ifcheckd 1.0 for Corosync-2.0
* Fri May 13 2011 Hideo Yamauchi <[email protected]>
* Wed Oct 6 2010 Yuusuke IIDA <[email protected]>
- initial release
- RA NVclient 1.4
- RA VIPcheck 1.1
- plugin stonith-helper 1.0
- tool ifcheckd 1.0 for Heartbeat
- tool iface_check.lcrso 1.0 for Corosync
- The use is going to be enabled after corosync-2.0.