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