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