|
@@ -1,5 +1,6 @@
|
1
|
1
|
set(GENERATE_SRS_SECRET "@GENERATE_SRS_SECRET@")
|
2
|
2
|
set(CHROOT_DIR "@CHROOT_DIR@")
|
|
3
|
+set(CONFIG_DIR "@CONFIG_DIR@")
|
3
|
4
|
set(INIT_FLAVOR "@INIT_FLAVOR@")
|
4
|
5
|
set(SECRET_FILE "@PROJECT_NAME@.secret")
|
5
|
6
|
set(DD "@DD@")
|
|
@@ -12,8 +13,8 @@ if(CHROOT_DIR AND NOT EXISTS "$ENV{DESTDIR}${CHROOT_DIR}")
|
12
|
13
|
file(MAKE_DIRECTORY "$ENV{DESTDIR}${CHROOT_DIR}")
|
13
|
14
|
endif()
|
14
|
15
|
|
15
|
|
-if(INIT_FLAVOR AND NOT EXISTS "$ENV{DESTDIR}/etc/default/@PROJECT_NAME@")
|
16
|
|
- file(INSTALL FILES "@CMAKE_CURRENT_SOURCE_DIR@/@PROJECT_NAME@.default" DESTINATION "/etc/default" RENAME "@PROJECT_NAME@")
|
|
16
|
+if(INIT_FLAVOR AND NOT EXISTS "$ENV{DESTDIR}${CONFIG_DIR}/@PROJECT_NAME@")
|
|
17
|
+ file(INSTALL FILES "@CMAKE_CURRENT_SOURCE_DIR@/@PROJECT_NAME@.default" DESTINATION "${CONFIG_DIR}" RENAME "@PROJECT_NAME@")
|
17
|
18
|
endif()
|
18
|
19
|
|
19
|
20
|
if(INIT_FLAVOR STREQUAL "sysv-lsb")
|