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