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