summaryrefslogtreecommitdiffstats
path: root/recipes-scanners/clamav/files/fix_systemd_socket.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-scanners/clamav/files/fix_systemd_socket.patch')
-rw-r--r--recipes-scanners/clamav/files/fix_systemd_socket.patch25
1 files changed, 0 insertions, 25 deletions
diff --git a/recipes-scanners/clamav/files/fix_systemd_socket.patch b/recipes-scanners/clamav/files/fix_systemd_socket.patch
deleted file mode 100644
index 3347770..0000000
--- a/recipes-scanners/clamav/files/fix_systemd_socket.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1clamd 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
15@@ -60,4 +60,10 @@ if(SYSTEMD_FOUND)
16 install(
17 FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.socket
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()