Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/fangfrisch/
Date: Wed, 20 Oct 2021 03:07:42
Message-Id: 1634699188.e2deecc834b581ff71007fdfbc67a43a4eba0290.sam@gentoo
1 commit: e2deecc834b581ff71007fdfbc67a43a4eba0290
2 Author: Ralph Seichter <github <AT> seichter <DOT> de>
3 AuthorDate: Tue Oct 12 15:23:19 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 20 03:06:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2deecc8
7
8 app-antivirus/fangfrisch: Bump to version 1.5.0
9
10 Upstream release 1.5.0. This ebuild resolves an issue regarding
11 the use of DISTUTILS_USE_SETUPTOOLS.
12
13 Closes: https://bugs.gentoo.org/813303
14 Package-Manager: Portage-3.0.20, Repoman-3.0.3
15 Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de>
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 app-antivirus/fangfrisch/Manifest | 1 +
19 app-antivirus/fangfrisch/fangfrisch-1.5.0.ebuild | 68 ++++++++++++++++++++++++
20 2 files changed, 69 insertions(+)
21
22 diff --git a/app-antivirus/fangfrisch/Manifest b/app-antivirus/fangfrisch/Manifest
23 index b37f9e780ea..b2906046058 100644
24 --- a/app-antivirus/fangfrisch/Manifest
25 +++ b/app-antivirus/fangfrisch/Manifest
26 @@ -1 +1,2 @@
27 DIST fangfrisch-1.4.0.tar.gz 115303 BLAKE2B 6dea9305ad22e8beff0fc04219d24da995c36e0838e1be8b98d12b11db1f68d7ca4f6084d15270c09e8a4b8d94a7bdfe1b9bb336abef1767b1ded2d1751fa22b SHA512 5fca7b7e8d24daadfb450851c70391fce94943a718bbed4fc76efe08a730cce313d92e7d9a6a8324a0b0039871f8c77f1fcd3744c569826cc0d2e7a7fd4e9b32
28 +DIST fangfrisch-1.5.0.tar.gz 115352 BLAKE2B 2c8ed5484255e336a960285f4eb13180691b2e4da0260f6ed2d1308575f5104cb79602c6c5bda93d2889dfdf24817748560376c9e13e6071810d9246b6120724 SHA512 cb15933d0cacc0912e7f1f103a213e277905a40ff4f7fe818c60d28c2ce92377aaea77b413f55f0ae8701e41eb35bcb2c3b3e04c624a6a57533ca621f93e00f5
29
30 diff --git a/app-antivirus/fangfrisch/fangfrisch-1.5.0.ebuild b/app-antivirus/fangfrisch/fangfrisch-1.5.0.ebuild
31 new file mode 100644
32 index 00000000000..61ed49126cd
33 --- /dev/null
34 +++ b/app-antivirus/fangfrisch/fangfrisch-1.5.0.ebuild
35 @@ -0,0 +1,68 @@
36 +# Copyright 1999-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python3_{7,8,9} )
42 +
43 +inherit distutils-r1 readme.gentoo-r1
44 +
45 +DESCRIPTION="Update and verify unofficial Clam Anti-Virus signatures"
46 +HOMEPAGE="https://github.com/rseichter/fangfrisch https://pypi.org/project/fangfrisch/"
47 +SRC_URI="https://github.com/rseichter/fangfrisch/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +MY_CONF="/etc/${PN}.conf"
50 +MY_DBDIR="/var/lib/${PN}"
51 +DISABLE_AUTOFORMATTING=1
52 +DOC_CONTENTS="See https://rseichter.github.io/fangfrisch/ for the official
53 +documentation.
54 +
55 +### Fresh installations:
56 +
57 +Modify ${MY_CONF} according to your preferences.
58 +Assuming you place the database into ${MY_DBDIR}
59 +(recommended), execute the following commands in a root shell:
60 +
61 +mkdir -m 0770 ${MY_DBDIR}
62 +chgrp clamav ${MY_DBDIR}
63 +sudo -u clamav -- fangfrisch -c ${MY_CONF} initdb
64 +
65 +You can now enable /etc/cron.d/${PN} for periodic updates.
66 +
67 +### Alternative: Updating from release 1.0.1:
68 +
69 +Either create a fresh database or manually delete all existing
70 +database tables, then run the initdb command as shown above."
71 +
72 +LICENSE="GPL-3+"
73 +SLOT="0"
74 +KEYWORDS="~amd64 ~x86"
75 +
76 +DEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
77 + >=dev-python/sqlalchemy-1.3.11[${PYTHON_USEDEP}]"
78 +RDEPEND="${DEPEND}"
79 +
80 +python_prepare_all() {
81 + sed -i -e '/SQLAlchemy/d' setup.py || die
82 + # Due to the nature of Fangfrisch, most tests require network
83 + # connectivity. Upstream CI reports show that the tests are
84 + # successful, so instead of a pick-and-choose approach, the
85 + # complete tests directory is removed in this ebuild.
86 + if [ -d tests ]; then
87 + rm -r tests || die
88 + fi
89 + distutils-r1_python_prepare_all
90 +}
91 +
92 +python_install_all() {
93 + insinto /etc
94 + doins "${FILESDIR}/${PN}.conf"
95 + insinto /etc/cron.d
96 + newins "${FILESDIR}/${PN}.cron" ${PN}
97 + distutils-r1_python_install_all
98 + readme.gentoo_create_doc
99 +}
100 +
101 +pkg_postinst() {
102 + FORCE_PRINT_ELOG=1 readme.gentoo_print_elog
103 +}