mirror of https://github.com/oxen-io/lokinet
Move default user/group define into a debian patch
parent
b30f32a180
commit
7ccbab0704
@ -0,0 +1,23 @@
|
||||
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
|
||||
index 49ebccb..728b806 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -45,6 +45,9 @@ set(ABYSS_EXE ${ABYSS_LIB}-main)
|
||||
get_filename_component(TT_ROOT "vendor/libtuntap-master" ABSOLUTE)
|
||||
add_definitions(-D${CMAKE_SYSTEM_NAME})
|
||||
|
||||
+# 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\")
|
||||
+
|
||||
get_filename_component(CORE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include" ABSOLUTE)
|
||||
get_filename_component(ABYSS_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/${ABYSS}/include" ABSOLUTE)
|
||||
|
Loading…
Reference in New Issue