]>
Commit | Line | Data |
---|---|---|
06374bd8 JB |
1 | # TODO: |
2 | # - check init scripts | |
a3c60a62 | 3 | Summary: MooseFS - distributed, fault tolerant file system |
a1e60a1f | 4 | Summary(pl.UTF-8): MooseFS - rozproszony, odporny na awarie system plików |
a3c60a62 | 5 | Name: mfs |
61636f8e JB |
6 | Version: 1.6.27 |
7 | Release: 0.1 | |
a3c60a62 JR |
8 | License: GPL v3 |
9 | Group: Daemons | |
61636f8e JB |
10 | Source0: http://moosefs.com/tl_files/mfscode/%{name}-%{version}-1.tar.gz |
11 | # Source0-md5: 7b3879b48b476e8604986991cb2fb56b | |
06374bd8 JB |
12 | Source1: mfsmaster.init |
13 | Source2: mfsmaster.sysconfig | |
14 | Source3: mfschunkserver.init | |
15 | Source4: mfschunkserver.sysconfig | |
16 | Source5: mfsmetalogger.init | |
17 | Source6: mfsmetalogger.sysconfig | |
61636f8e JB |
18 | Source7: mfscgiserv.init |
19 | Source8: mfscgiserv.sysconfig | |
a3c60a62 JR |
20 | URL: http://www.moosefs.com/ |
21 | BuildRequires: libfuse-devel | |
c5402b1a | 22 | BuildRequires: pkgconfig |
7057efbc | 23 | BuildRequires: python-modules |
3b3354a5 | 24 | BuildRequires: rpm-pythonprov |
c5402b1a | 25 | BuildRequires: zlib-devel |
a3c60a62 JR |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %define mfsconfdir %{_sysconfdir}/%{name} | |
a1e60a1f | 29 | %define _localstatedir /var/lib |
a3c60a62 | 30 | |
4e37a8af PK |
31 | %undefine __cxx |
32 | ||
a3c60a62 JR |
33 | %description |
34 | MooseFS is an Open Source, easy to deploy and maintain, distributed, | |
35 | fault tolerant file system for POSIX compliant OSes. | |
36 | ||
a1e60a1f JB |
37 | %description -l pl.UTF-8 |
38 | MooseFS to mający otwarte źródła, łatwy we wdrożeniu i utrzymywaniu, | |
39 | rozproszony i odporny na awarie system plików dla systemów | |
40 | operacyjnych zgodnych z POSIX | |
41 | ||
a3c60a62 JR |
42 | %package master |
43 | Summary: MooseFS master server | |
a1e60a1f | 44 | Summary(pl.UTF-8): Serwer zarządzający MooseFS |
a3c60a62 | 45 | Group: Daemons |
35cafcbe PK |
46 | Requires(pre): /usr/sbin/groupadd |
47 | Requires(pre): /usr/sbin/useradd | |
48 | Requires(postun): /usr/sbin/groupdel | |
49 | Requires(postun): /usr/sbin/userdel | |
50 | Provides: group(mfs) | |
51 | Provides: user(mfs) | |
61636f8e | 52 | |
a3c60a62 JR |
53 | %description master |
54 | MooseFS master (metadata) server together with metarestore utility. | |
55 | ||
a1e60a1f JB |
56 | %description master -l pl.UTF-8 |
57 | Serwer zarządzający (metadanych) MooseFS wraz z narzędziem | |
58 | metarestore. | |
59 | ||
a3c60a62 JR |
60 | %package metalogger |
61 | Summary: MooseFS metalogger server | |
a1e60a1f | 62 | Summary(pl.UTF-8): Serwer metaloggera MooseFS |
a3c60a62 | 63 | Group: Daemons |
35cafcbe PK |
64 | Requires(pre): /usr/sbin/groupadd |
65 | Requires(pre): /usr/sbin/useradd | |
66 | Requires(postun): /usr/sbin/groupdel | |
67 | Requires(postun): /usr/sbin/userdel | |
68 | Provides: group(mfs) | |
69 | Provides: user(mfs) | |
a3c60a62 JR |
70 | |
71 | %description metalogger | |
72 | MooseFS metalogger (metadata replication) server. | |
73 | ||
a1e60a1f JB |
74 | %description metalogger -l pl.UTF-8 |
75 | Serwer metaloggera (replikacji metadanych) MooseFS. | |
76 | ||
a3c60a62 JR |
77 | %package chunkserver |
78 | Summary: MooseFS data server | |
a1e60a1f | 79 | Summary(pl.UTF-8): Serwer danych MooseFS |
a3c60a62 | 80 | Group: Daemons |
35cafcbe PK |
81 | Requires(pre): /usr/sbin/groupadd |
82 | Requires(pre): /usr/sbin/useradd | |
83 | Requires(postun): /usr/sbin/groupdel | |
84 | Requires(postun): /usr/sbin/userdel | |
85 | Provides: group(mfs) | |
86 | Provides: user(mfs) | |
a3c60a62 JR |
87 | |
88 | %description chunkserver | |
89 | MooseFS data server. | |
90 | ||
a1e60a1f JB |
91 | %description chunkserver -l pl.UTF-8 |
92 | Serwer danych MooseFS. | |
93 | ||
a3c60a62 JR |
94 | %package client |
95 | Summary: MooseFS client | |
a1e60a1f | 96 | Summary(pl.UTF-8): Klient MooseFS |
a3c60a62 JR |
97 | Group: Daemons |
98 | ||
99 | %description client | |
100 | MooseFS client: mfsmount and mfstools. | |
101 | ||
a1e60a1f JB |
102 | %description client -l pl.UTF-8 |
103 | Klient MooseFS: mfsmount oraz mfstools. | |
104 | ||
a3c60a62 JR |
105 | %package cgi |
106 | Summary: MooseFS CGI Monitor | |
a1e60a1f | 107 | Summary(pl.UTF-8): Monitor CGI dla MooseFS-a |
a3c60a62 | 108 | Group: Daemons |
61636f8e | 109 | Requires: python-modules |
a3c60a62 JR |
110 | |
111 | %description cgi | |
112 | MooseFS CGI Monitor. | |
113 | ||
a1e60a1f JB |
114 | %description cgi -l pl.UTF-8 |
115 | Monitor CGI dla MooseFS-a. | |
116 | ||
61636f8e JB |
117 | %package cgiserv |
118 | Summary: Simple CGI-capable HTTP server to run MooseFS CGI Monitor | |
119 | Summary(pl.UTF-8): Prosty serwer HTTP z obsługą CGI do uruchamiania Monitora CGI dla MooseFS-a | |
120 | Group: Daemons | |
121 | Requires: python | |
122 | Requires: python-modules | |
123 | ||
124 | %description cgiserv | |
125 | Simple CGI-capable HTTP server to run MooseFS CGI Monitor. | |
126 | ||
127 | %description cgiserv -l pl.UTF-8 | |
128 | Prosty serwer HTTP z obsługą CGI do uruchamiania Monitora CGI dla | |
129 | MooseFS-a. | |
130 | ||
a3c60a62 JR |
131 | %prep |
132 | %setup -q | |
133 | ||
134 | %build | |
135 | %configure \ | |
a3c60a62 JR |
136 | --with-default-user=mfs \ |
137 | --with-default-group=mfs | |
138 | ||
139 | %{__make} | |
140 | ||
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %{__make} install \ | |
145 | DESTDIR=$RPM_BUILD_ROOT | |
146 | ||
06374bd8 JB |
147 | for i in $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/*.dist; do |
148 | mv $i $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/`basename $i .dist`; | |
149 | done | |
150 | ||
151 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig} | |
61636f8e | 152 | for f in %{SOURCE1} %{SOURCE3} %{SOURCE5} %{SOURCE7} ; do |
06374bd8 JB |
153 | cp -p "$f" $RPM_BUILD_ROOT/etc/rc.d/init.d/$(basename $f .init) |
154 | done | |
61636f8e | 155 | for f in %{SOURCE2} %{SOURCE4} %{SOURCE6} %{SOURCE8} ; do |
06374bd8 | 156 | cp -p "$f" $RPM_BUILD_ROOT/etc/sysconfig/$(basename $f .sysconfig) |
a3c60a62 JR |
157 | done |
158 | ||
61636f8e JB |
159 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' $RPM_BUILD_ROOT%{_datadir}/mfscgi/*.cgi |
160 | ||
a3c60a62 JR |
161 | %clean |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %pre master | |
165 | %groupadd -g 282 mfs | |
ef1c28b8 | 166 | %useradd -u 282 -d /var/lib/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs |
a3c60a62 JR |
167 | |
168 | %postun master | |
169 | if [ "$1" = "0" ]; then | |
170 | %userremove mfs | |
171 | %groupremove mfs | |
172 | fi | |
173 | ||
35cafcbe PK |
174 | %pre metalogger |
175 | %groupadd -g 282 mfs | |
ef1c28b8 | 176 | %useradd -u 282 -d /var/lib/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs |
35cafcbe PK |
177 | |
178 | %postun metalogger | |
179 | if [ "$1" = "0" ]; then | |
180 | %userremove mfs | |
181 | %groupremove mfs | |
182 | fi | |
183 | ||
184 | %pre chunkserver | |
185 | %groupadd -g 282 mfs | |
ef1c28b8 | 186 | %useradd -u 282 -d /var/lib/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs |
35cafcbe PK |
187 | |
188 | %postun chunkserver | |
189 | if [ "$1" = "0" ]; then | |
190 | %userremove mfs | |
191 | %groupremove mfs | |
192 | fi | |
193 | ||
a3c60a62 JR |
194 | %files master |
195 | %defattr(644,root,root,755) | |
196 | %doc NEWS README UPGRADE | |
197 | %attr(755,root,root) %{_sbindir}/mfsmaster | |
198 | %attr(755,root,root) %{_sbindir}/mfsmetadump | |
199 | %attr(755,root,root) %{_sbindir}/mfsmetarestore | |
200 | %{_mandir}/man5/mfsexports.cfg.5* | |
201 | %{_mandir}/man5/mfstopology.cfg.5* | |
202 | %{_mandir}/man5/mfsmaster.cfg.5* | |
a3c60a62 JR |
203 | %{_mandir}/man8/mfsmaster.8* |
204 | %{_mandir}/man8/mfsmetarestore.8* | |
728fc79f | 205 | %dir %{mfsconfdir} |
a3c60a62 JR |
206 | %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfsexports.cfg |
207 | %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfstopology.cfg | |
208 | %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfsmaster.cfg | |
a1e60a1f JB |
209 | %attr(750,mfs,mfs) %dir %{_localstatedir}/mfs |
210 | %attr(640,mfs,mfs) %{_localstatedir}/mfs/metadata.mfs.empty | |
06374bd8 JB |
211 | %attr(754,root,root) /etc/rc.d/init.d/mfsmaster |
212 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mfsmaster | |
a3c60a62 JR |
213 | |
214 | %files metalogger | |
215 | %defattr(644,root,root,755) | |
216 | %doc NEWS README UPGRADE | |
217 | %attr(755,root,root) %{_sbindir}/mfsmetalogger | |
218 | %{_mandir}/man5/mfsmetalogger.cfg.5* | |
219 | %{_mandir}/man8/mfsmetalogger.8* | |
728fc79f | 220 | %dir %{mfsconfdir} |
a3c60a62 | 221 | %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfsmetalogger.cfg |
a1e60a1f | 222 | %attr(750,mfs,mfs) %dir %{_localstatedir}/mfs |
06374bd8 JB |
223 | %attr(754,root,root) /etc/rc.d/init.d/mfsmetalogger |
224 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mfsmetalogger | |
a3c60a62 JR |
225 | |
226 | %files chunkserver | |
227 | %defattr(644,root,root,755) | |
228 | %doc NEWS README UPGRADE | |
229 | %attr(755,root,root) %{_sbindir}/mfschunkserver | |
230 | %{_mandir}/man5/mfschunkserver.cfg.5* | |
231 | %{_mandir}/man5/mfshdd.cfg.5* | |
232 | %{_mandir}/man8/mfschunkserver.8* | |
728fc79f | 233 | %dir %{mfsconfdir} |
a3c60a62 JR |
234 | %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfschunkserver.cfg |
235 | %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfshdd.cfg | |
ef1c28b8 | 236 | %attr(750,mfs,mfs) %dir %{_localstatedir}/mfs |
06374bd8 JB |
237 | %attr(754,root,root) /etc/rc.d/init.d/mfschunkserver |
238 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mfschunkserver | |
a3c60a62 JR |
239 | |
240 | %files client | |
241 | %defattr(644,root,root,755) | |
242 | %doc NEWS README UPGRADE | |
243 | %attr(755,root,root) %{_bindir}/mfsappendchunks | |
244 | %attr(755,root,root) %{_bindir}/mfscheckfile | |
245 | %attr(755,root,root) %{_bindir}/mfsdeleattr | |
246 | %attr(755,root,root) %{_bindir}/mfsdirinfo | |
247 | %attr(755,root,root) %{_bindir}/mfsfileinfo | |
248 | %attr(755,root,root) %{_bindir}/mfsfilerepair | |
249 | %attr(755,root,root) %{_bindir}/mfsgeteattr | |
250 | %attr(755,root,root) %{_bindir}/mfsgetgoal | |
251 | %attr(755,root,root) %{_bindir}/mfsgettrashtime | |
252 | %attr(755,root,root) %{_bindir}/mfsmakesnapshot | |
253 | %attr(755,root,root) %{_bindir}/mfsmount | |
254 | %attr(755,root,root) %{_bindir}/mfsrgetgoal | |
255 | %attr(755,root,root) %{_bindir}/mfsrgettrashtime | |
256 | %attr(755,root,root) %{_bindir}/mfsrsetgoal | |
257 | %attr(755,root,root) %{_bindir}/mfsrsettrashtime | |
258 | %attr(755,root,root) %{_bindir}/mfsseteattr | |
259 | %attr(755,root,root) %{_bindir}/mfssetgoal | |
260 | %attr(755,root,root) %{_bindir}/mfssettrashtime | |
261 | %attr(755,root,root) %{_bindir}/mfssnapshot | |
262 | %attr(755,root,root) %{_bindir}/mfstools | |
263 | %{_mandir}/man1/mfsappendchunks.1* | |
264 | %{_mandir}/man1/mfscheckfile.1* | |
265 | %{_mandir}/man1/mfsdeleattr.1* | |
266 | %{_mandir}/man1/mfsdirinfo.1* | |
267 | %{_mandir}/man1/mfsfileinfo.1* | |
268 | %{_mandir}/man1/mfsfilerepair.1* | |
269 | %{_mandir}/man1/mfsgeteattr.1* | |
270 | %{_mandir}/man1/mfsgetgoal.1* | |
271 | %{_mandir}/man1/mfsgettrashtime.1* | |
272 | %{_mandir}/man1/mfsmakesnapshot.1* | |
273 | %{_mandir}/man1/mfsrgetgoal.1* | |
274 | %{_mandir}/man1/mfsrgettrashtime.1* | |
275 | %{_mandir}/man1/mfsrsetgoal.1* | |
276 | %{_mandir}/man1/mfsrsettrashtime.1* | |
277 | %{_mandir}/man1/mfsseteattr.1* | |
278 | %{_mandir}/man1/mfssetgoal.1* | |
279 | %{_mandir}/man1/mfssettrashtime.1* | |
280 | %{_mandir}/man1/mfstools.1* | |
281 | %{_mandir}/man7/mfs.7* | |
282 | %{_mandir}/man7/moosefs.7* | |
283 | %{_mandir}/man8/mfsmount.8* | |
728fc79f | 284 | %dir %{mfsconfdir} |
a3c60a62 JR |
285 | %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfsmount.cfg |
286 | ||
287 | %files cgi | |
288 | %defattr(644,root,root,755) | |
289 | %doc NEWS README UPGRADE | |
61636f8e JB |
290 | %dir %{_datadir}/mfscgi |
291 | %attr(755,root,root) %{_datadir}/mfscgi/chart.cgi | |
292 | %attr(755,root,root) %{_datadir}/mfscgi/mfs.cgi | |
293 | %{_datadir}/mfscgi/err.gif | |
294 | %{_datadir}/mfscgi/favicon.ico | |
295 | %{_datadir}/mfscgi/index.html | |
296 | %{_datadir}/mfscgi/logomini.png | |
297 | %{_datadir}/mfscgi/mfs.css | |
298 | ||
299 | %files cgiserv | |
300 | %defattr(644,root,root,755) | |
a3c60a62 JR |
301 | %attr(755,root,root) %{_sbindir}/mfscgiserv |
302 | %{_mandir}/man8/mfscgiserv.8* | |
61636f8e JB |
303 | %attr(754,root,root) /etc/rc.d/init.d/mfscgiserv |
304 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mfscgiserv |