Skip to content
Snippets Groups Projects
Commit 01fdfcab authored by Eric Cano's avatar Eric Cano
Browse files

Completed the first RPMs for CTA (tapeserver, frontend, cli).

parent 653c6f28
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ ELSE(DEFINED PackageOnly)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(cmake/CTAInstallationFunctions.cmake)
include(cmake/CTAVersions.cmake)
include(GNUInstallDirs)
set(CMAKE_INSTALL_PREFIX "/")
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${CMAKE_BINARY_DIR})
......
......@@ -7,10 +7,11 @@ include_directories (${XROOTD_INCLUDE_DIR} ${XROOTD_PRIVATE_INCLUDE_DIR} ${CMAKE
add_executable (cta CTACmdMain.cpp CTACmd.cpp)
target_link_libraries (cta ${XROOTD_XRDCL_LIB} ctacommon cryptopp)
include_directories (${CMAKE_SOURCE_DIR}/tapeserver/)
add_executable (ctaAddAdminUser CTAAddAdminUser.cpp )
target_link_libraries (ctaAddAdminUser castorcommon castorserver castorlog
CTAObjectStore ctaOStoreSchedulerDB ctacommon castorutils protobuf ctascheduler
ctanameserver)
install (TARGETS cta ctaAddAdminUser DESTINATION usr/bin)
......@@ -71,6 +71,26 @@ CERN Tape Archive:
The tape server daemon
%files -n cta-tapeserver
%defattr(-,root,root)
%attr(0644,root,root) /usr/bin/tapeserverd
%attr(0755,root,root) %{_bindir}/tapeserverd
%package -n cta-frontend
Summary: CERN Tape Archive
Group: Application/CTA
%description -n cta-frontend
CERN Tape Archive:
The xroot plugin
%files -n cta-frontend
%defattr(-,root,root)
%attr(0755,root,root) %{_libdir}/libXrdCtaOfs.so
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/xrd.cf.cta
%package -n cta-cli
Summary: CERN Tape Archive
Group: Application/CTA
%description -n cta-cli
CERN Tape Archive:
The xroot plugin
%files -n cta-cli
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/cta
%attr(0755,root,root) %{_bindir}/ctaAddAdminUser
......@@ -79,7 +79,7 @@ add_dependencies(castorTapeServerDaemon castormessagesprotobuf)
add_executable(tapeserverd TapeDaemon.cpp)
target_link_libraries(tapeserverd castorTapeServerDaemon SCSI System Utils File TapeDrive castorcommon castorclient castorlegacymsg castorserver castortapereactor ${LIBCAP_LIB} ${ZLIB_LIBRARIES} castormessages zmq)
install (TARGETS tapeserverd DESTINATION ${CTA_DEST_BIN_DIR})
install (TARGETS tapeserverd DESTINATION usr/bin)
add_library(castortapeserverdaemonutils SHARED
ProcessForkerProxyDummy.cpp)
......
......@@ -9,3 +9,6 @@ include_directories(${CMAKE_SOURCE_DIR}/tapeserver)
add_library (XrdCtaOfs MODULE XrdCtaFilesystem.cpp XrdCtaFile.cpp OStoreDBWithAgent.cpp BackendPopulator.cpp)
target_link_libraries (XrdCtaOfs ctascheduler ctacommon ctanameserver ctaremotens ctaOStoreSchedulerDB protobuf CTAObjectStore cryptopp)
INSTALL (TARGETS XrdCtaOfs DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
INSTALL (FILES xrd.cf.cta DESTINATION ${CMAKE_INSTALL_SYSCONFDIR})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment