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