aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorbius2024-02-17 13:00:48 +0100
committerMorbius2024-02-17 13:00:48 +0100
commit4dc119adb65a27534d7f5eedfa03a09e1c3b9f6f (patch)
tree053d4ab033d7505ccfb03220b8aa7b4fe521b9fd
parent9afab3c3e70f5acc39b7f1aa81eadbdb1e344390 (diff)
downloadaur-4dc119adb65a27534d7f5eedfa03a09e1c3b9f6f.tar.gz
Modify default configuration and systemd files
Additionally, improve user-visible comments
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
-rw-r--r--fangfrisch.conf30
-rw-r--r--fangfrisch.service2
-rw-r--r--fangfrisch.timer8
5 files changed, 27 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ae7f1ffb1d43..aa70d35f2b23 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-fangfrisch
- pkgdesc = Freshclam like utility that allows downloading unofficial virus definition files
+ pkgdesc = Update and verify unofficial Clam Anti-Virus signatures
pkgver = 1.8.0
- pkgrel = 2
+ pkgrel = 3
url = https://rseichter.github.io/fangfrisch/
install = fangfrisch.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 9ace80d2edfe..1fe16a5a8583 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=python-fangfrisch
_name=${pkgname#python-}
pkgver=1.8.0
-pkgrel=2
+pkgrel=3
pkgdesc="Freshclam like utility that allows downloading unofficial virus definition files"
arch=('any')
license=('GPL')
@@ -17,9 +17,9 @@ source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rseichter/fangfrisch/ar
"${_name}.timer"
"${_name}.tmpfiles")
sha512sums=('5ded17871b8efa65dd529f70965746fb84c5d36cfe608a5bc8edf5ac7542837eb05450a442e45d8afe466b05c5f421381ba19af4287b13b03533653d8c1d223d'
- 'a6387a8320859795cbd0fb44500d753ed17981304e8c68c29eb47ffe3280d0fd6c6fe321ef86673d7ad8ee49b75769dfd89f1d10271ad8d537cb3cd88a9d3638'
- '955a64db439344a107c74273e3abc19e50407d247788980cc1e3c1e02505437fdde0f4d83d7a10980be44679b7a1d17a6e2a54959ace476eeeb79e10abf3b206'
- '10534fa180e36be07f46002174341cd348094d9739e0d8c37266ac244c804400bc3d818b4b7399d10f14201847eb0607fee7657c8cfe73b7c2b17dd719f558c5'
+ 'b6a5b46dab56fded77da35fe383714102a510e756ca7d32bbe41f6b0af528c2d76383f59cdd8cd0866688a32e74322c06d82ed2e6e8be29a9323362f91b23527'
+ '8e62139b9611b5bcfbfe321e78676f2dd1404b9b41177cca9e8d9ed67ff0a85512f981afd2cd5aa49213d8150ce8653d63d0fb0a99e75fdaa7b60b38e3719be0'
+ 'dc08b566205d4fd09d50fa6cdede985020b12b216cef0e37a58954679e2f1c8f5bdba0de353da3d1bc98fa3b4bdc474815180ffb08ac24e49c34fabf9dab880c'
'f421c4f2618422957cd203bf8f50bae1e5656d6208774244092987c07427ca86bf587884510c9180a0cb554200fdc996b0fad382671c913e6729b215b6f8e651')
backup=('etc/fangfrisch/fangfrisch.conf')
install=fangfrisch.install
diff --git a/fangfrisch.conf b/fangfrisch.conf
index 2ae743a5b9ad..0e74eff76f24 100644
--- a/fangfrisch.conf
+++ b/fangfrisch.conf
@@ -1,21 +1,23 @@
+# Please make sure that the smallest "interval" configured
+# in this file is no lower that the fangfrisch.timer frequency.
+# If necessary, you can override the default timer by creating
+# a systemd drop-in file.
+#
+# When in doubt, keep the preconfigured default intervals.
+# See https://rseichter.github.io/fangfrisch/ for details.
+#
+# # Example drop-in file
+# # /etc/systemd/system/fangfrisch.timer.d/10-local.conf
+# [Timer]
+# # Clear default timer
+# OnCalendar=
+# # Run every 15 minutes
+# OnCalendar=*:0/15
+
[DEFAULT]
db_url = sqlite:////var/lib/fangfrisch/db.sqlite
local_directory = /var/lib/clamav
on_update_exec = clamdscan --reload
-cleanup = automatic
-# Default value for interval is provider-dependent
-#interval = 10m
-#
-# Note: If you change the 'interval' (e.g interval=15m) then
-# update fangfrisch.timer accordingly as well
-# e.g. create a systemd drop-in file:
-#
-# /etc/systemd/system/fangfrisch.timer.d/10-local.conf
-# [Timer]
-# # erase default timer
-# OnCalendar=
-# # run every 15 minutes
-# OnCalendar=*:0/15
[sanesecurity]
enabled = yes
diff --git a/fangfrisch.service b/fangfrisch.service
index babb93aeab5a..dc427fdd940b 100644
--- a/fangfrisch.service
+++ b/fangfrisch.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Download unofficial clamav virus definition files
+Description=Update and verify unofficial Clam Anti-Virus signatures
ConditionPathExists=/var/lib/fangfrisch/db.sqlite
After=network-online.target
Wants=network-online.target
diff --git a/fangfrisch.timer b/fangfrisch.timer
index fc342fe9b46b..af016df5b81c 100644
--- a/fangfrisch.timer
+++ b/fangfrisch.timer
@@ -1,12 +1,12 @@
[Unit]
-Description=Download unofficial clamav virus definition files
+Description=Update unofficial ClamAV signatures
Requires=fangfrisch.service
[Timer]
-#OnCalendar=hourly
-#RandomizedDelaySec=10m
+# If you change the run frequency, make sure to match the settings
+# in /etc/fangfrisch/fangfrisch.conf. See detailed comments there.
OnCalendar=*:0/10
-RandomizedDelaySec=2m
+RandomizedDelaySec=90
Unit=fangfrisch.service
Persistent=true