%define _sbindir /opt/bacula
%define _subsysdir /opt/bacula/working
%define sqlite_bindir /opt/bacula/sqlite
-%define _mandir /opt/bacula
+%define _mandir /usr/share/man
%define sysconf_dir /opt/bacula
-%define script_dir /opt/bacula
+%define script_dir /opt/bacula/scripts
%define working_dir /opt/bacula/working
%define pid_dir /opt/bacula/working
%else
# specifically disallow gconsole if desired
%{?nobuild_gconsole:%define gconsole 0}
+# specifically disallow rescue files if desired
+%define rescue 1
+%{?nobuild_rescue:%define rescue 0}
+
# Should we build wxconsole, only wxWidgets >=2.6 is supported
# SuSE 10 and FC4 and newer
%define wxconsole 0
export QTLIB=/usr/lib64/qt4/
%endif
+%if %{rescue}
%configure \
--prefix=%{_prefix} \
--sbindir=%{_sbindir} \
--enable-static-fd
make
+%endif
%configure \
--prefix=%{_prefix} \
%endif
# install the rescue files
+%if %{rescue}
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
rm -f src/filed/static-bacula-fd
+%endif
# install bat since make doesn't at the moment
%if %{bat}
%attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
%attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
%attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
-%attr(-, root, %{daemon_group}) %{script_dir}/rescue
%attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
%attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
%attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
%{_mandir}/man1/bsmtp.1.%{manpage_ext}
%endif
+%if ! %{client_only} && %{rescue}
+%attr(-, root, %{daemon_group}) %{script_dir}/rescue
+%endif
+
%if ! %{client_only} && ! %{single_dir}
%doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
%doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
%endif
-%if %{single_dir}
+%if ! %{client_only} && %{single_dir}
%{_prefix}/doc
%endif
%endif
-%if ! %{client_only} && %{mtx} && ! %{single_dir}
+%if ! %{client_only} && %{mtx}
%files mtx
%defattr(-,root,root)
%attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
%{_mandir}/man1/scsieject.1.%{manpage_ext}
%endif
-%if ! %{client_only} && %{mtx} && %{single_dir}
-%files mtx
-%defattr(-,root,root)
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/nsmhack
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
-%{_mandir}/man1/loaderinfo.1
-%{_mandir}/man1/mtx.1
-%{_mandir}/man1/scsitape.1
-%{_mandir}/man1/tapeinfo.1
-%{_mandir}/man1/scsieject.1
-%endif
-
%files client
%defattr(-,root,root)
%attr(-, root, %{daemon_group}) %dir %{script_dir}
%{script_dir}/bacula-ctl-fd
/etc/init.d/bacula-fd
+%if %{rescue}
%attr(-, root, %{daemon_group}) %{script_dir}/rescue
+%endif
%if ! %{single_dir}
%doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
%endif
%changelog
+* Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- adjust /opt/bacula install
+- add build switch to supress rescue package
* Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
- add support for install to /opt/bacula
* Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
%define _sbindir /opt/bacula
%define _subsysdir /opt/bacula/working
%define sqlite_bindir /opt/bacula/sqlite
-%define _mandir /opt/bacula
+%define _mandir /usr/share/man
%define sysconf_dir /opt/bacula
-%define script_dir /opt/bacula
+%define script_dir /opt/bacula/scripts
%define working_dir /opt/bacula/working
%define pid_dir /opt/bacula/working
%else
# specifically disallow gconsole if desired
%{?nobuild_gconsole:%define gconsole 0}
+# specifically disallow rescue files if desired
+%define rescue 1
+%{?nobuild_rescue:%define rescue 0}
+
# Should we build wxconsole, only wxWidgets >=2.6 is supported
# SuSE 10 and FC4 and newer
%define wxconsole 0
export QTLIB=/usr/lib64/qt4/
%endif
+%if %{rescue}
%configure \
--prefix=%{_prefix} \
--sbindir=%{_sbindir} \
--enable-static-fd
make
+%endif
%configure \
--prefix=%{_prefix} \
%endif
# install the rescue files
+%if %{rescue}
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
rm -f src/filed/static-bacula-fd
+%endif
# install bat since make doesn't at the moment
%if %{bat}
%attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
%attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
%attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
-%attr(-, root, %{daemon_group}) %{script_dir}/rescue
%attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
%attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
%attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
%{_mandir}/man1/bsmtp.1.%{manpage_ext}
%endif
+%if ! %{client_only} && %{rescue}
+%attr(-, root, %{daemon_group}) %{script_dir}/rescue
+%endif
+
%if ! %{client_only} && ! %{single_dir}
%doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
%doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
%endif
-%if %{single_dir}
+%if ! %{client_only} && %{single_dir}
%{_prefix}/doc
%endif
%endif
-%if ! %{client_only} && %{mtx} && ! %{single_dir}
+%if ! %{client_only} && %{mtx}
%files mtx
%defattr(-,root,root)
%attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
%{_mandir}/man1/scsieject.1.%{manpage_ext}
%endif
-%if ! %{client_only} && %{mtx} && %{single_dir}
-%files mtx
-%defattr(-,root,root)
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/nsmhack
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
-%{_mandir}/man1/loaderinfo.1
-%{_mandir}/man1/mtx.1
-%{_mandir}/man1/scsitape.1
-%{_mandir}/man1/tapeinfo.1
-%{_mandir}/man1/scsieject.1
-%endif
-
%files client
%defattr(-,root,root)
%attr(-, root, %{daemon_group}) %dir %{script_dir}
%{script_dir}/bacula-ctl-fd
/etc/init.d/bacula-fd
+%if %{rescue}
%attr(-, root, %{daemon_group}) %{script_dir}/rescue
+%endif
%if ! %{single_dir}
%doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
%endif
%changelog
+* Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- adjust /opt/bacula install
+- add build switch to supress rescue package
* Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
- add support for install to /opt/bacula
* Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
%define _sbindir /opt/bacula
%define _subsysdir /opt/bacula/working
%define sqlite_bindir /opt/bacula/sqlite
-%define _mandir /opt/bacula
+%define _mandir /usr/share/man
%define sysconf_dir /opt/bacula
-%define script_dir /opt/bacula
+%define script_dir /opt/bacula/scripts
%define working_dir /opt/bacula/working
%define pid_dir /opt/bacula/working
%else
# specifically disallow gconsole if desired
%{?nobuild_gconsole:%define gconsole 0}
+# specifically disallow rescue files if desired
+%define rescue 1
+%{?nobuild_rescue:%define rescue 0}
+
# Should we build wxconsole, only wxWidgets >=2.6 is supported
# SuSE 10 and FC4 and newer
%define wxconsole 0
export QTLIB=/usr/lib64/qt4/
%endif
+%if %{rescue}
%configure \
--prefix=%{_prefix} \
--sbindir=%{_sbindir} \
--enable-static-fd
make
+%endif
%configure \
--prefix=%{_prefix} \
%endif
# install the rescue files
+%if %{rescue}
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
rm -f src/filed/static-bacula-fd
+%endif
# install bat since make doesn't at the moment
%if %{bat}
%attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
%attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
%attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
-%attr(-, root, %{daemon_group}) %{script_dir}/rescue
%attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
%attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
%attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
%{_mandir}/man1/bsmtp.1.%{manpage_ext}
%endif
+%if ! %{client_only} && %{rescue}
+%attr(-, root, %{daemon_group}) %{script_dir}/rescue
+%endif
+
%if ! %{client_only} && ! %{single_dir}
%doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
%doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
%endif
-%if %{single_dir}
+%if ! %{client_only} && %{single_dir}
%{_prefix}/doc
%endif
%endif
-%if ! %{client_only} && %{mtx} && ! %{single_dir}
+%if ! %{client_only} && %{mtx}
%files mtx
%defattr(-,root,root)
%attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
%{_mandir}/man1/scsieject.1.%{manpage_ext}
%endif
-%if ! %{client_only} && %{mtx} && %{single_dir}
-%files mtx
-%defattr(-,root,root)
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/nsmhack
-%attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
-%{_mandir}/man1/loaderinfo.1
-%{_mandir}/man1/mtx.1
-%{_mandir}/man1/scsitape.1
-%{_mandir}/man1/tapeinfo.1
-%{_mandir}/man1/scsieject.1
-%endif
-
%files client
%defattr(-,root,root)
%attr(-, root, %{daemon_group}) %dir %{script_dir}
%{script_dir}/bacula-ctl-fd
/etc/init.d/bacula-fd
+%if %{rescue}
%attr(-, root, %{daemon_group}) %{script_dir}/rescue
+%endif
%if ! %{single_dir}
%doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
%endif
%changelog
+* Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- adjust /opt/bacula install
+- add build switch to supress rescue package
* Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
- add support for install to /opt/bacula
* Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>