app-antivirus/fangfrisch: Bump to version 1.9.2

Closes: https://bugs.gentoo.org/953220
Signed-off-by: Ralph Seichter <github@seichter.de>
Closes: https://github.com/gentoo/gentoo/pull/40436
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Ralph Seichter 2025-02-04 13:08:03 +01:00 committed by Sam James
parent 933a76738c
commit 3170701c98
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 66 additions and 2 deletions

View File

@ -1 +1,2 @@
DIST fangfrisch-1.9.0.gh.tar.gz 127572 BLAKE2B c05c68f904a6e7c7d9f9c5b82bb63366f86653cd13a94276108f52e9c523280320c8aa55ba94ecf079ba938a77e11ca7dc557f4c8fd1b1c7f37179c087dd8605 SHA512 08cc36f20884fedb553de905b8faafce99fcef80e3bce7c0b264691b1a8d83b91a582c095b684f6f7a6af77fd4ed0405fa771a74bbeee3f1b255ff74a161d37e
DIST fangfrisch-1.9.2.gh.tar.gz 131579 BLAKE2B 23d96efc9cea02fc61d05203a826fba7eb8d8950977b997cb8070f1de3342083ff8a9d596e588ea1d68bfe3e6d36ad467df21adeeeaf839b829c0a38b83327aa SHA512 7af21c035a0d904ca619c72c67440fc1fd5c04a3a2b1ab846e98f3045889fab58394261fa0c5cf128d404747a821fcc4863b60c590fe909a89a48fa48296e7d4

View File

@ -0,0 +1,62 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 readme.gentoo-r1 systemd
DESCRIPTION="Update and verify unofficial Clam Anti-Virus signatures"
HOMEPAGE="https://github.com/rseichter/fangfrisch https://pypi.org/project/fangfrisch/"
SRC_URI="https://github.com/rseichter/fangfrisch/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
MY_CONF="/etc/${PN}.conf"
MY_DBDIR="/var/lib/${PN}"
DISABLE_AUTOFORMATTING=1
DOC_CONTENTS="See https://rseichter.github.io/fangfrisch/ for the official
documentation.
### Fresh installations:
Modify ${MY_CONF} according to your preferences.
Assuming you place the database into ${MY_DBDIR}
(recommended), execute the following commands in a root shell:
mkdir -m 0770 ${MY_DBDIR}
chgrp clamav ${MY_DBDIR}
sudo -u clamav -- fangfrisch -c ${MY_CONF} initdb
You can now enable /etc/cron.d/${PN} for periodic updates."
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DOCS=(docs/fangfrisch.pdf)
HTML_DOCS=(docs/index.html)
DEPEND="
>=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-1.4.0[${PYTHON_USEDEP}]
"
RDEPEND="${DEPEND}"
distutils_enable_tests unittest
python_install_all() {
insinto /etc
doins "${FILESDIR}/${PN}.conf"
insinto /etc/cron.d
newins "${FILESDIR}/${PN}.cron" "${PN}"
exeinto /etc
doexe "${FILESDIR}/${PN}-has-news.sh"
systemd_dounit "${FILESDIR}/${PN}.service"
systemd_dounit "${FILESDIR}/${PN}.timer"
distutils-r1_python_install_all
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}

View File

@ -38,12 +38,13 @@ usage() {
gen_header() {
cat <<EOT
Auto-Submitted: auto-generated
From: Fangfrisch News <$MAILFROM>
To: $MAILTO
Subject: $SUBJECT
EOT
# Mail header must end with an empty line!
# Mail header must end with an empty line!
}
declare -a NEWSITEMS=()
@ -56,7 +57,7 @@ report_news() {
# Mutt does not need the header, others do.
gen_header
fi
NEWSITEMS+=( "$ni" )
NEWSITEMS+=("$ni")
echo -e "\n### $(basename "$ni"):\n"
cat "$ni"
done < <(find "$dir" -maxdepth 1 -type f -name "fangfrisch*.txt" -print0)