Browse Source

Use actual executable name

tags/1.0
Timo Röhling 12 years ago
parent
commit
6912201da2
2 changed files with 5 additions and 1 deletions
  1. 4
    0
      CMakeLists.txt
  2. 1
    1
      postsrsd.init.in

+ 4
- 0
CMakeLists.txt View File

6
 find_program(BASE64 base64 DOC "path to base64 executable")
6
 find_program(BASE64 base64 DOC "path to base64 executable")
7
 
7
 
8
 add_executable(${PROJECT_NAME} postsrsd.c sha1.c srs2.c)
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
 configure_file(${PROJECT_NAME}.init.in ${PROJECT_NAME}.init @ONLY)
13
 configure_file(${PROJECT_NAME}.init.in ${PROJECT_NAME}.init @ONLY)
10
 configure_file(postinstall.cmake.in postinstall.cmake @ONLY)
14
 configure_file(postinstall.cmake.in postinstall.cmake @ONLY)
11
 
15
 

+ 1
- 1
postsrsd.init.in View File

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

Loading…
Cancel
Save