mkdir -p $RPM_BUILD_ROOT/etc/logwatch/conf/logfiles
mkdir -p $RPM_BUILD_ROOT/etc/logwatch/conf/services
mkdir -p $RPM_BUILD_ROOT/etc/logwatch/scripts/services
+mkdir -p $RPM_BUILD_ROOT/etc/logwatch/scripts/shared
mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
# install the logwatch scripts
%if ! %{client_only}
cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/logwatch/scripts/services/bacula
+cp -p scripts/logwatch/applybacula $RPM_BUILD_ROOT/etc/logwatch/scripts/shared/applybacula
cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/logwatch/conf/logfiles/bacula.conf
cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/logwatch/conf/services/bacula.conf
chmod 755 $RPM_BUILD_ROOT/etc/logwatch/scripts/services/bacula
+chmod 755 $RPM_BUILD_ROOT/etc/logwatch/scripts/shared/applybacula
chmod 644 $RPM_BUILD_ROOT/etc/logwatch/conf/logfiles/bacula.conf
chmod 644 $RPM_BUILD_ROOT/etc/logwatch/conf/services/bacula.conf
%endif
/etc/logrotate.d/bacula
/etc/logwatch/scripts/services/bacula
+/etc/logwatch/scripts/shared/applybacula
%attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
%attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
%attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
For manual install copy the files as indicated below:
cp -p scripts/logwatch/bacula /etc/log.d/scripts/services/bacula
-cp -p scripts/logwatch/bacula /etc/log.d/scripts/shared/applybaculadate
+cp -p scripts/logwatch/applybacula /etc/log.d/scripts/shared/applybaculadate
cp -p scripts/logwatch/logfile.bacula.conf /etc/log.d/conf/logfiles/bacula.conf
cp -p scripts/logwatch/services.bacula.conf /etc/log.d/conf/services/bacula.conf
chmod 755 /etc/log.d/scripts/services/bacula
---------------------- bacula End -------------------------
-