Bläddra i källkod

Use actual executable name

tags/1.0
Timo Röhling 12 år sedan
förälder
incheckning
6912201da2
2 ändrade filer med 5 tillägg och 1 borttagningar
  1. 4
    0
      CMakeLists.txt
  2. 1
    1
      postsrsd.init.in

+ 4
- 0
CMakeLists.txt Visa fil

@@ -6,6 +6,10 @@ find_program(DD dd DOC "path to dd executable")
6 6
 find_program(BASE64 base64 DOC "path to base64 executable")
7 7
 
8 8
 add_executable(${PROJECT_NAME} postsrsd.c sha1.c srs2.c)
9
+
10
+get_target_property(POSTSRSD ${PROJECT_NAME} LOCATION)
11
+get_filename_component(POSTSRSD ${POSTSRSD} NAME_WE)
12
+
9 13
 configure_file(${PROJECT_NAME}.init.in ${PROJECT_NAME}.init @ONLY)
10 14
 configure_file(postinstall.cmake.in postinstall.cmake @ONLY)
11 15
 

+ 1
- 1
postsrsd.init.in Visa fil

@@ -15,7 +15,7 @@
15 15
 set -e
16 16
 
17 17
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
18
-DAEMON=@CMAKE_INSTALL_PREFIX@/sbin/@PROJECT_NAME@
18
+DAEMON=@CMAKE_INSTALL_PREFIX@/sbin/@POSTSRSD@
19 19
 NAME=@PROJECT_NAME@
20 20
 DESC="Postfix Sender Rewriting Scheme daemon"
21 21
 

Laddar…
Avbryt
Spara