-
bigbes authored
* In RPM/DEB we introduce new utility - tarantool_ctl (extra/dist/dist.lua) * /var/pid -> /var/run * Fix extra/dist/dist.lua * /extra/dist/tarantool.init and /extra/dist/tarantool.service now are regenerated by cmake (paths to `dist.lua`) * Systemd service (Uses sysv-init script) * RPM Supports both systemd and init (by using '--with systemd' in rpmbuild flags)
bigbes authored* In RPM/DEB we introduce new utility - tarantool_ctl (extra/dist/dist.lua) * /var/pid -> /var/run * Fix extra/dist/dist.lua * /extra/dist/tarantool.init and /extra/dist/tarantool.service now are regenerated by cmake (paths to `dist.lua`) * Systemd service (Uses sysv-init script) * RPM Supports both systemd and init (by using '--with systemd' in rpmbuild flags)
CMakeLists.txt 1.09 KiB
add_subdirectory(dist)
configure_file(rpm/tarantool.rpm.spec.in rpm/tarantool.rpm.spec @ONLY)
if (TARGET_OS_DARWIN)
# NOTE: need add execution 'plutil -lint org.tarantool.tarantool.plist
# to check syntax of plist file.
# Also cmake doesn't support changing package id from 'com.' to 'org.'
# Need chage to 'org.' after update lines this file:
# https://github.com/Kitware/CMake/blob/v2.8.11.2/Source/CPack/cmCPackPackageMakerGenerator.cxx#L763
#
# ^^^ DO NOT CHANGE DARWIN_PACKAGE_ID BEFORE SEE URL ABOVE ^^^
#
set (DARWIN_PACKAGE_ID "com")
set (LUANCHD_PLIST "${DARWIN_PACKAGE_ID}.${CPACK_PACKAGE_VENDOR}.tarantool.plist")
# Configure scripts for *.pkg and luanchd daemon by templates
configure_file(dmg/postflight.in postflight @ONLY)
configure_file(org.tarantool.in ${LUANCHD_PLIST} @ONLY)
# chmod +x 644
install (FILES ${CMAKE_BINARY_DIR}/extra/${LUANCHD_PLIST}
DESTINATION share/tarantool
PERMISSIONS
OWNER_READ OWNER_WRITE
GROUP_READ GROUP_READ
WORLD_READ WORLD_READ)
endif()
add_executable(txt2c txt2c.c)
add_executable(bin2c bin2c.c)