]>
Commit | Line | Data |
---|---|---|
237bfacd JK |
1 | # TODO: |
2 | # - update desktop files, think about su-wrappers for console | |
2b68b0cb | 3 | # - package web admin |
2007449a | 4 | # - fix log file permissions |
2b68b0cb | 5 | # |
f2527d22 | 6 | # Conditional build: |
6d11b02b JB |
7 | %bcond_without console_wx # wx-console program |
8 | %bcond_without gnome # gnome-console program | |
6d11b02b | 9 | %bcond_without bat # bat Qt4 GUI |
7533d19f MM |
10 | %bcond_without dbi # use Database Independent Abstraction Layer (libdbi) |
11 | %bcond_with mysql # use MySQL | |
6d11b02b | 12 | %bcond_with pgsql # use PostgreSQL |
2b68b0cb AM |
13 | %bcond_with python |
14 | %bcond_with rescue | |
7533d19f | 15 | %bcond_with sqlite # use SQLite |
6d11b02b JB |
16 | %bcond_with sqlite3 # use SQLite3 instead of SQLite 2 |
17 | %bcond_with sqlite3_sync_off # makes SQLite3 backend much faster, but less reliable | |
7533d19f MM |
18 | %if %{with dbi} |
19 | %define database dbi | |
20 | %undefine with_mysql | |
21 | %undefine with_pgsql | |
22 | %undefine with_sqlite | |
23 | %undefine with_sqlite3 | |
24 | %endif | |
e090896a | 25 | %if %{with sqlite} |
8e872bc4 | 26 | %define database sqlite |
7533d19f | 27 | %undefine with_dbi |
55daeff3 | 28 | %undefine with_mysql |
29 | %undefine with_pgsql | |
7533d19f | 30 | %undefine with_sqlite3 |
e090896a JK |
31 | %endif |
32 | %if %{with sqlite3} | |
8e872bc4 | 33 | %define database sqlite3 |
7533d19f | 34 | %undefine with_dbi |
e090896a JK |
35 | %undefine with_mysql |
36 | %undefine with_pgsql | |
7533d19f | 37 | %undefine with_sqlite |
e090896a JK |
38 | %endif |
39 | %if %{with pgsql} | |
8e872bc4 | 40 | %define database postgresql |
7533d19f MM |
41 | %undefine with_dbi |
42 | %undefine with_mysql | |
e090896a JK |
43 | %undefine with_sqlite |
44 | %undefine with_sqlite3 | |
e090896a | 45 | %endif |
aeaed87e | 46 | %if %{with mysql} |
8e872bc4 | 47 | %define database mysql |
7533d19f MM |
48 | %undefine with_dbi |
49 | %undefine with_pgsql | |
aeaed87e | 50 | %undefine with_sqlite |
51 | %undefine with_sqlite3 | |
7533d19f MM |
52 | %endif |
53 | %if !%{with sqlite3} | |
aeaed87e | 54 | %undefine with_sqlite3_sync_off |
55 | %endif | |
f2527d22 | 56 | # |
bb6e7dc5 | 57 | Summary: Bacula - The Network Backup Solution |
6a00efc0 | 58 | Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci |
bb6e7dc5 | 59 | Name: bacula |
ffaca901 | 60 | Version: 5.0.1 |
2313b990 | 61 | Release: 0.1 |
5ce18635 | 62 | Epoch: 0 |
237bfacd | 63 | License: extended GPL v2 |
52504a6d | 64 | Group: Networking/Utilities |
ffaca901 ER |
65 | Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz |
66 | # Source0-md5: beb9f8da196b3c9ffb0356f087dbdb99 | |
67 | Source1: http://downloads.sourceforge.net/bacula/%{name}-docs-%{version}.tar.bz2 | |
68 | # Source1-md5: ce2ef0dca50ab916fd6701b53b7bb4df | |
69 | Source2: http://downloads.sourceforge.net/bacula/%{name}-rescue-5.0.0.tar.gz | |
367a3c24 | 70 | # Source2-md5: 349623581cfe0bcd798dd137abac959a |
5ce18635 AM |
71 | Source10: %{name}-dir.init |
72 | Source11: %{name}-fd.init | |
73 | Source12: %{name}-sd.init | |
74 | Source13: %{name}.logrotate | |
4280e495 JK |
75 | Source14: %{name}-dir.sysconfig |
76 | Source15: %{name}-fd.sysconfig | |
77 | Source16: %{name}-sd.sysconfig | |
0a03f92d | 78 | Patch0: %{name}-mtx-changer.patch |
38a7d6ba | 79 | Patch1: %{name}-link.patch |
0a03f92d | 80 | Patch2: %{name}-tinfo-readline.patch |
81 | Patch3: %{name}-branding.patch | |
82 | Patch4: %{name}-conf.patch | |
c08d8c7a | 83 | Patch5: %{name}-desktop.patch |
7533d19f | 84 | Patch6: %{name}-64bitbuild_fix.patch |
0f65a227 | 85 | Patch7: %{name}-dbi_fixes.patch |
bb6e7dc5 | 86 | URL: http://www.bacula.org/ |
f2337569 | 87 | BuildRequires: automake |
919e8378 | 88 | %{?with_dbi:BuildRequires: libdbi-devel >= 0.8.4} |
7425cb9d JK |
89 | %if %{with rescue} |
90 | BuildRequires: fakeroot | |
91 | %endif | |
e75759f3 | 92 | %if %{with gnome} |
237bfacd JK |
93 | BuildRequires: libgnome-devel >= 2.0 |
94 | BuildRequires: libgnomeui-devel >= 2.0 | |
e75759f3 | 95 | %endif |
f183f7ef | 96 | BuildRequires: libwrap-devel |
d907cd57 | 97 | BuildRequires: mtx |
cc01862b | 98 | BuildRequires: ncurses-devel |
bb6e7dc5 AM |
99 | BuildRequires: openssl-devel |
100 | BuildRequires: pkgconfig | |
7425cb9d JK |
101 | %if %{with python} |
102 | BuildRequires: python-static | |
103 | %endif | |
c19580f6 | 104 | %if %{with bat} |
304bb97e | 105 | BuildRequires: QtCore-devel |
e3dd858d | 106 | BuildRequires: QtGui-devel |
846b23db JB |
107 | BuildRequires: qt4-build >= 4.3.3-3 |
108 | BuildRequires: qt4-qmake >= 4.3.3-3 | |
6d11b02b | 109 | BuildRequires: qwt-devel >= 5.0.2-2 |
c19580f6 | 110 | %endif |
4c7199dc SP |
111 | %{?with_mysql:BuildRequires: mysql-devel} |
112 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
bb6e7dc5 | 113 | BuildRequires: readline-devel |
52504a6d | 114 | BuildRequires: rpmbuild(macros) >= 1.268 |
cc01862b | 115 | BuildRequires: sed >= 4.0 |
6d11b02b JB |
116 | %{?with_sqlite:BuildRequires: sqlite-devel} |
117 | %{?with_sqlite3:BuildRequires: sqlite3-devel} | |
1376b552 | 118 | %if %{with console_wx} |
7425cb9d | 119 | BuildRequires: wxGTK2-unicode-devel >= 2.4.0 |
1376b552 | 120 | %endif |
bb6e7dc5 | 121 | BuildRequires: zlib-devel |
bb6e7dc5 AM |
122 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
123 | ||
124 | %define _sysconfdir /etc/%{name} | |
1a72afd2 | 125 | %define _localstatedir /var/lib/%{name} |
bb6e7dc5 | 126 | |
b60fe5cb ER |
127 | # dependency section is broken. ccache usage is instead to makefiles |
128 | %undefine with_ccache | |
129 | ||
bb6e7dc5 AM |
130 | %description |
131 | Bacula - It comes by night and sucks the vital essence from your | |
132 | computers. | |
133 | ||
134 | Bacula is a set of computer programs that permit you (or the system | |
135 | administrator) to manage backup, recovery, and verification of | |
136 | computer data across a network of computers of different kinds. In | |
137 | technical terms, it is a network client/server based backup program. | |
138 | Bacula is relatively easy to use and efficient, while offering many | |
139 | advanced storage management features that make it easy to find and | |
5ce18635 | 140 | recover lost or damaged files. |
bb6e7dc5 | 141 | |
192fbfcf JR |
142 | %description -l pl.UTF-8 |
143 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 144 | |
192fbfcf JR |
145 | Bacula to zbiór programów umożliwiających administratorowi na |
146 | zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w | |
147 | sieci komputerów różnego rodzaju. W terminologii technicznej jest to | |
148 | program do kopii zapasowych pracujący w architekturze klient-serwer. | |
149 | Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym | |
150 | wiele zaawansowanych możliwości przy zarządzaniu nośnikami, | |
151 | ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych | |
152 | plików. | |
cc01862b | 153 | |
5ce18635 AM |
154 | %package common |
155 | Summary: Common files for bacula package | |
6a00efc0 | 156 | Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula |
bb6e7dc5 | 157 | Group: Networking/Utilities |
237bfacd JK |
158 | Requires(post): openssl-tools |
159 | Requires(post): sed >= 4.0 | |
1bd568e8 | 160 | Requires(post,preun): /sbin/chkconfig |
65253ffd JK |
161 | Requires(postun): /usr/sbin/groupdel |
162 | Requires(postun): /usr/sbin/userdel | |
1b0a2248 | 163 | Requires(pre): /usr/sbin/groupadd |
164 | Requires(pre): /usr/sbin/useradd | |
abdcd1c5 JB |
165 | Conflicts: bacula-console < 0:1.34.6 |
166 | Conflicts: bacula-dir < 0:1.34.6 | |
167 | Conflicts: bacula-fd < 0:1.34.6 | |
168 | Conflicts: bacula-sd < 0:1.34.6 | |
bb6e7dc5 | 169 | |
5ce18635 | 170 | %description common |
bb6e7dc5 AM |
171 | Bacula - It comes by night and sucks the vital essence from your |
172 | computers. | |
173 | ||
174 | Bacula is a set of computer programs that permit you (or the system | |
175 | administrator) to manage backup, recovery, and verification of | |
176 | computer data across a network of computers of different kinds. In | |
177 | technical terms, it is a network client/server based backup program. | |
178 | Bacula is relatively easy to use and efficient, while offering many | |
179 | advanced storage management features that make it easy to find and | |
5ce18635 | 180 | recover lost or damaged files. |
bb6e7dc5 | 181 | |
192fbfcf JR |
182 | %description common -l pl.UTF-8 |
183 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 184 | |
192fbfcf JR |
185 | Bacula to zbiór programów umożliwiających administratorowi na |
186 | zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w | |
187 | sieci komputerów różnego rodzaju. W terminologii technicznej jest to | |
188 | program do kopii zapasowych pracujący w architekturze klient-serwer. | |
189 | Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym | |
190 | wiele zaawansowanych możliwości przy zarządzaniu nośnikami, | |
191 | ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych | |
192 | plików. | |
cc01862b | 193 | |
5ce18635 AM |
194 | %package dir |
195 | Summary: Bacula Director and Catalog services | |
6a00efc0 | 196 | Summary(pl.UTF-8): Usługi Bacula Director i Catalog |
5ce18635 | 197 | Group: Networking/Utilities |
237bfacd | 198 | Requires(post): sed >= 4.0 |
abdcd1c5 JB |
199 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
200 | Obsoletes: bacula-updatedb | |
bb6e7dc5 | 201 | |
5ce18635 AM |
202 | %description dir |
203 | Bacula - It comes by night and sucks the vital essence from your | |
204 | computers. | |
205 | ||
206 | Bacula Director is the program that supervises all the backup, | |
207 | restore, verify and archive operations. The system administrator uses | |
208 | the Bacula Director to schedule backups and to recover files. Catalog | |
209 | services are comprised of the software programs responsible for | |
210 | maintaining the file indexes and volume databases for all files backed | |
211 | up. The Catalog services permit the System Administrator or user to | |
212 | quickly locate and restore any desired file, since it maintains a | |
7533d19f | 213 | record of all Volumes used, all Jobs run, and all Files saved. |
5ce18635 | 214 | |
192fbfcf JR |
215 | %description dir -l pl.UTF-8 |
216 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 217 | |
192fbfcf | 218 | Bacula Director to program nadzorujący wszystkie operacje wykonywania |
cc01862b | 219 | kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania. |
192fbfcf JR |
220 | Administrator używa Bacula Directora do szeregowania kopii zapasowych |
221 | oraz odzyskiwania plików. Usługi katalogowe (Catalog services) są | |
222 | używane przez programy odpowiedzialne za zarządzanie indeksami plików | |
223 | i bazą danych wolumenów dla wszystkich kopiowanych plików. Usługi | |
224 | katalogowe umożliwiają administratorowi lub użytkownikowi szybko | |
225 | zlokalizować i odtworzyć dowolny plik, ponieważ utrzymują rekord ze | |
226 | wszystkimi używanymi wolumenami, uruchomionymi zadaniami i zapisanymi | |
7533d19f | 227 | plikami. |
cc01862b | 228 | |
5ce18635 AM |
229 | %package console |
230 | Summary: Bacula Console | |
6a00efc0 | 231 | Summary(pl.UTF-8): Konsola Baculi |
5ce18635 | 232 | Group: Networking/Utilities |
237bfacd | 233 | Requires(post): sed >= 4.0 |
abdcd1c5 | 234 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5ce18635 AM |
235 | |
236 | %description console | |
237 | Bacula - It comes by night and sucks the vital essence from your | |
238 | computers. | |
239 | ||
240 | Bacula Console is the program that allows the administrator or user to | |
241 | communicate with the Bacula Director. This is the text only console | |
242 | interface. | |
243 | ||
192fbfcf JR |
244 | %description console -l pl.UTF-8 |
245 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 246 | |
192fbfcf JR |
247 | Bacula Console to program umożliwiający administratorowi lub |
248 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
cc01862b JB |
249 | interfejs czysto tekstowy. |
250 | ||
5ce18635 | 251 | %package console-wx |
cc01862b | 252 | Summary: Bacula wxWidgets Console |
6a00efc0 | 253 | Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets |
5ce18635 | 254 | Group: Networking/Utilities |
237bfacd | 255 | Requires(post): sed >= 4.0 |
abdcd1c5 | 256 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5ce18635 AM |
257 | |
258 | %description console-wx | |
259 | Bacula - It comes by night and sucks the vital essence from your | |
260 | computers. | |
261 | ||
262 | Bacula Console is the program that allows the administrator or user to | |
cc01862b | 263 | communicate with the Bacula Director. This is the wxWidgets GUI |
5ce18635 AM |
264 | interface. |
265 | ||
192fbfcf JR |
266 | %description console-wx -l pl.UTF-8 |
267 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 268 | |
192fbfcf JR |
269 | Bacula Console to program umożliwiający administratorowi lub |
270 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
cc01862b JB |
271 | interfejs graficzny oparty na wxWidgets. |
272 | ||
237bfacd JK |
273 | %package console-gnome |
274 | Summary: Bacula GNOME Console | |
6a00efc0 | 275 | Summary(pl.UTF-8): Konsola Baculi oparta dla GNOME |
237bfacd | 276 | Group: Networking/Utilities |
237bfacd | 277 | Requires(post): sed >= 4.0 |
abdcd1c5 | 278 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
237bfacd JK |
279 | |
280 | %description console-gnome | |
281 | Bacula - It comes by night and sucks the vital essence from your | |
282 | computers. | |
283 | ||
284 | Bacula Console is the program that allows the administrator or user to | |
1bd568e8 | 285 | communicate with the Bacula Director. This is the GNOME GUI interface. |
237bfacd | 286 | |
192fbfcf JR |
287 | %description console-gnome -l pl.UTF-8 |
288 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
237bfacd | 289 | |
192fbfcf JR |
290 | Bacula Console to program umożliwiający administratorowi lub |
291 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
237bfacd JK |
292 | interfejs graficzny oparty na GNOME. |
293 | ||
304bb97e | 294 | %package console-qt4 |
ece2f4c3 JB |
295 | Summary: Bacula Qt4 Console |
296 | Summary(pl.UTF-8): Konsola Baculi oparta na Qt4 | |
304bb97e AM |
297 | Group: Networking/Utilities |
298 | Requires(post): sed >= 4.0 | |
299 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
300 | ||
301 | %description console-qt4 | |
302 | Bacula - It comes by night and sucks the vital essence from your | |
303 | computers. | |
304 | ||
305 | Bacula Console is the program that allows the administrator or user to | |
ece2f4c3 | 306 | communicate with the Bacula Director. This is the Qt4 GUI interface. |
304bb97e AM |
307 | |
308 | %description console-qt4 -l pl.UTF-8 | |
309 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
310 | ||
311 | Bacula Console to program umożliwiający administratorowi lub | |
312 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
ece2f4c3 | 313 | interfejs graficzny oparty na Qt4. |
304bb97e | 314 | |
237bfacd JK |
315 | %package tray-monitor |
316 | Summary: Bacula Tray Monitor | |
317 | Group: Networking/Utilities | |
237bfacd | 318 | Requires(post): sed >= 4.0 |
abdcd1c5 | 319 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
237bfacd JK |
320 | |
321 | %description tray-monitor | |
322 | Bacula - It comes by night and sucks the vital essence from your | |
323 | computers. | |
324 | ||
1b0a2248 | 325 | The Monitor program is typically an icon in the system tray. However, |
326 | once the icon is expanded into a full window, the administrator or | |
327 | user can obtain status information about the Director or the backup | |
328 | status on the local workstation or any other Bacula daemon that is | |
329 | configured. | |
237bfacd | 330 | |
5ce18635 AM |
331 | %package fd |
332 | Summary: Bacula File services (Client) | |
6a00efc0 | 333 | Summary(pl.UTF-8): Usługi Bacula File (klient) |
5ce18635 | 334 | Group: Networking/Utilities |
237bfacd | 335 | Requires(post): sed >= 4.0 |
abdcd1c5 | 336 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5ce18635 AM |
337 | |
338 | %description fd | |
339 | Bacula - It comes by night and sucks the vital essence from your | |
340 | computers. | |
341 | ||
342 | Bacula File services (or Client program) is the software program that | |
343 | is installed on the machine to be backed up. It is specific to the | |
344 | operating system on which it runs and is responsible for providing the | |
345 | file attributes and data when requested by the Director. The File | |
346 | services are also responsible for the file system dependent part of | |
347 | restoring the file attributes and data during a recovery operation. | |
348 | This program runs as a daemon on the machine to be backed up, and in | |
349 | some of the documentation, the File daemon is referred to as the | |
350 | Client (for example in Bacula configuration file). | |
351 | ||
192fbfcf JR |
352 | %description fd -l pl.UTF-8 |
353 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
354 | ||
355 | Usługi Bacula File (inaczej program kliencki) to oprogramowanie, które | |
356 | instaluje się na maszynach, z których mają być wykonywane kopie | |
357 | zapasowe. Są one specyficzne dla systemu operacyjnego, pod którym | |
358 | działa dana maszyna i odpowiadają za dostarczanie atrybutów i danych | |
359 | plików na żądanie Directora. Usługi plikowe są także odpowiedzialne za | |
360 | zależną od systemu plików część odzyskiwania atrybutów i danych plików | |
361 | podczas operacji odzyskiwania danych. Program działa jako demon na | |
362 | maszynie, która ma być backupowana i w części dokumentacji demon ten | |
363 | (File) jest nazywany klientem (na przykład w pliku konfiguracyjnym | |
cc01862b JB |
364 | Baculi). |
365 | ||
5ce18635 AM |
366 | %package sd |
367 | Summary: Bacula Storage services | |
6a00efc0 | 368 | Summary(pl.UTF-8): Usługi Bacula Storage |
5ce18635 | 369 | Group: Networking/Utilities |
237bfacd | 370 | Requires(post): sed >= 4.0 |
abdcd1c5 | 371 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
329073aa | 372 | Conflicts: dvd+rw-tools <= 5.21.4.10.8-1 |
5ce18635 AM |
373 | |
374 | %description sd | |
375 | Bacula - It comes by night and sucks the vital essence from your | |
376 | computers. | |
377 | ||
378 | Bacula Storage services consist of the software programs that perform | |
379 | the storage and recovery of the file attributes and data to the | |
380 | physical backup media or volumes. In other words, the Storage daemon | |
381 | is responsible for reading and writing your tapes (or other storage | |
382 | media, e.g. files). The Storage services runs as a daemon on the | |
383 | machine that has the backup device (usually a tape drive). | |
bb6e7dc5 | 384 | |
192fbfcf JR |
385 | %description sd -l pl.UTF-8 |
386 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 387 | |
192fbfcf JR |
388 | Usługi Bacula Storage składają się z programów obsługujących |
389 | przechowywanie danych oraz odzyskiwanie atrybutów i danych na | |
390 | fizycznych nośnikach lub wolumenach. Innymi słowy, demon Storage jest | |
391 | odpowiedzialny za odczyt i zapis taśm (lub innych nośników do | |
392 | przechowywania danych, np. plików). Usługi Storage działają jako demon | |
393 | na maszynie, która zawiera urządzenie backupowe (zwykle napęd | |
394 | taśmowy). | |
cc01862b | 395 | |
5ce18635 | 396 | %package rescue |
bb6e7dc5 | 397 | Summary: Bacula - The Network Backup Solution |
6a00efc0 | 398 | Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci |
bb6e7dc5 | 399 | Group: Networking/Utilities |
cc01862b | 400 | Requires: %{name}-fd = %{epoch}:%{version}-%{release} |
bb6e7dc5 AM |
401 | Requires: coreutils |
402 | Requires: util-linux | |
bb6e7dc5 AM |
403 | |
404 | %description rescue | |
405 | Bacula - It comes by night and sucks the vital essence from your | |
406 | computers. | |
407 | ||
408 | Bacula is a set of computer programs that permit you (or the system | |
409 | administrator) to manage backup, recovery, and verification of | |
410 | computer data across a network of computers of different kinds. In | |
411 | technical terms, it is a network client/server based backup program. | |
412 | Bacula is relatively easy to use and efficient, while offering many | |
413 | advanced storage management features that make it easy to find and | |
cc01862b | 414 | recover lost or damaged files. |
bb6e7dc5 AM |
415 | |
416 | This package installs scripts for disaster recovery and builds rescue | |
1b0a2248 | 417 | floppy disk for bare metal recovery. |
237bfacd | 418 | |
cd23ba7c ER |
419 | To make the bacula rescue disk run "./make_rescue_disk |
420 | --copy-static-bacula | |
421 | - --copy-etc-files" from the %{_sysconfdir}/rescue directory. To | |
422 | recreate the rescue information for this system run ./getdiskinfo | |
423 | again. | |
cc01862b | 424 | |
192fbfcf JR |
425 | %description rescue -l pl.UTF-8 |
426 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 427 | |
192fbfcf JR |
428 | Bacula to zbiór programów umożliwiających administratorowi na |
429 | zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w | |
430 | sieci komputerów różnego rodzaju. W terminologii technicznej jest to | |
431 | program do kopii zapasowych pracujący w architekturze klient-serwer. | |
432 | Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym | |
433 | wiele zaawansowanych możliwości przy zarządzaniu nośnikami, | |
434 | ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych | |
435 | plików. | |
cc01862b | 436 | |
192fbfcf | 437 | Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietkę |
1b0a2248 | 438 | ratunkowe do odtwarzania systemu od zera. |
cc01862b | 439 | |
192fbfcf | 440 | Aby stworzyć dyskietkę ratunkową Baculi, należy uruchomić "./make_rescue_disk |
cc01862b | 441 | --copy-static-bacula - --copy-etc-files" z katalogu |
192fbfcf JR |
442 | %{_sysconfdir}/rescue . Aby ponownie utworzyć informacje ratunkowe dla |
443 | danego systemu, należy ponownie uruchomić ./getdiskinfo . | |
bb6e7dc5 | 444 | |
bb6e7dc5 | 445 | %prep |
7425cb9d | 446 | %setup -q -a 1 |
0a03f92d | 447 | %patch0 -p1 |
ecb9bab1 | 448 | %patch1 -p1 |
0a03f92d | 449 | %patch2 -p1 |
ecb9bab1 | 450 | %patch3 -p1 |
e740cd49 | 451 | %patch4 -p1 |
c08d8c7a | 452 | %patch5 -p1 |
7533d19f | 453 | %patch6 -p1 |
0f65a227 | 454 | %{?with_dbi:%patch7 -p1} |
aa6db71e | 455 | |
783dd8b1 | 456 | tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue |
cf50297e | 457 | |
10650249 AM |
458 | sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \ |
459 | src/cats/create_* src/cats/delete_* src/cats/drop_* \ | |
460 | src/cats/grant_* src/cats/make_* src/cats/update_* | |
237bfacd | 461 | sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in |
bb6e7dc5 | 462 | |
d626c535 | 463 | %if %{with dbi} |
0f65a227 MM |
464 | for dbtype in bdb mysql postgresql sqlite3 sqlite; do |
465 | sed -i -e "s,@DB_TYPE@,$dbtype,g" src/cats/*_${dbtype}_* | |
466 | done | |
d626c535 | 467 | %endif |
0f65a227 | 468 | |
bb6e7dc5 | 469 | %build |
e7f64ac8 | 470 | cp -f %{_datadir}/automake/config.sub autoconf |
cf50297e AM |
471 | cd autoconf && %{__aclocal} -I bacula-macros -I gettext-macros && cd .. |
472 | %{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure | |
473 | ||
1bd568e8 | 474 | CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline" |
cf50297e | 475 | WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \ |
bb6e7dc5 | 476 | %configure \ |
5ce18635 | 477 | --with-scriptdir=%{_libexecdir}/%{name} \ |
e75759f3 | 478 | --%{!?with_gnome:dis}%{?with_gnome:en}able-gnome \ |
c19580f6 | 479 | %{?with_bat:--enable-bat} \ |
bb6e7dc5 | 480 | --disable-conio \ |
5ce18635 | 481 | --enable-smartalloc \ |
e3dd858d | 482 | %{?with_console_wx:--enable-bwx-console} \ |
237bfacd | 483 | --enable-tray-monitor \ |
2007449a | 484 | %{?with_python:--with-python} \ |
bb6e7dc5 AM |
485 | --with-readline \ |
486 | --with-tcp-wrappers \ | |
487 | --with-working-dir=%{_var}/lib/%{name} \ | |
488 | --with-dump-email="root@localhost" \ | |
489 | --with-job-email="root@localhost" \ | |
490 | --with-smtp-host=localhost \ | |
491 | --with-pid-dir=/var/run \ | |
492 | --with-subsys-dir=/var/lock/subsys \ | |
cf50297e | 493 | --enable-batch-insert \ |
8e872bc4 | 494 | --with-%{database} \ |
aa6db71e | 495 | %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \ |
237bfacd JK |
496 | --with-dir-password="#FAKE-dir-password#" \ |
497 | --with-fd-password="#FAKE-fd-password#" \ | |
498 | --with-sd-password="#FAKE-sd-password#" \ | |
499 | --with-mon-dir-password="#FAKE-mon-dir-password#" \ | |
500 | --with-mon-fd-password="#FAKE-mon-fd-password#" \ | |
501 | --with-mon-sd-password="#FAKE-mon-sd-password#" \ | |
2b68b0cb | 502 | --with-openssl |
304bb97e AM |
503 | |
504 | %if %{with bat} | |
505 | cd src/qt-console | |
846b23db | 506 | qmake-qt4 bat.pro |
304bb97e AM |
507 | cd ../.. |
508 | %endif | |
509 | ||
bb6e7dc5 AM |
510 | %{__make} |
511 | ||
2b68b0cb AM |
512 | %if %{with rescue} |
513 | cd rescue | |
514 | %configure \ | |
515 | --with-bacula=../ | |
516 | cd linux/cdrom | |
517 | fakeroot %{__make} | |
518 | %endif | |
519 | ||
bb6e7dc5 AM |
520 | %install |
521 | rm -rf $RPM_BUILD_ROOT | |
522 | ||
237bfacd JK |
523 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig} |
524 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
3c0eac7c | 525 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir},/var/log/bacula} |
bb6e7dc5 AM |
526 | |
527 | %{__make} install \ | |
528 | DESTDIR=$RPM_BUILD_ROOT | |
529 | ||
5ce18635 AM |
530 | install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir |
531 | install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd | |
532 | install %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd | |
1a72afd2 | 533 | install %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir |
4280e495 JK |
534 | install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir |
535 | install %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd | |
536 | install %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd | |
d907cd57 | 537 | |
cacc89f5 AZ |
538 | %if %{with console_wx} |
539 | # tray-monitor is for regular users | |
540 | mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir} | |
541 | ||
d907cd57 | 542 | install scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png |
237bfacd JK |
543 | install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm |
544 | install scripts/bacula.desktop.gnome2 $RPM_BUILD_ROOT%{_desktopdir}/bacula.desktop | |
545 | sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \ | |
546 | scripts/bacula.desktop.gnome2 > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop | |
547 | sed -e 's#%{_sbindir}#%{_bindir}#' \ | |
548 | scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop | |
cacc89f5 | 549 | %endif |
d907cd57 | 550 | |
304bb97e | 551 | %if %{with bat} |
d626c535 | 552 | install src/qt-console/.libs/bat $RPM_BUILD_ROOT%{_sbindir} |
304bb97e AM |
553 | install scripts/bat.desktop $RPM_BUILD_ROOT%{_desktopdir} |
554 | %endif | |
555 | ||
2b68b0cb | 556 | %if %{with rescue} |
d907cd57 | 557 | # install the rescue stuff, these are the rescue scripts |
237bfacd JK |
558 | install rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue |
559 | install rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
560 | install rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
561 | install rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
2b68b0cb | 562 | %endif |
bb6e7dc5 | 563 | |
3c0eac7c AM |
564 | touch $RPM_BUILD_ROOT/var/log/bacula/log |
565 | ||
bb6e7dc5 | 566 | # install the updatedb scripts |
237bfacd | 567 | install updatedb/update_sqlite* $RPM_BUILD_ROOT%{_libexecdir}/%{name} |
d907cd57 | 568 | |
237bfacd JK |
569 | # place for site passwords |
570 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password} | |
571 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password} | |
bb6e7dc5 | 572 | |
0a03f92d | 573 | install scripts/mtx-changer.conf $RPM_BUILD_ROOT%{_sysconfdir}/ |
574 | ||
1a72afd2 AM |
575 | # some file changes |
576 | rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd} | |
d5d063ee | 577 | %if !%{with console_wx} |
1376b552 | 578 | rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop |
1376b552 | 579 | %endif |
1a72afd2 AM |
580 | touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed |
581 | ||
f2337569 JB |
582 | %clean |
583 | rm -rf $RPM_BUILD_ROOT | |
584 | ||
5ce18635 | 585 | %pre common |
fbc59152 ER |
586 | %groupadd -P %{name}-common -g 136 -r -f bacula |
587 | %useradd -P %{name}-common -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula | |
5ce18635 | 588 | |
237bfacd | 589 | %post common |
0a03f92d | 590 | /sbin/ldconfig |
237bfacd JK |
591 | echo "Updating bacula passwords and names..." |
592 | cd /etc/bacula | |
593 | for f in *-password ; do | |
fbc59152 | 594 | if [ ! -s $f ] ; then |
237bfacd JK |
595 | openssl rand -base64 33 > $f |
596 | fi | |
597 | p=`cat $f` | |
b41d8966 | 598 | for cf in *.conf *.conf.rpmnew ; do |
237bfacd JK |
599 | [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || : |
600 | done | |
601 | done | |
b41d8966 | 602 | for cf in *.conf *.conf.rpmnew ; do |
237bfacd JK |
603 | [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || : |
604 | done | |
605 | ||
5ce18635 | 606 | %postun common |
0a03f92d | 607 | /sbin/ldconfig |
28c9f5d0 AM |
608 | if [ "$1" = "0" ]; then |
609 | %userremove bacula | |
610 | %groupremove bacula | |
611 | fi | |
5ce18635 AM |
612 | |
613 | %post dir | |
614 | umask 077 | |
acd8643c AM |
615 | |
616 | # XXX: Most of this upgrade procedure is safe for sqlite only. Other databases would require knowledge | |
617 | # about currently used version so we can't easily support these :( | |
618 | ||
3c0eac7c | 619 | %if %{with sqlite} || %{with sqlite3} |
1a72afd2 | 620 | [ -s %{_localstatedir}/bacula.db ] && \ |
9aa69d51 | 621 | DB_VER=`echo "select * from Version;" | \ |
cece716a | 622 | %{_bindir}/sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | tail -n 1 2>/dev/null` |
acd8643c | 623 | |
5ce18635 AM |
624 | if [ -z "$DB_VER" ]; then |
625 | # grant privileges and create tables | |
9aa69d51 | 626 | %{_libexecdir}/%{name}/grant_bacula_privileges > dev/null |
627 | %{_libexecdir}/%{name}/create_bacula_database > dev/null | |
628 | %{_libexecdir}/%{name}/make_bacula_tables > dev/null | |
acd8643c | 629 | else |
9aa69d51 | 630 | echo "Backing up bacula tables" |
cece716a | 631 | echo ".dump" | sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | bzip2 > %{_localstatedir}/bacula_backup.sql.bz2 |
acd8643c | 632 | |
8e872bc4 | 633 | db_type="%{database}" |
acd8643c AM |
634 | |
635 | next_ver=$(($DB_VER + 1)) | |
636 | # support up to version 30; increase this if needed | |
637 | for ver in $(seq $next_ver 30); do | |
638 | prev_ver=$(($ver - 1)) | |
639 | ||
640 | if [ -x %{_libexecdir}/%{name}/update_${type}_tables_${prev_ver}_to_${ver} ]; then | |
641 | echo "Upgrading bacula database: db=${db_type} from ${prev_ver} to ${ver}..." | |
642 | %{_libexecdir}/%{name}/update_${type}_tables_${prev_ver}_to_${ver} | |
9aa69d51 | 643 | fi |
acd8643c AM |
644 | done |
645 | ||
9aa69d51 | 646 | %{_libexecdir}/%{name}/update_bacula_tables |
647 | echo "If bacula works correctly you can remove the backup file %{_localstatedir}/bacula_backup.sql.bz2" | |
bb6e7dc5 | 648 | fi |
28c9f5d0 AM |
649 | chown -R bacula:bacula %{_localstatedir} |
650 | chmod -R u+rX,go-rwx %{_localstatedir}/* | |
acd8643c | 651 | %endif |
bb6e7dc5 | 652 | |
237bfacd JK |
653 | echo "Updating Bacula passwords and names..." |
654 | cd /etc/bacula | |
dabeb284 | 655 | for f in *-password; do |
237bfacd | 656 | p=`cat $f` |
329073aa | 657 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 658 | done |
329073aa | 659 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 660 | |
1a72afd2 | 661 | /sbin/chkconfig --add bacula-dir |
52504a6d | 662 | %service bacula-dir restart "Bacula Director daemon" |
bb6e7dc5 | 663 | |
5ce18635 | 664 | %preun dir |
1a72afd2 | 665 | if [ "$1" = "0" ]; then |
52504a6d | 666 | %service bacula-dir stop |
9aa69d51 | 667 | /sbin/chkconfig --del bacula-dir |
1a72afd2 | 668 | fi |
bb6e7dc5 | 669 | |
5ce18635 | 670 | %post fd |
237bfacd JK |
671 | echo "Updating Bacula passwords and names..." |
672 | cd /etc/bacula | |
dabeb284 | 673 | for f in *-password; do |
237bfacd | 674 | p=`cat $f` |
329073aa | 675 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 676 | done |
329073aa | 677 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 678 | |
1a72afd2 | 679 | /sbin/chkconfig --add bacula-fd |
52504a6d | 680 | %service bacula-fd restart "Bacula File daemon" |
bb6e7dc5 | 681 | |
5ce18635 | 682 | %preun fd |
1a72afd2 | 683 | if [ "$1" = "0" ]; then |
52504a6d | 684 | %service bacula-fd stop |
9aa69d51 | 685 | /sbin/chkconfig --del bacula-fd |
1a72afd2 | 686 | fi |
5ce18635 AM |
687 | |
688 | %post sd | |
237bfacd JK |
689 | echo "Updating Bacula passwords and names..." |
690 | cd /etc/bacula | |
dabeb284 | 691 | for f in *-password; do |
237bfacd | 692 | p=`cat $f` |
329073aa | 693 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 694 | done |
329073aa | 695 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 696 | |
1a72afd2 | 697 | /sbin/chkconfig --add bacula-sd |
52504a6d | 698 | %service bacula-sd restart "Bacula Storage daemon" |
bb6e7dc5 | 699 | |
5ce18635 | 700 | %preun sd |
1a72afd2 | 701 | if [ "$1" = "0" ]; then |
52504a6d | 702 | %service bacula-sd stop |
9aa69d51 | 703 | /sbin/chkconfig --del bacula-sd |
1a72afd2 | 704 | fi |
5ce18635 AM |
705 | |
706 | %pre console | |
707 | if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then | |
9aa69d51 | 708 | mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf |
bb6e7dc5 AM |
709 | fi |
710 | ||
237bfacd JK |
711 | %post console |
712 | echo "Updating Bacula passwords and names..." | |
713 | cd /etc/bacula | |
dabeb284 | 714 | for f in *-password; do |
237bfacd | 715 | p=`cat $f` |
329073aa | 716 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 717 | done |
329073aa | 718 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd JK |
719 | |
720 | %post console-wx | |
721 | echo "Updating Bacula passwords and names..." | |
722 | cd /etc/bacula | |
dabeb284 | 723 | for f in *-password; do |
237bfacd | 724 | p=`cat $f` |
329073aa | 725 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 726 | done |
329073aa | 727 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd JK |
728 | |
729 | %post console-gnome | |
730 | echo "Updating Bacula passwords and names..." | |
731 | cd /etc/bacula | |
dabeb284 | 732 | for f in *-password; do |
237bfacd | 733 | p=`cat $f` |
329073aa | 734 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 735 | done |
329073aa | 736 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 737 | |
304bb97e AM |
738 | %post console-qt4 |
739 | echo "Updating Bacula passwords and names..." | |
740 | cd /etc/bacula | |
dabeb284 | 741 | for f in *-password; do |
304bb97e AM |
742 | p=`cat $f` |
743 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
744 | done | |
745 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
746 | ||
237bfacd JK |
747 | %post tray-monitor |
748 | echo "Updating Bacula passwords and names..." | |
749 | cd /etc/bacula | |
dabeb284 | 750 | for f in *-password; do |
237bfacd | 751 | p=`cat $f` |
329073aa | 752 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 753 | done |
329073aa | 754 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
bb6e7dc5 | 755 | |
bb6e7dc5 AM |
756 | %post rescue |
757 | # link our current installed conf file to the rescue directory | |
f2337569 | 758 | ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf |
bb6e7dc5 AM |
759 | |
760 | # run getdiskinfo | |
761 | echo "Creating rescue files for this system..." | |
d907cd57 | 762 | cd %{_sysconfdir}/rescue |
bb6e7dc5 AM |
763 | ./getdiskinfo |
764 | ||
765 | %preun rescue | |
766 | # remove the files created after the initial rpm installation | |
f2337569 JB |
767 | if [ "$1" = "0" ]; then |
768 | rm -f %{_sysconfdir}/rescue/bacula-fd.conf | |
769 | rm -f %{_sysconfdir}/rescue/partition.* | |
770 | rm -f %{_sysconfdir}/rescue/format.* | |
771 | rm -f %{_sysconfdir}/rescue/mount_drives | |
772 | rm -f %{_sysconfdir}/rescue/start_network | |
773 | rm -f %{_sysconfdir}/rescue/sfdisk | |
774 | rm -rf %{_sysconfdir}/rescue/diskinfo/* | |
775 | fi | |
bb6e7dc5 | 776 | |
5ce18635 AM |
777 | %files common |
778 | %defattr(644,root,root,755) | |
237bfacd | 779 | %doc LICENSE |
1a72afd2 | 780 | %dir %{_sysconfdir} |
1b0a2248 | 781 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password |
79d0fef6 | 782 | %attr(755,root,root) %{_sbindir}/bsmtp |
7425cb9d | 783 | %attr(755,root,root) %{_sbindir}/btraceback |
20bdbd41 | 784 | %attr(755,root,root) /%{_libdir}/libbac.so.1.*.* |
785 | %attr(755,root,root) %ghost /%{_libdir}/libbac.so.1 | |
786 | %attr(755,root,root) /%{_libdir}/libbaccfg.so.1.*.* | |
787 | %attr(755,root,root) %ghost /%{_libdir}/libbaccfg.so.1 | |
788 | %attr(755,root,root) /%{_libdir}/libbacfind.so.1.*.* | |
789 | %attr(755,root,root) %ghost /%{_libdir}/libbacfind.so.1 | |
790 | %attr(755,root,root) /%{_libdir}/libbacpy.so.1.*.* | |
791 | %attr(755,root,root) %ghost /%{_libdir}/libbacpy.so.1 | |
792 | %attr(755,root,root) /%{_libdir}/libbacsql.so.1.*.* | |
793 | %attr(755,root,root) %ghost /%{_libdir}/libbacsql.so.1 | |
c74b041d | 794 | %{_mandir}/man8/bacula.8* |
7425cb9d JK |
795 | %{_mandir}/man1/bsmtp.1* |
796 | %{_mandir}/man8/btraceback.8* | |
5ce18635 | 797 | %dir %{_libexecdir}/%{name} |
1376b552 | 798 | %{_libexecdir}/%{name}/btraceback.dbx |
5ce18635 | 799 | %{_libexecdir}/%{name}/btraceback.gdb |
d6dbe33c | 800 | %attr(770,root,bacula) %dir %{_localstatedir} |
3c0eac7c AM |
801 | %attr(750,bacula,logs) %dir /var/log/bacula |
802 | %attr(640,bacula,logs) %ghost /var/log/bacula/log | |
5ce18635 AM |
803 | |
804 | %files dir | |
bb6e7dc5 | 805 | %defattr(644,root,root,755) |
237bfacd | 806 | %doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE |
28647453 | 807 | #%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula} |
cc515592 | 808 | %attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf |
1a72afd2 | 809 | %ghost %{_sysconfdir}/.pw.sed |
28c9f5d0 | 810 | %attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir |
1a72afd2 | 811 | %attr(754,root,root) /etc/rc.d/init.d/bacula-dir |
cd23ba7c | 812 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir |
5ff0b6a3 | 813 | %attr(755,root,root) %{_sbindir}/bacula-dir |
cacc89f5 AZ |
814 | %attr(755,root,root) %{_sbindir}/bregex |
815 | %attr(755,root,root) %{_sbindir}/bwild | |
5ce18635 | 816 | %attr(755,root,root) %{_sbindir}/dbcheck |
79d0fef6 | 817 | %{_mandir}/man8/bacula-dir.8* |
7425cb9d | 818 | %{_mandir}/man8/dbcheck.8* |
79d0fef6 | 819 | %{_libexecdir}/%{name}/query.sql |
0f65a227 MM |
820 | %if %{with bdb} || %{with dbi} |
821 | %attr(755,root,root) %{_libexecdir}/%{name}/create_bdb_database | |
822 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bdb_database | |
823 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bdb_tables | |
824 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_bdb_privileges | |
825 | %attr(755,root,root) %{_libexecdir}/%{name}/make_bdb_tables | |
826 | %attr(755,root,root) %{_libexecdir}/%{name}/update_bdb_* | |
827 | %endif | |
828 | %if %{with sqlite3} || %{with dbi} | |
7425cb9d JK |
829 | %attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database |
830 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database | |
831 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables | |
832 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges | |
833 | %attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables | |
834 | %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_* | |
aeaed87e | 835 | %endif |
0f65a227 | 836 | %if %{with sqlite} || %{with dbi} |
f0a88766 | 837 | %attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite_database |
838 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_database | |
839 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_tables | |
840 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite_privileges | |
841 | %attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite_tables | |
7425cb9d JK |
842 | %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite_* |
843 | %endif | |
0f65a227 | 844 | %if %{with mysql} || %{with dbi} |
aeaed87e | 845 | %attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database |
846 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database | |
847 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables | |
848 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges | |
849 | %attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables | |
850 | %attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_* | |
851 | %endif | |
0f65a227 | 852 | %if %{with pgsql} || %{with dbi} |
e090896a JK |
853 | %attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database |
854 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database | |
855 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables | |
856 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges | |
857 | %attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables | |
858 | %attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_* | |
859 | %endif | |
0f65a227 | 860 | %if %{without dbi} |
f0a88766 | 861 | %attr(755,root,root) %{_libexecdir}/%{name}/create_bacula_database |
862 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_database | |
863 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_tables | |
864 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_bacula_privileges | |
865 | %attr(755,root,root) %{_libexecdir}/%{name}/make_bacula_tables | |
866 | %attr(755,root,root) %{_libexecdir}/%{name}/update_bacula_tables | |
0f65a227 | 867 | %endif |
f0a88766 | 868 | %attr(755,root,root) %{_libexecdir}/%{name}/make_catalog_backup |
869 | %attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup | |
5ce18635 AM |
870 | |
871 | %files fd | |
872 | %defattr(644,root,root,755) | |
237bfacd | 873 | %doc LICENSE |
1b0a2248 | 874 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf |
1a72afd2 | 875 | %attr(754,root,root) /etc/rc.d/init.d/bacula-fd |
cd23ba7c | 876 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd |
5ff0b6a3 | 877 | %attr(755,root,root) %{_sbindir}/bacula-fd |
79d0fef6 | 878 | %{_mandir}/man8/bacula-fd.8* |
5ce18635 AM |
879 | |
880 | %files sd | |
881 | %defattr(644,root,root,755) | |
237bfacd | 882 | %doc LICENSE |
1b0a2248 | 883 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf |
0a03f92d | 884 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf |
1a72afd2 | 885 | %attr(754,root,root) /etc/rc.d/init.d/bacula-sd |
cd23ba7c | 886 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd |
5ff0b6a3 AM |
887 | %attr(755,root,root) %{_sbindir}/bacula-sd |
888 | %attr(755,root,root) %{_sbindir}/bcopy | |
889 | %attr(755,root,root) %{_sbindir}/bextract | |
890 | %attr(755,root,root) %{_sbindir}/bls | |
891 | %attr(755,root,root) %{_sbindir}/bscan | |
892 | %attr(755,root,root) %{_sbindir}/btape | |
329073aa | 893 | %attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer |
150db1c2 | 894 | %attr(755,root,root) %{_libexecdir}/%{name}/disk-changer |
329073aa | 895 | %attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler |
5ce18635 | 896 | %{_mandir}/man8/bacula-sd.8* |
7425cb9d JK |
897 | %{_mandir}/man8/bcopy.8* |
898 | %{_mandir}/man8/bextract.8* | |
899 | %{_mandir}/man8/bls.8* | |
900 | %{_mandir}/man8/bscan.8* | |
901 | %{_mandir}/man8/btape.8* | |
5ce18635 AM |
902 | |
903 | %files console | |
bb6e7dc5 | 904 | %defattr(644,root,root,755) |
237bfacd | 905 | %doc LICENSE |
1b0a2248 | 906 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf |
1a72afd2 | 907 | %attr(755,root,root) %{_sbindir}/bconsole |
7425cb9d | 908 | %{_mandir}/man8/bconsole.8* |
5ce18635 | 909 | |
1376b552 | 910 | %if %{with console_wx} |
5ce18635 AM |
911 | %files console-wx |
912 | %defattr(644,root,root,755) | |
237bfacd | 913 | %doc LICENSE |
1a72afd2 | 914 | %{_pixmapsdir}/%{name}.png |
237bfacd | 915 | %{_desktopdir}/bacula-wx.desktop |
e3dd858d | 916 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf |
917 | %attr(755,root,root) %{_sbindir}/bwx-console | |
918 | %{_mandir}/man1/bacula-bwxconsole.1* | |
1376b552 | 919 | %endif |
bb6e7dc5 | 920 | |
e75759f3 | 921 | %if %{with gnome} |
237bfacd JK |
922 | %files console-gnome |
923 | %defattr(644,root,root,755) | |
924 | %doc LICENSE | |
925 | %{_pixmapsdir}/%{name}.png | |
926 | %{_desktopdir}/bacula.desktop | |
e3dd858d | 927 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bgnome-console.conf |
928 | %attr(755,root,root) %{_sbindir}/bgnome-console | |
929 | %{_mandir}/man1/bacula-bgnome-console.1* | |
e75759f3 | 930 | %endif |
237bfacd | 931 | |
304bb97e AM |
932 | %if %{with bat} |
933 | %files console-qt4 | |
934 | %defattr(644,root,root,755) | |
935 | %doc LICENSE | |
936 | %{_pixmapsdir}/%{name}.png | |
937 | %{_desktopdir}/bat.desktop | |
dabeb284 | 938 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf |
304bb97e AM |
939 | %attr(755,root,root) %{_sbindir}/bat |
940 | %{_mandir}/man1/bat.1* | |
941 | %endif | |
942 | ||
cacc89f5 | 943 | %if %{with console_wx} |
237bfacd JK |
944 | %files tray-monitor |
945 | %defattr(644,root,root,755) | |
946 | %doc LICENSE | |
947 | %{_pixmapsdir}/%{name}-tray-monitor.xpm | |
948 | %{_desktopdir}/%{name}-tray-monitor.desktop | |
cd23ba7c | 949 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf |
237bfacd | 950 | %attr(755,root,root) %{_bindir}/bacula-tray-monitor |
7425cb9d | 951 | %{_mandir}/man1/bacula-tray-monitor.1* |
cacc89f5 | 952 | %endif |
237bfacd | 953 | |
2b68b0cb | 954 | %if %{with rescue} |
bb6e7dc5 AM |
955 | %files rescue |
956 | %defattr(644,root,root,755) | |
c741b8e0 | 957 | %doc LICENSE |
4280e495 | 958 | %dir %{_sysconfdir}/rescue |
1b0a2248 | 959 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/backup.etc.list |
960 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/bacula-fd | |
961 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/format_floppy | |
962 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/getdiskinfo | |
963 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/make_rescue_disk | |
964 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_bacula | |
965 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_etc | |
966 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_grub | |
967 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_lilo | |
968 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/sfdisk.bz2 | |
2b68b0cb | 969 | %endif |