|
|
9a99763 |
diff -Nur root-6.06.02.orig/CMakeLists.txt root-6.06.02/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/CMakeLists.txt 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/CMakeLists.txt 2016-04-04 13:15:41.550400890 +0200
|
|
|
9a99763 |
@@ -252,6 +252,12 @@
|
|
|
9a99763 |
endif()
|
|
|
9a99763 |
install(DIRECTORY etc/ DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} USE_SOURCE_PERMISSIONS
|
|
|
9a99763 |
REGEX system.rootrc EXCLUDE
|
|
|
9a99763 |
+ REGEX system.rootauthrc EXCLUDE
|
|
|
9a99763 |
+ REGEX system.rootdaemonrc EXCLUDE
|
|
|
9a99763 |
+ REGEX rootd.rc.d EXCLUDE
|
|
|
9a99763 |
+ REGEX proofd.rc.d EXCLUDE
|
|
|
9a99763 |
+ REGEX rootd.xinetd EXCLUDE
|
|
|
9a99763 |
+ REGEX proofd.xinetd EXCLUDE
|
|
|
9a99763 |
REGEX root.mimes EXCLUDE)
|
|
|
9a99763 |
install(DIRECTORY fonts/ DESTINATION ${CMAKE_INSTALL_FONTDIR})
|
|
|
9a99763 |
install(DIRECTORY icons/ DESTINATION ${CMAKE_INSTALL_ICONDIR})
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/cmake/modules/RootConfiguration.cmake root-6.06.02/cmake/modules/RootConfiguration.cmake
|
|
|
9a99763 |
--- root-6.06.02.orig/cmake/modules/RootConfiguration.cmake 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/cmake/modules/RootConfiguration.cmake 2016-04-04 13:15:41.491400432 +0200
|
|
|
9a99763 |
@@ -404,7 +404,13 @@
|
|
|
9a99763 |
set(dicttype ${ROOT_DICTTYPE})
|
|
|
9a99763 |
|
|
|
9a99763 |
#---RConfigure-------------------------------------------------------------------------------------------------
|
|
|
9a99763 |
-set(setresuid undef)
|
|
|
9a99763 |
+CHECK_CXX_SOURCE_COMPILES("#include <unistd.h>
|
|
|
9a99763 |
+ int main() { int i = setresuid(0, 0, 0); return 0;}" found_setresuid)
|
|
|
9a99763 |
+if(found_setresuid)
|
|
|
9a99763 |
+ set(setresuid define)
|
|
|
9a99763 |
+else()
|
|
|
9a99763 |
+ set(setresuid undef)
|
|
|
9a99763 |
+endif()
|
|
|
9a99763 |
if(mathmore)
|
|
|
9a99763 |
set(hasmathmore define)
|
|
|
9a99763 |
else()
|
|
|
9a99763 |
@@ -523,7 +529,16 @@
|
|
|
9a99763 |
execute_Process(COMMAND hostname OUTPUT_VARIABLE BuildNodeInfo OUTPUT_STRIP_TRAILING_WHITESPACE )
|
|
|
9a99763 |
|
|
|
9a99763 |
configure_file(${CMAKE_SOURCE_DIR}/config/rootrc.in ${CMAKE_BINARY_DIR}/etc/system.rootrc @ONLY NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+configure_file(${CMAKE_SOURCE_DIR}/config/rootauthrc.in ${CMAKE_BINARY_DIR}/etc/system.rootauthrc @ONLY NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+configure_file(${CMAKE_SOURCE_DIR}/config/rootdaemonrc.in ${CMAKE_BINARY_DIR}/etc/system.rootdaemonrc @ONLY NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+
|
|
|
9a99763 |
+configure_file(${CMAKE_SOURCE_DIR}/config/rootd.in ${CMAKE_BINARY_DIR}/etc/daemons/rootd.rc.d @ONLY NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+configure_file(${CMAKE_SOURCE_DIR}/config/rootd.xinetd.in ${CMAKE_BINARY_DIR}/etc/daemons/rootd.xinetd @ONLY NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+configure_file(${CMAKE_SOURCE_DIR}/config/proofd.in ${CMAKE_BINARY_DIR}/etc/daemons/proofd.rc.d @ONLY NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+configure_file(${CMAKE_SOURCE_DIR}/config/proofd.xinetd.in ${CMAKE_BINARY_DIR}/etc/daemons/proofd.xinetd @ONLY NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+
|
|
|
9a99763 |
configure_file(${CMAKE_SOURCE_DIR}/config/RConfigOptions.in include/RConfigOptions.h NEWLINE_STYLE UNIX)
|
|
|
9a99763 |
+
|
|
|
9a99763 |
if(ruby)
|
|
|
9a99763 |
file(APPEND ${CMAKE_BINARY_DIR}/include/RConfigOptions.h "\#define R__RUBY_MAJOR ${RUBY_MAJOR_VERSION}\n\#define R__RUBY_MINOR ${RUBY_MINOR_VERSION}\n")
|
|
|
9a99763 |
endif()
|
|
|
9a99763 |
@@ -665,8 +680,21 @@
|
|
|
9a99763 |
|
|
|
9a99763 |
install(FILES ${CMAKE_BINARY_DIR}/etc/root.mimes
|
|
|
9a99763 |
${CMAKE_BINARY_DIR}/etc/system.rootrc
|
|
|
9a99763 |
+ ${CMAKE_BINARY_DIR}/etc/system.rootauthrc
|
|
|
9a99763 |
+ ${CMAKE_BINARY_DIR}/etc/system.rootdaemonrc
|
|
|
9a99763 |
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR})
|
|
|
9a99763 |
|
|
|
9a99763 |
+install(FILES ${CMAKE_BINARY_DIR}/etc/daemons/rootd.rc.d
|
|
|
9a99763 |
+ ${CMAKE_BINARY_DIR}/etc/daemons/proofd.rc.d
|
|
|
9a99763 |
+ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
|
|
9a99763 |
+ GROUP_EXECUTE GROUP_READ
|
|
|
9a99763 |
+ WORLD_EXECUTE WORLD_READ
|
|
|
9a99763 |
+ DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/daemons)
|
|
|
9a99763 |
+
|
|
|
9a99763 |
+install(FILES ${CMAKE_BINARY_DIR}/etc/daemons/rootd.xinetd
|
|
|
9a99763 |
+ ${CMAKE_BINARY_DIR}/etc/daemons/proofd.xinetd
|
|
|
9a99763 |
+ DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/daemons)
|
|
|
9a99763 |
+
|
|
|
9a99763 |
install(FILES ${CMAKE_BINARY_DIR}/root-help.el DESTINATION ${CMAKE_INSTALL_ELISPDIR})
|
|
|
9a99763 |
|
|
|
9a99763 |
if(NOT gnuinstall)
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/graf2d/x11/CMakeLists.txt root-6.06.02/graf2d/x11/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/graf2d/x11/CMakeLists.txt 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/graf2d/x11/CMakeLists.txt 2016-04-04 13:15:47.557447569 +0200
|
|
|
9a99763 |
@@ -9,4 +9,9 @@
|
|
|
9a99763 |
ROOT_GENERATE_DICTIONARY(G__${libname} T*.h MODULE ${libname} LINKDEF LinkDef.h OPTIONS "-writeEmptyRootPCM")
|
|
|
9a99763 |
|
|
|
9a99763 |
ROOT_LINKER_LIBRARY(${libname} *.cxx *.c G__${libname}.cxx LIBRARIES Core ${X11_LIBRARIES} ${X11_Xpm_LIB} ${CMAKE_THREAD_LIBS_INIT})
|
|
|
9a99763 |
-ROOT_INSTALL_HEADERS()
|
|
|
9a99763 |
+
|
|
|
9a99763 |
+if(AIX)
|
|
|
9a99763 |
+ include_directories(AFTER ${CMAKE_CURRENT_SOURCE_DIR}/inc)
|
|
|
9a99763 |
+endif()
|
|
|
9a99763 |
+
|
|
|
9a99763 |
+ROOT_INSTALL_HEADERS(OPTIONS REGEX inc/X11 EXCLUDE)
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/main/CMakeLists.txt root-6.06.02/main/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/main/CMakeLists.txt 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/main/CMakeLists.txt 2016-04-04 13:15:41.568401030 +0200
|
|
|
9a99763 |
@@ -7,6 +7,7 @@
|
|
|
9a99763 |
ROOT_EXECUTABLE(rootn.exe rmain.cxx LIBRARIES New Core MathCore Rint)
|
|
|
9a99763 |
ROOT_EXECUTABLE(roots.exe roots.cxx LIBRARIES Core MathCore)
|
|
|
9a99763 |
ROOT_EXECUTABLE(ssh2rpd ssh2rpd.cxx ${CMAKE_SOURCE_DIR}/core/clib/src/strlcpy.c )
|
|
|
9a99763 |
+ ROOT_EXECUTABLE(xpdtest xpdtest.cxx LIBRARIES Proof Tree Hist RIO Net Thread Matrix MathCore)
|
|
|
9a99763 |
endif()
|
|
|
9a99763 |
ROOT_EXECUTABLE(root.exe rmain.cxx LIBRARIES Core Rint)
|
|
|
9a99763 |
ROOT_EXECUTABLE(proofserv.exe pmain.cxx LIBRARIES Core MathCore)
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/net/CMakeLists.txt root-6.06.02/net/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/net/CMakeLists.txt 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/net/CMakeLists.txt 2016-04-04 13:15:41.576401092 +0200
|
|
|
9a99763 |
@@ -1,6 +1,7 @@
|
|
|
9a99763 |
|
|
|
9a99763 |
add_subdirectory(net)
|
|
|
9a99763 |
add_subdirectory(auth) # special CMakeListst.txt
|
|
|
9a99763 |
+add_subdirectory(rootd)
|
|
|
9a99763 |
|
|
|
9a99763 |
if(bonjour)
|
|
|
9a99763 |
add_subdirectory(bonjour)
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/net/rootd/CMakeLists.txt root-6.06.02/net/rootd/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/net/rootd/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/net/rootd/CMakeLists.txt 2016-04-04 13:15:41.577401100 +0200
|
|
|
9a99763 |
@@ -0,0 +1,9 @@
|
|
|
9a99763 |
+############################################################################
|
|
|
9a99763 |
+# CMakeLists.txt file for building ROOT net/rootd package
|
|
|
9a99763 |
+# @author Pere Mato, CERN
|
|
|
9a99763 |
+############################################################################
|
|
|
9a99763 |
+
|
|
|
9a99763 |
+ROOT_EXECUTABLE(rootd *.cxx ${CMAKE_SOURCE_DIR}/core/clib/src/strlcpy.c
|
|
|
9a99763 |
+ LIBRARIES rpdutil rsa ${GLOBUS_LIBRARIES} ${OPENSSL_LIBRARIES} ${CRYPTLIBS})
|
|
|
9a99763 |
+
|
|
|
9a99763 |
+ROOT_INSTALL_HEADERS()
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/proof/pq2/CMakeLists.txt root-6.06.02/proof/pq2/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/proof/pq2/CMakeLists.txt 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/proof/pq2/CMakeLists.txt 2016-04-04 13:15:41.580401123 +0200
|
|
|
9a99763 |
@@ -3,4 +3,7 @@
|
|
|
9a99763 |
# @author Pere Mato, CERN
|
|
|
9a99763 |
############################################################################
|
|
|
9a99763 |
|
|
|
9a99763 |
-ROOT_INSTALL_HEADERS()
|
|
|
9a99763 |
\ No newline at end of file
|
|
|
9a99763 |
+ROOT_EXECUTABLE(pq2 *.cxx LIBRARIES Core Proof Hist Matrix Tree
|
|
|
9a99763 |
+ RIO Net Thread MathCore)
|
|
|
9a99763 |
+
|
|
|
9a99763 |
+ROOT_INSTALL_HEADERS()
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/proof/proofd/CMakeLists.txt root-6.06.02/proof/proofd/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/proof/proofd/CMakeLists.txt 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/proof/proofd/CMakeLists.txt 2016-04-04 13:15:41.583401147 +0200
|
|
|
9a99763 |
@@ -4,6 +4,7 @@
|
|
|
9a99763 |
############################################################################
|
|
|
9a99763 |
|
|
|
9a99763 |
include_directories(${XROOTD_INCLUDE_DIRS})
|
|
|
9a99763 |
+include_directories(AFTER ${CMAKE_CURRENT_SOURCE_DIR}/inc)
|
|
|
9a99763 |
add_definitions(${XROOTD_CFLAGS})
|
|
|
9a99763 |
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-undefined-bool-conversion)
|
|
|
9a99763 |
|
|
|
9a99763 |
@@ -11,14 +12,16 @@
|
|
|
9a99763 |
ROOT_LINKER_LIBRARY(XrdProofd XProofProtUtils.cxx LIBRARIES ${XROOTD_LIBRARIES})
|
|
|
9a99763 |
else()
|
|
|
9a99763 |
ROOT_EXECUTABLE(proofd proofd.cxx ${CMAKE_SOURCE_DIR}/core/clib/src/strlcat.c
|
|
|
9a99763 |
- LIBRARIES ${XROOTD_LIBRARIES} rpdutil rsa ${GLOBUS_LIBRARIES} ${OPENSSL_LIBRARIES} ${CRYPTLIBS} )
|
|
|
9a99763 |
+ LIBRARIES ${XROOTD_LIBRARIES} rpdutil rsa ${GLOBUS_LIBRARIES} ${OPENSSL_LIBRARIES} ${CRYPTLIBS})
|
|
|
9a99763 |
if (NOT XROOTD_NOMAIN)
|
|
|
9a99763 |
ROOT_EXECUTABLE(xproofd X*.cxx ${CMAKE_SOURCE_DIR}/net/rpdutils/src/rpdconn.cxx
|
|
|
9a99763 |
LIBRARIES ${XROOTD_LIBRARIES} ${SYSLIBS})
|
|
|
9a99763 |
endif ()
|
|
|
9a99763 |
ROOT_LINKER_LIBRARY(XrdProofd X*.cxx ${CMAKE_SOURCE_DIR}/net/rpdutils/src/rpdconn.cxx
|
|
|
9a99763 |
LIBRARIES ${XROOTD_LIBRARIES} rpdutil ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
|
|
|
9a99763 |
- set_target_properties(XrdProofd PROPERTIES LINK_INTERFACE_LIBRARIES "" )
|
|
|
9a99763 |
+ set_target_properties(XrdProofd PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
|
|
9a99763 |
+ ROOT_EXECUTABLE(proofexecv proofexecv.cxx ${CMAKE_SOURCE_DIR}/net/rpdutils/src/rpdconn.cxx ${CMAKE_SOURCE_DIR}/net/rpdutils/src/rpdpriv.cxx
|
|
|
9a99763 |
+ LIBRARIES ${SYSLIBS})
|
|
|
9a99763 |
endif()
|
|
|
9a99763 |
|
|
|
9a99763 |
if(builtin_xrootd)
|
|
|
9a99763 |
@@ -38,4 +41,4 @@
|
|
|
9a99763 |
endif()
|
|
|
9a99763 |
|
|
|
9a99763 |
|
|
|
9a99763 |
-ROOT_INSTALL_HEADERS()
|
|
|
9a99763 |
+ROOT_INSTALL_HEADERS(OPTIONS REGEX inc/X EXCLUDE)
|
|
|
9a99763 |
diff -Nur root-6.06.02.orig/proof/proofx/CMakeLists.txt root-6.06.02/proof/proofx/CMakeLists.txt
|
|
|
9a99763 |
--- root-6.06.02.orig/proof/proofx/CMakeLists.txt 2016-03-03 10:36:03.000000000 +0100
|
|
|
9a99763 |
+++ root-6.06.02/proof/proofx/CMakeLists.txt 2016-04-04 13:15:41.595401240 +0200
|
|
|
9a99763 |
@@ -1,4 +1,3 @@
|
|
|
9a99763 |
-
|
|
|
9a99763 |
############################################################################
|
|
|
9a99763 |
# CMakeLists.txt file for building ROOT proof/proofx package
|
|
|
9a99763 |
# @author Pere Mato, CERN
|
|
|
9a99763 |
@@ -14,6 +13,7 @@
|
|
|
9a99763 |
endif()
|
|
|
9a99763 |
|
|
|
9a99763 |
include_directories(${XROOTD_INCLUDE_DIRS})
|
|
|
9a99763 |
+include_directories(AFTER ${CMAKE_CURRENT_SOURCE_DIR}/../proofd/inc)
|
|
|
9a99763 |
link_directories(${XROOTD_LIBRARY_DIR})
|
|
|
9a99763 |
add_definitions(${XROOTD_CFLAGS})
|
|
|
9a99763 |
|