Sfoglia il codice sorgente

Use actual executable name

tags/1.0
Timo Röhling 11 anni fa
parent
commit
6912201da2
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 4
    0
      CMakeLists.txt
  2. 1
    1
      postsrsd.init.in

+ 4
- 0
CMakeLists.txt Vedi File

@@ -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 Vedi File

@@ -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
 

Loading…
Annulla
Salva