Commit 79e4b4ee authored by Steven Murray's avatar Steven Murray
Browse files

cta/CTA#107 cta-taped log dir + logrotate

The cta-frontend and cta-taped rpms now create /var/log/cta
parent 02c2839a
......@@ -113,6 +113,9 @@ ELSE(DEFINED PackageOnly)
message(STATUS "Build cmdline only")
add_subdirectory(cmdline)
else(BUILD_CMDLINE_ONLY)
install (CODE "message (STATUS \"Installing directory \$ENV{DESTDIR}/var/log/cta\")")
install (CODE "file (MAKE_DIRECTORY \$ENV{DESTDIR}/var/log/cta)")
add_subdirectory(catalogue)
add_subdirectory(cmdline)
add_subdirectory(common)
......
......@@ -131,6 +131,7 @@ The tape server daemon
/usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g cta cta
%files -n cta-taped
%defattr(-,root,root)
%attr(0755,cta,cta) %dir /var/log/cta
%attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-taped
%attr(0755,root,root) %{_bindir}/cta-taped
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta.conf.example
......@@ -153,6 +154,7 @@ The xroot plugin
/usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g cta cta
%files -n cta-frontend
%defattr(-,root,root)
%attr(0755,cta,cta) %dir /var/log/cta
%attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-frontend
%attr(0755,root,root) %{_libdir}/libXrdCtaOfs.so
%attr(0644,root,root) %config(noreplace) /etc/xrootd/xrootd-cta.cfg
......@@ -276,4 +278,5 @@ Utilities to faciliate working with the mediachangers
%attr(0755,root,root) %{_bindir}/cta-mediachanger-mount
%attr(0644,root,root) %doc /usr/share/man/man1/cta-mediachanger-dismount.1cta.gz
%attr(0644,root,root) %doc /usr/share/man/man1/cta-mediachanger-mount.1cta.gz
%endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment