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