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