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