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