Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
2f2643e4
Commit
2f2643e4
authored
9 years ago
by
Veniamin Gvozdikov
Committed by
Roman Tsisyk
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix installation files on FreeBSD
parent
fa4706e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extra/dist/CMakeLists.txt
+12
-2
12 additions, 2 deletions
extra/dist/CMakeLists.txt
with
12 additions
and
2 deletions
extra/dist/CMakeLists.txt
+
12
−
2
View file @
2f2643e4
...
...
@@ -5,7 +5,11 @@ include(systemd)
#
# Default path to data in default/tarantool
set
(
TARANTOOL_DATADIR
"
${
CMAKE_INSTALL_FULL_LOCALSTATEDIR
}
/lib/tarantool"
)
if
(
TARGET_OS_FREEBSD
)
set
(
TARANTOOL_DATADIR
"
${
CMAKE_INSTALL_FULL_LOCALSTATEDIR
}
/db/tarantool"
)
else
()
set
(
TARANTOOL_DATADIR
"
${
CMAKE_INSTALL_FULL_LOCALSTATEDIR
}
/lib/tarantool"
)
endif
()
message
(
STATUS
"tarantoolctl datadir:
${
TARANTOOL_DATADIR
}
"
)
set
(
TARANTOOL_LOGDIR
"
${
CMAKE_INSTALL_FULL_LOCALSTATEDIR
}
/log/tarantool"
)
message
(
STATUS
"tarantoolctl logdir:
${
TARANTOOL_LOGDIR
}
"
)
...
...
@@ -13,7 +17,9 @@ set(TARANTOOL_RUNDIR "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/run/tarantool")
message
(
STATUS
"tarantoolctl rundir:
${
TARANTOOL_RUNDIR
}
"
)
# config file for tarantoolctl
if
(
NOT IS_DIRECTORY
"
${
CMAKE_INSTALL_SYSCONFDIR
}
/sysconfig"
)
if
(
TARGET_OS_FREEBSD
)
set
(
SYSCONFIG_DEFAULT
"tarantool/default"
)
elseif
(
NOT IS_DIRECTORY
"
${
CMAKE_INSTALL_SYSCONFDIR
}
/sysconfig"
)
# Debian/Ubuntu/etc.
set
(
SYSCONFIG_DEFAULT
"default"
)
else
()
...
...
@@ -58,6 +64,7 @@ install(DIRECTORY DESTINATION ${TARANTOOL_DATADIR})
install
(
DIRECTORY DESTINATION
${
TARANTOOL_LOGDIR
}
)
install
(
DIRECTORY DESTINATION
${
TARANTOOL_RUNDIR
}
)
if
(
NOT TARGET_OS_FREEBSD
)
# logrotate files
configure_file
(
tarantool.logrotate.in tarantool.logrotate @ONLY
)
install
(
FILES
${
PROJECT_BINARY_DIR
}
/extra/dist/tarantool.logrotate
...
...
@@ -67,6 +74,7 @@ install (FILES ${PROJECT_BINARY_DIR}/extra/dist/tarantool.logrotate
OWNER_READ OWNER_WRITE
GROUP_READ
WORLD_READ
)
endif
()
# man page for tarantoolctl
pod2man
(
...
...
@@ -106,6 +114,8 @@ if (WITH_SYSTEMD)
GROUP_READ GROUP_READ
WORLD_READ WORLD_READ
)
elseif
(
TARGET_OS_FREEBSD
)
message
(
STATUS
"Skip installation of init.d scripts on FreeBSD"
)
else
()
# sysvinit
message
(
STATUS
"Using scripts for sysvinit"
)
install
(
FILES tarantool.init DESTINATION
${
CMAKE_INSTALL_SYSCONFDIR
}
/init.d/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment