Commit d0695d3b authored by Michael Davis's avatar Michael Davis
Browse files

[EOS-CTA] Adds eoscta_stub and libXrdSsiCta.so to RPMs

parent ac22ba37
...@@ -42,4 +42,6 @@ find_package(cryptopp REQUIRED) ...@@ -42,4 +42,6 @@ find_package(cryptopp REQUIRED)
include_directories(${PROTOBUF3_INCLUDE_DIRS} ${XROOTD_INCLUDE_DIR} ${XROOTD_INCLUDE_DIR}/private ../xroot_ssi_pb) include_directories(${PROTOBUF3_INCLUDE_DIRS} ${XROOTD_INCLUDE_DIR} ${XROOTD_INCLUDE_DIR}/private ../xroot_ssi_pb)
add_executable(eoscta_stub EosCtaStub.cpp) add_executable(eoscta_stub EosCtaStub.cpp)
target_link_libraries (eoscta_stub cryptopp ctaeosmessages ${PROTOBUF3_LIBRARIES} XrdSsi-4 XrdSsiLib) target_link_libraries(eoscta_stub cryptopp ctaeosmessages ${PROTOBUF3_LIBRARIES} XrdSsi-4 XrdSsiLib)
install(TARGETS eoscta_stub DESTINATION usr/bin)
...@@ -113,6 +113,7 @@ The xroot plugin ...@@ -113,6 +113,7 @@ The xroot plugin
%files -n cta-cli %files -n cta-cli
%defattr(-,root,root) %defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/cta %attr(0755,root,root) %{_bindir}/cta
%attr(0755,root,root) %{_bindir}/eoscta_stub
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-cli.conf %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-cli.conf
%else %else
...@@ -158,6 +159,7 @@ The xroot plugin ...@@ -158,6 +159,7 @@ The xroot plugin
%attr(0755,cta,cta) %dir /var/log/cta %attr(0755,cta,cta) %dir /var/log/cta
%attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-frontend %attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-frontend
%attr(0755,root,root) %{_libdir}/libXrdCtaOfs.so %attr(0755,root,root) %{_libdir}/libXrdCtaOfs.so
%attr(0755,root,root) %{_libdir}/libXrdSsiCta.so
%attr(0644,root,root) %config(noreplace) /etc/xrootd/xrootd-cta.cfg %attr(0644,root,root) %config(noreplace) /etc/xrootd/xrootd-cta.cfg
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-frontend.conf %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-frontend.conf
...@@ -174,6 +176,7 @@ The xroot plugin ...@@ -174,6 +176,7 @@ The xroot plugin
%files -n cta-cli %files -n cta-cli
%defattr(-,root,root) %defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/cta %attr(0755,root,root) %{_bindir}/cta
%attr(0755,root,root) %{_bindir}/eoscta_stub
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-cli.conf %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-cli.conf
%package -n cta-lib %package -n cta-lib
......
...@@ -24,18 +24,24 @@ include_directories(${CMAKE_SOURCE_DIR}/tapeserver) ...@@ -24,18 +24,24 @@ include_directories(${CMAKE_SOURCE_DIR}/tapeserver)
find_package(Protobuf3 REQUIRED) find_package(Protobuf3 REQUIRED)
include_directories(${PROTOBUF3_INCLUDE_DIRS}) include_directories(${PROTOBUF3_INCLUDE_DIRS})
# XRootD OFS plugin for CTA Frontend
add_library (XrdCtaOfs MODULE ListArchiveFilesCmd.cpp XrdCtaFilesystem.cpp XrdCtaFile.cpp XrdCtaDir.cpp) add_library (XrdCtaOfs MODULE ListArchiveFilesCmd.cpp XrdCtaFilesystem.cpp XrdCtaFile.cpp XrdCtaDir.cpp)
target_link_libraries (XrdCtaOfs ctacatalogue ctaeosmessages ctascheduler ctacommon ${PROTOBUF3_LIBRARIES} ctaobjectstore cryptopp) target_link_libraries (XrdCtaOfs ctacatalogue ctaeosmessages ctascheduler ctacommon ${PROTOBUF3_LIBRARIES} ctaobjectstore cryptopp)
set_target_properties(XrdCtaOfs PROPERTIES INSTALL_RPATH ${PROTOBUF3_RPATH}) set_target_properties(XrdCtaOfs PROPERTIES INSTALL_RPATH ${PROTOBUF3_RPATH})
# XRootD SSI/CTA Frontend shared library # XRootD SSI plugin for CTA Frontend
add_definitions(-DXRDSSI_DEBUG) add_definitions(-DXRDSSI_DEBUG)
include_directories(../xroot_ssi_pb) include_directories(../xroot_ssi_pb)
add_library(XrdSsiCta MODULE XrdSsiCtaServiceProvider.cpp XrdSsiCtaRequestProc.cpp) add_library(XrdSsiCta MODULE XrdSsiCtaServiceProvider.cpp XrdSsiCtaRequestProc.cpp)
target_link_libraries(XrdSsiCta XrdSsi-4 XrdSsiLib ctaeosmessages ${PROTOBUF3_LIBRARIES} ctascheduler ctacommon ctaobjectstore ctacatalogue) target_link_libraries(XrdSsiCta XrdSsi-4 XrdSsiLib ctaeosmessages ${PROTOBUF3_LIBRARIES} ctascheduler ctacommon ctaobjectstore ctacatalogue)
set_target_properties(XrdSsiCta PROPERTIES INSTALL_RPATH ${PROTOBUF3_RPATH}) set_target_properties(XrdSsiCta PROPERTIES INSTALL_RPATH ${PROTOBUF3_RPATH})
INSTALL (TARGETS XrdCtaOfs DESTINATION usr/${CMAKE_INSTALL_LIBDIR}) INSTALL (TARGETS XrdCtaOfs DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
INSTALL (TARGETS XrdSsiCta DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
INSTALL (FILES xrootd-cta.cfg DESTINATION /etc/xrootd/) INSTALL (FILES xrootd-cta.cfg DESTINATION /etc/xrootd/)
INSTALL (FILES cta-frontend.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta) INSTALL (FILES cta-frontend.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta)
install (FILES cta-frontend.logrotate DESTINATION /etc/logrotate.d RENAME cta-frontend) install (FILES cta-frontend.logrotate DESTINATION /etc/logrotate.d RENAME cta-frontend)
......
Supports Markdown
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