Adding RPM related definitions to create a separate RPM package
(e.g. MariaDB-10.0.1-fc18-x86_64-connect-engine.rpm) with automatic installation of libxml2 and unixODBC as dependencies. added: storage/connect/connect.cnf modified: storage/connect/CMakeLists.txt
This commit is contained in:
parent
96f55d4684
commit
2a20ab7889
@ -248,5 +248,27 @@ ENDIF(CONNECT_WITH_ODBC)
|
||||
MYSQL_ADD_PLUGIN(connect ${CONNECT_SOURCES}
|
||||
STORAGE_ENGINE
|
||||
MODULE_OUTPUT_NAME "ha_connect"
|
||||
COMPONENT connect-engine
|
||||
LINK_LIBRARIES ${ZLIB_LIBRARY} ${XML_LIBRARY} ${ICONV_LIBRARY}
|
||||
${ODBC_LIBRARY} ${IPHLPAPI_LIBRARY})
|
||||
|
||||
|
||||
#
|
||||
# Packaging definitions
|
||||
#
|
||||
|
||||
IF (INSTALL_SYSCONFDIR)
|
||||
INSTALL(FILES connect.cnf DESTINATION ${INSTALL_SYSCONFDIR}/my.cnf.d
|
||||
COMPONENT connect-engine)
|
||||
ENDIF(INSTALL_SYSCONFDIR)
|
||||
|
||||
IF(RPM)
|
||||
SET(CPACK_COMPONENT_CASSANDRASELIBRARIES_GROUP "connect-engine" PARENT_SCOPE)
|
||||
SET(CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} connect-engine PARENT_SCOPE)
|
||||
SET(CPACK_RPM_connect_engine_PACKAGE_REQUIRES "MariaDB-server" PARENT_SCOPE)
|
||||
|
||||
# workarounds for cmake issues #13248 and #12864:
|
||||
SET(CPACK_RPM_connect_engine_USER_FILELIST ${ignored} "%config(noreplace) /etc/my.cnf.d/*" PARENT_SCOPE)
|
||||
SET(CPACK_RPM_connect_engine_PACKAGE_PROVIDES "cmake_bug_13248" PARENT_SCOPE)
|
||||
SET(CPACK_RPM_connect_engine_PACKAGE_OBSOLETES "cmake_bug_13248" PARENT_SCOPE)
|
||||
ENDIF(RPM)
|
||||
|
2
storage/connect/connect.cnf
Normal file
2
storage/connect/connect.cnf
Normal file
@ -0,0 +1,2 @@
|
||||
[mariadb]
|
||||
plugin-load-add=ha_connect.so
|
Loading…
x
Reference in New Issue
Block a user