mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
81178785c9
The upstream package has officially changed its name to ckb-next.
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
diff --git a/src/daemon/CMakeLists.txt b/src/daemon/CMakeLists.txt
|
|
index 09056a7..72a7249 100644
|
|
--- a/src/daemon/CMakeLists.txt
|
|
+++ b/src/daemon/CMakeLists.txt
|
|
@@ -249,12 +249,7 @@ elseif (LINUX)
|
|
# but it is not enabled by default and systemd is used instead. (Ubuntu 15.04+)
|
|
|
|
# A way to check for upstart
|
|
- execute_process(
|
|
- COMMAND initctl --version
|
|
- OUTPUT_VARIABLE initctl_output
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-
|
|
- if ("${initctl_output}" MATCHES "upstart")
|
|
+ if (FALSE)
|
|
message(STATUS "upstart detected")
|
|
set(CKB_NEXT_INIT_SYSTEM "upstart" CACHE INTERNAL "")
|
|
set(DISALLOW_SYSVINIT TRUE)
|
|
@@ -292,7 +287,7 @@ elseif (LINUX)
|
|
endif ()
|
|
|
|
# A way to check for systemd
|
|
- if (EXISTS "/run/systemd/system")
|
|
+ if (TRUE)
|
|
message(STATUS "systemd detected")
|
|
set(CKB_NEXT_INIT_SYSTEM "systemd" CACHE INTERNAL "")
|
|
set(DISALLOW_SYSVINIT TRUE)
|
|
@@ -328,7 +323,7 @@ elseif (LINUX)
|
|
endif ()
|
|
|
|
# A way to check for OpenRC
|
|
- if (EXISTS "/run/openrc/softlevel")
|
|
+ if (FALSE)
|
|
message(STATUS "OpenRC detected")
|
|
set(CKB_NEXT_INIT_SYSTEM "OpenRC" CACHE INTERNAL "")
|
|
set(DISALLOW_SYSVINIT TRUE)
|
|
@@ -419,7 +414,7 @@ if ("${CKB_NEXT_INIT_SYSTEM}" STREQUAL "launchd")
|
|
elseif ("${CKB_NEXT_INIT_SYSTEM}" STREQUAL "systemd")
|
|
install(
|
|
FILES "${CMAKE_CURRENT_BINARY_DIR}/service/ckb-next-daemon.service"
|
|
- DESTINATION "/usr/lib/systemd/system"
|
|
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/systemd/system"
|
|
PERMISSIONS
|
|
OWNER_READ OWNER_WRITE
|
|
GROUP_READ
|