]> git.pld-linux.org Git - packages/fence.git/blob - fence.spec
62584f5a58cef42c67007f8f7a117802ee7e3e99
[packages/fence.git] / fence.spec
1 Summary:        I/O fencing system
2 Summary(pl.UTF-8):      System barier I/O
3 Name:           fence
4 Version:        2.03.10
5 Release:        1
6 Epoch:          1
7 License:        GPL v2+
8 Group:          Applications/System
9 Source0:        ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
10 # Source0-md5:  379b560096e315d4b52e238a5c72ba4a
11 URL:            http://sources.redhat.com/cluster/fence/
12 BuildRequires:  cman-devel >= 2.03.10
13 BuildRequires:  ccs-devel >= 2.03.10
14 BuildRequires:  perl-base
15 BuildRequires:  rpm-pythonprov
16 Requires:       cman-libs >= 2.03.10
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _sbindir        /sbin
20
21 %description
22 The Fence system does I/O fencing of cluster members. Any member may
23 join the default fence domain after which it will be fenced if it
24 fails without leaving the fence domain cleanly. The lock_dlm GFS lock
25 module will not permit GFS to be mounted until the node has joined a
26 fence domain.
27
28 The fence daemon, fenced, is usually started by running "fence_tool
29 join". Once started, fenced joins the default fence domain and the
30 node is subject to being fenced if it fails. A collection of fence
31 agents are used by fenced to interface with hardware devices (usually
32 to shut off its path to shared storage or cycle its power source.)
33
34 %description -l pl.UTF-8
35 System Fence odpowiada za bariery I/O dla członków klastra. Każdy z
36 członków może dołączyć do domyślnej domeny barier, po czym będzie
37 odgrodzony jeśli zawiedzie nie opuszczając czysto domeny barier. Moduł
38 blokujący GFS-a lock_dlm nie pozwoli na podmontowanie GFS-a dopóki
39 węzeł nie dołączy do domeny barier.
40
41 Demon fence, fenced, jest zwykle uruchamiany przez fence_tool join. Po
42 uruchomieniu fenced dołącza do domyślnej domeny barier, a węzeł jest
43 przedmiotem odgrodzenia jeśli zawiedzie. fenced wykorzystuje zbiór
44 agentów fence do komunikacji z urządzeniami sprzętowymi (zwykle do
45 odcinania drogi do dzielonej pamięci lub wyłączania i włączania
46 zasilania).
47
48 %prep
49 %setup -q -n cluster-%{version}
50
51 %build
52 ./configure \
53         --cc="%{__cc}" \
54         --cflags="%{rpmcflags} -Wall" \
55         --ldflags="%{rpmldflags}" \
56         --incdir=%{_includedir} \
57         --libdir=%{_libdir} \
58         --libexecdir=%{_libdir} \
59         --mandir=%{_mandir} \
60         --prefix=%{_prefix} \
61         --sbindir=%{_sbindir} \
62         --without_gfs \
63         --without_gfs2 \
64         --without_gnbd \
65         --without_kernel_modules
66
67 # libgroup.a is not packaged anywhere, so we must build it here
68 %{__make} -C group/lib
69
70 %{__make} -C %{name}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} -C %{name} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_sbindir}/fence_*
84 %attr(755,root,root) %{_sbindir}/fenced
85 # TODO: PLDify
86 #%attr(754,root,root) /etc/rc.d/init.d/scsi_reserve
87 %{_datadir}/fence
88 #%{_datadir}/snmp/mibs/powernet369.mib
89 %{_mandir}/man8/fence.8*
90 %{_mandir}/man8/fence_*.8*
91 %{_mandir}/man8/fenced.8*
This page took 0.037777 seconds and 2 git commands to generate.