lokinet/debian/patches/0005-Move-default-user-group-into-deb-patch.patch

24 lines
869 B
Diff
Raw Normal View History

From: Jason Rhinelander <jason@imaginary.ca>
Date: Mon, 9 Sep 2019 22:12:03 -0300
Subject: Move default user/group into deb patch
Rather than cramming it into CXXFLAGS in debian/rules.
---
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
2020-03-05 22:10:31 +00:00
index 5a80409..57ab27f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2020-03-05 22:10:31 +00:00
@@ -42,6 +42,9 @@ endif()
2019-12-13 20:49:04 +00:00
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
+# Unique user for system lokinet; _loki group is intentionally shared with the loki-core debs.
+add_definitions(-DDEFAULT_LOKINET_USER=\"_lokinet\" -DDEFAULT_LOKINET_GROUP=\"_loki\")
+
2019-12-13 20:49:04 +00:00
# No in-source building
include(MacroEnsureOutOfSourceBuild)
macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out-of-source build. Create a build directory and run 'cmake ${CMAKE_SOURCE_DIR} [options]'.")