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