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