blob: 334777028c8b23ef005536efbc59e4b4a557e46b [file] [log] [blame]
William A. Kennington IIIee32beb2021-06-02 12:48:35 -07001clamd not installing clamav-daemon.socket
2
3Fixes:
4__main__.SystemdUnitNotFoundError: (PosixPath('../security-build-image/1.0-r0/rootfs'), 'clamav-daemon.socket')
5%post(clamav-daemon-0.104.0-r0.core2_64): waitpid(3587571) rc 3587571 status 100
6warning: %post(clamav-daemon-0.104.0-r0.core2_64) scriptlet failed, exit status 1
7
8Upstream-Status: Pending
9Signed-off-by: Armin Kuster <akuster808@gmail.com>
10
11Index: git/clamd/CMakeLists.txt
12===================================================================
13--- git.orig/clamd/CMakeLists.txt
14+++ git/clamd/CMakeLists.txt
Patrick Williams213cb262021-08-07 19:21:33 -050015@@ -60,4 +60,10 @@ if(SYSTEMD_FOUND)
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070016 install(
Patrick Williams213cb262021-08-07 19:21:33 -050017 FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.socket
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070018 DESTINATION ${SYSTEMD_UNIT_DIR})
19+ configure_file(
20+ ${CMAKE_CURRENT_SOURCE_DIR}/clamav-daemon.socket.in
21+ ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.socket @ONLY)
22+ install(
23+ FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.socket
24+ DESTINATION ${SYSTEMD_UNIT_DIR})
25 endif()