| William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame^] | 1 | clamd not installing clamav-daemon.socket | 
|  | 2 |  | 
|  | 3 | Fixes: | 
|  | 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 | 
|  | 6 | warning: %post(clamav-daemon-0.104.0-r0.core2_64) scriptlet failed, exit status 1 | 
|  | 7 |  | 
|  | 8 | Upstream-Status: Pending | 
|  | 9 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | 
|  | 10 |  | 
|  | 11 | Index: git/clamd/CMakeLists.txt | 
|  | 12 | =================================================================== | 
|  | 13 | --- git.orig/clamd/CMakeLists.txt | 
|  | 14 | +++ git/clamd/CMakeLists.txt | 
|  | 15 | @@ -54,4 +54,10 @@ if(SYSTEMD_FOUND) | 
|  | 16 | install( | 
|  | 17 | FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.service | 
|  | 18 | 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() |