summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Seichter <github@seichter.de>2022-03-07 20:03:48 +0100
committerSam James <sam@gentoo.org>2022-03-08 13:17:48 +0000
commitfc53bc2a3e6c00e77e9c313752bcda26eb99a5e6 (patch)
tree00307ad46dcc4e8d3da0e94f10fc9fc114f58f45 /app-antivirus/fangfrisch/files
parentdev-lang/zig: New version 0.9.1 (diff)
downloadgentoo-fc53bc2a3e6c00e77e9c313752bcda26eb99a5e6.tar.gz
gentoo-fc53bc2a3e6c00e77e9c313752bcda26eb99a5e6.tar.bz2
gentoo-fc53bc2a3e6c00e77e9c313752bcda26eb99a5e6.zip
app-antivirus/fangfrisch: Add systemd unit files
Ebuild now includes a systemd service and timer. Closes: https://bugs.gentoo.org/834697 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Ralph Seichter <gentoo@seichter.de> Closes: https://github.com/gentoo/gentoo/pull/24442 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-antivirus/fangfrisch/files')
-rw-r--r--app-antivirus/fangfrisch/files/fangfrisch.service14
-rw-r--r--app-antivirus/fangfrisch/files/fangfrisch.timer12
2 files changed, 26 insertions, 0 deletions
diff --git a/app-antivirus/fangfrisch/files/fangfrisch.service b/app-antivirus/fangfrisch/files/fangfrisch.service
new file mode 100644
index 000000000000..5b22decaa627
--- /dev/null
+++ b/app-antivirus/fangfrisch/files/fangfrisch.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Download unofficial ClamAV virus definition files
+ConditionPathExists=/var/lib/fangfrisch/db.sqlite
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+User=clamav
+WorkingDirectory=/var/lib/fangfrisch
+ExecStart=/usr/bin/fangfrisch -c /etc/fangfrisch.conf refresh
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-antivirus/fangfrisch/files/fangfrisch.timer b/app-antivirus/fangfrisch/files/fangfrisch.timer
new file mode 100644
index 000000000000..c63323e3c7d4
--- /dev/null
+++ b/app-antivirus/fangfrisch/files/fangfrisch.timer
@@ -0,0 +1,12 @@
+[Unit]
+Description=Periodically run Fangfrisch
+Requires=fangfrisch.service
+
+[Timer]
+OnCalendar=*:00,10,20,30,40,50
+Persistent=true
+RandomizedDelaySec=10s
+Unit=fangfrisch.service
+
+[Install]
+WantedBy=timers.target