# ---------------------------------------------------------------------- # File: CMakeLists.txt # Author: Elvin-Alin Sindrilaru - # ---------------------------------------------------------------------- # ************************************************************************ # * EOS - the CERN Disk Storage System * # * Copyright (C) 2011 CERN/Switzerland * # * * # * This program is free software: you can redistribute it and/or modify * # * it under the terms of the GNU General Public License as published by * # * the Free Software Foundation, either version 3 of the License, or * # * (at your option) any later version. * # * * # * This program is distributed in the hope that it will be useful, * # * but WITHOUT ANY WARRANTY; without even the implied warranty of * # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * # * GNU General Public License for more details. * # * * # * You should have received a copy of the GNU General Public License * # * along with this program. If not, see .* # ************************************************************************ if(PYTHONSITEPKG_FOUND) install(PROGRAMS eosarchived.py eosarch_run.py eosarch_reconstruct.py DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) install(DIRECTORY eosarch DESTINATION ${PYTHONSITEPKG_PATH} PATTERN "tests" EXCLUDE PATTERN "*~" EXCLUDE PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) install(FILES opt-eos-xrootd.pth DESTINATION ${PYTHONSITEPKG_PATH} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) install(FILES eosarchived.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) # Installing files depending on service manager (systemd) set(SYSTEMD_DIR /usr/lib/systemd/) if(EXISTS ${SYSTEMD_DIR}) install(FILES eosarchived_env.sysconfig DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sysconfig/ RENAME eosarchived_env) install(FILES eosarchived.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system/) endif() endif()